{"version":3,"file":"skeleton.mjs","names":[],"sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ThrottleType } from '@element-plus/hooks'\n\nexport interface SkeletonProps {\n  /**\n   * @description whether showing the animation\n   */\n  animated?: boolean\n  /**\n   * @description how many fake items to render to the DOM\n   */\n  count?: number\n  /**\n   * @description numbers of the row, only useful when no template slot were given\n   */\n  rows?: number\n  /**\n   * @description whether showing the real DOM\n   */\n  loading?: boolean\n  /**\n   * @description rendering delay in milliseconds\n   */\n  throttle?: ThrottleType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.\n */\nexport const skeletonProps = buildProps({\n  /**\n   * @description whether showing the animation\n   */\n  animated: Boolean,\n  /**\n   * @description how many fake items to render to the DOM\n   */\n  count: {\n    type: Number,\n    default: 1,\n  },\n  /**\n   * @description numbers of the row, only useful when no template slot were given\n   */\n  rows: {\n    type: Number,\n    default: 3,\n  },\n  /**\n   * @description whether showing the real DOM\n   */\n  loading: {\n    type: Boolean,\n    default: true,\n  },\n  /**\n   * @description rendering delay in milliseconds\n   */\n  throttle: {\n    type: definePropType<ThrottleType>([Number, Object]),\n  },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `SkeletonProps` instead.\n */\nexport type SkeletonPropsPublic = ExtractPublicPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton> & unknown\n"],"mappings":";;;;;;AAgCA,MAAa,gBAAgB,WAAW;CAItC,UAAU;CAIV,OAAO;EACL,MAAM;EACN,SAAS;EACV;CAID,MAAM;EACJ,MAAM;EACN,SAAS;EACV;CAID,SAAS;EACP,MAAM;EACN,SAAS;EACV;CAID,UAAU,EACR,MAAM,eAA6B,CAAC,QAAQ,OAAO,CAAC,EACrD;CACF,CAAU"}