mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
29 lines
576 B
TypeScript
29 lines
576 B
TypeScript
import { buildProps } from '@element-plus/utils/props'
|
|
import type Skeleton from './skeleton.vue'
|
|
import type { ExtractPropTypes } from 'vue'
|
|
|
|
export const skeletonProps = buildProps({
|
|
animated: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
count: {
|
|
type: Number,
|
|
default: 1,
|
|
},
|
|
rows: {
|
|
type: Number,
|
|
default: 3,
|
|
},
|
|
loading: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
throttle: {
|
|
type: Number,
|
|
},
|
|
} as const)
|
|
export type SkeletonProps = ExtractPropTypes<typeof skeletonProps>
|
|
|
|
export type SkeletonInstance = InstanceType<typeof Skeleton>
|