UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.83 kB
{"version":3,"file":"collapse-item.mjs","names":[],"sources":["../../../../../../packages/components/collapse/src/collapse-item.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { ArrowRight } from '@element-plus/icons-vue'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type { CollapseActiveName } from './collapse'\n\nexport interface CollapseItemProps {\n /**\n * @description title of the panel\n */\n title?: string\n /**\n * @description unique identification of the panel\n */\n name?: CollapseActiveName\n /**\n * @description icon of the collapse item\n */\n icon?: IconPropType\n /**\n * @description disable the collapse item\n */\n disabled?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `CollapseItemProps` instead.\n */\nexport const collapseItemProps = buildProps({\n /**\n * @description title of the panel\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description unique identification of the panel\n */\n name: {\n type: definePropType<CollapseActiveName>([String, Number]),\n default: undefined,\n },\n /**\n * @description icon of the collapse item\n */\n icon: {\n type: iconPropType,\n default: ArrowRight,\n },\n /**\n * @description disable the collapse item\n */\n disabled: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `CollapseItemProps` instead.\n */\nexport type CollapseItemPropsPublic = ExtractPublicPropTypes<\n typeof collapseItemProps\n>\n"],"mappings":";;;;;;;;AA6BA,MAAa,oBAAoB,WAAW;CAI1C,OAAO;EACL,MAAM;EACN,SAAS;EACV;CAID,MAAM;EACJ,MAAM,eAAmC,CAAC,QAAQ,OAAO,CAAC;EAC1D,SAAS;EACV;CAID,MAAM;EACJ,MAAM;EACN,SAAS;EACV;CAID,UAAU;CACX,CAAU"}