city-casereport/miniprogram_npm/tdesign-miniprogram/skeleton
2023-12-06 14:22:42 +08:00
..
props.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
props.js 户籍信息录入 2023-12-06 14:22:42 +08:00
README.en-US.md 户籍信息录入 2023-12-06 14:22:42 +08:00
README.md 户籍信息录入 2023-12-06 14:22:42 +08:00
skeleton.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
skeleton.js 户籍信息录入 2023-12-06 14:22:42 +08:00
skeleton.json 户籍信息录入 2023-12-06 14:22:42 +08:00
skeleton.wxml 户籍信息录入 2023-12-06 14:22:42 +08:00
skeleton.wxss 户籍信息录入 2023-12-06 14:22:42 +08:00
type.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
type.js 户籍信息录入 2023-12-06 14:22:42 +08:00

:: BASE_DOC ::

API

Skeleton Props

name type default description required
animation String none optionsgradient/flashed/none 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%' }] TypescriptSkeletonRowCol 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 N
theme String text optionsavatar/image/text/paragraph N

CSS Variables

The component provides the following CSS variables, which can be used to customize styles.

Name Default Value Description
--td-skeleton-animation-flashed rgba(90%, 90%, 90%, 0.3) -
--td-skeleton-animation-gradient rgba(0, 0, 0, 4%) -
--td-skeleton-bg-color @bg-color-page -
--td-skeleton-circle-border-radius @radius-circle -
--td-skeleton-circle-height 96rpx -
--td-skeleton-rect-border-radius @radius-default -
--td-skeleton-rect-height 32rpx -
--td-skeleton-row-spacing @spacer-2 -
--td-skeleton-text-border-radius @radius-small -
--td-skeleton-text-height 32rpx -