mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(Skeleton): add SkeletonAvatarShape type (#9605)
This commit is contained in:
parent
a7b5fb2af6
commit
3fc3dd3f6b
@ -73,6 +73,14 @@ export default {
|
|||||||
| avatar-size | Size of avatar placeholder | _number \| string_ | `32px` |
|
| avatar-size | Size of avatar placeholder | _number \| string_ | `32px` |
|
||||||
| avatar-shape | Shape of avatar placeholder,can be set to `square` | _string_ | `round` |
|
| avatar-shape | Shape of avatar placeholder,can be set to `square` | _string_ | `round` |
|
||||||
|
|
||||||
|
### Types
|
||||||
|
|
||||||
|
The component exports the following type definitions:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import type { SkeletonAvatarShape } from 'vant';
|
||||||
|
```
|
||||||
|
|
||||||
## Theming
|
## Theming
|
||||||
|
|
||||||
### CSS Variables
|
### CSS Variables
|
||||||
|
@ -79,6 +79,14 @@ export default {
|
|||||||
| avatar-size | 头像占位图大小 | _number \| string_ | `32px` |
|
| avatar-size | 头像占位图大小 | _number \| string_ | `32px` |
|
||||||
| avatar-shape | 头像占位图形状,可选值为 `square` | _string_ | `round` |
|
| avatar-shape | 头像占位图形状,可选值为 `square` | _string_ | `round` |
|
||||||
|
|
||||||
|
### 类型定义
|
||||||
|
|
||||||
|
组件导出以下类型定义:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import type { SkeletonAvatarShape } from 'vant';
|
||||||
|
```
|
||||||
|
|
||||||
## 主题定制
|
## 主题定制
|
||||||
|
|
||||||
### 样式变量
|
### 样式变量
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { withInstall } from '../utils';
|
import { withInstall } from '../utils';
|
||||||
import _Skeleton from './Skeleton';
|
import _Skeleton, { SkeletonAvatarShape } from './Skeleton';
|
||||||
|
|
||||||
export const Skeleton = withInstall(_Skeleton);
|
export const Skeleton = withInstall(_Skeleton);
|
||||||
export default Skeleton;
|
export default Skeleton;
|
||||||
|
export type { SkeletonAvatarShape };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user