element-plus
Version:
A Component Library for Vue 3
1 lines • 1.99 kB
Source Map (JSON)
{"version":3,"file":"item.mjs","names":[],"sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Step from './item.vue'\n\nexport interface StepProps {\n /**\n * @description step title\n */\n title?: string\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon?: IconPropType\n /**\n * @description step description\n * @default ''\n */\n description?: string\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n * @default ''\n */\n status?: '' | 'wait' | 'process' | 'finish' | 'error' | 'success'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `StepProps` instead.\n */\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `StepProps` instead.\n */\nexport type StepPropsPublic = ExtractPublicPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step> & unknown\n"],"mappings":";;;;;;;AA8BA,MAAa,YAAY,WAAW;CAIlC,OAAO;EACL,MAAM;EACN,SAAS;EACV;CAID,MAAM,EACJ,MAAM,cACP;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;CAID,QAAQ;EACN,MAAM;EACN,QAAQ;GAAC;GAAI;GAAQ;GAAW;GAAU;GAAS;GAAU;EAC7D,SAAS;EACV;CACF,CAAU"}