Skip to content

feat: fit #40

Open
Open

Description

@levy9527

Is your feature request related to a problem? Please describe.
when you cannot both set width or height, you would need this CSS ability: object-fit, otherwise img would be distort in Safari

Describe the solution you'd like
like element: https://github.com/FEMessage/element/blob/dev/packages/image/src/main.vue#L16

Describe alternatives you've considered
just using custom css if don't care about IE11 compatibility

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions