city-casereport/miniprogram_npm/tdesign-miniprogram/image/README.en-US.md
2023-12-06 14:22:42 +08:00

36 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:: BASE_DOC ::
## API
### Image Props
name | type | default | description | required
-- | -- | -- | -- | --
error | String / Slot | 'default' | \- | N
external-classes | Array | - | `['t-class', 't-class-load']` | N
height | String / Number | - | \- | N
lazy | Boolean | false | \- | N
loading | String / Slot | 'default' | \- | N
mode | String | scaleToFill | optionsscaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right | N
shape | String | square | optionscircle/round/square | N
show-menu-by-longpress | Boolean | false | \- | N
src | String | - | \- | N
webp | Boolean | false | \- | N
width | String / Number | - | \- | N
### Image Events
name | params | description
-- | -- | --
error | \- | \-
load | \- | \-
### CSS Variables
The component provides the following CSS variables, which can be used to customize styles.
Name | Default Value | Description
-- | -- | --
--td-image-color | @font-gray-3 | -
--td-image-loading-bg-color | @bg-color-secondarycontainer | -
--td-image-loading-color | @font-gray-3 | -
--td-image-round-radius | @radius-default | -