15 lines
905 B
Markdown
15 lines
905 B
Markdown
:: BASE_DOC ::
|
||
|
||
## API
|
||
### Skeleton Props
|
||
|
||
name | type | default | description | required
|
||
-- | -- | -- | -- | --
|
||
animation | String | none | options:gradient/flashed/none | N
|
||
custom-style `v0.25.0` | String | - | \- | N
|
||
delay | Number | 0 | \- | N
|
||
external-classes | Array | - | `['t-class', 't-class-avatar', 't-class-image', 't-class-text']` | N
|
||
loading | Boolean | true | \- | N
|
||
row-col | Array | [1, 1, 1, { width: '70%' }] | Typescript:`SkeletonRowCol` `type SkeletonRowCol = Array<Number \| SkeletonRowColObj \| Array<SkeletonRowColObj>>` `interface SkeletonRowColObj { width?: string; size?: string;height?: string; marginRight?: string; marginLeft?: string; margin?: string; type?: 'rect' \| 'circle' \| 'text';}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/skeleton/type.ts) | N
|
||
theme | String | text | options:avatar/image/text/paragraph | N
|