## Skeleton ### Install ``` javascript import { Skeleton } from 'vant'; Vue.use(Skeleton); ``` ### Usage #### Basic Usage ```html ``` #### Show Avatar ```html ``` #### Show Children ```html
Content
``` ```js export default { data() { return { loading: true } }, mounted() { this.loading = false; } }; ``` ### Props | Attribute | Description | Type | Default | |------|------|------|------| | row | Row count | `Number` | `0` | | row-width | Row width, can be array | `Number | String | Array` | `100%` | | title | Whether to show title placeholder | `Boolean` | `false` | | title-width | Title width | `Number | String` | `40%` | | avatar | Whether to show avatar placeholder | `Boolean` | `false` | | avatar-size | Size of avatar placeholder | `Number | String` | `32px` | | avatar-shape | Shape of avatar placeholder,can be set to `square` | `String` | `round` | | loading | Whether to show skeleton,pass `false` to show child component | `Boolean` | `true` | | animate | Whether to enable animation | `Boolean` | `true` |