|
5 months ago | |
---|---|---|
.. | ||
README.en-US.md | 5 months ago | |
README.md | 5 months ago | |
image-info.json | 5 months ago | |
image.d.ts | 5 months ago | |
image.js | 5 months ago | |
image.json | 5 months ago | |
image.wxml | 5 months ago | |
image.wxss | 5 months ago | |
index.d.ts | 5 months ago | |
index.js | 5 months ago | |
props.d.ts | 5 months ago | |
props.js | 5 months ago | |
type.d.ts | 5 months ago | |
type.js | 5 months ago |
:: BASE_DOC ::
name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
error | String / Slot | 'default' | see more ts definition | N
height | String / Number | - | - | N
lazy | Boolean | false | - | N
loading | String / Slot | 'default' | see more ts definition | N
mode | String | scaleToFill | options: scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right | N
shape | String | square | options: circle/round/square | N
show-menu-by-longpress | Boolean | false | - | N
src | String | - | src attribute of <img>
. image File can also be loaded | N
t-id | String | - | 1.2.10
。image tag id | N
webp | Boolean | false | - | N
width | String / Number | - | - | N
name | params | description -- | -- | -- error | - | trigger on image load failed load | - | trigger on image loaded
className | Description -- | -- t-class | - t-class-load | - t-class-image | - t-class-error | -
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 | -