element-plus
Version:
A Component Library for Vue 3
1 lines • 1.35 kB
Source Map (JSON)
{"version":3,"file":"tab-bar.mjs","sources":["../../../../../../packages/components/tabs/src/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { TabPaneName, TabsPaneContext } from './constants'\nimport type TabBar from './tab-bar.vue'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabBarProps` instead.\n */\nexport const tabBarProps = buildProps({\n tabs: {\n type: definePropType<TabsPaneContext[]>(Array),\n default: () => mutable([] as const),\n },\n tabRefs: {\n type: definePropType<{ [key: TabPaneName]: HTMLDivElement }>(Object),\n default: () => mutable({} as const),\n },\n} as const)\n\nexport type TabBarProps = {\n tabs?: TabsPaneContext[]\n tabRefs?: { [key: TabPaneName]: HTMLDivElement }\n}\n/**\n * @deprecated Removed after 3.0.0, Use `TabBarProps` instead.\n */\nexport type TabBarPropsPublic = ExtractPublicPropTypes<typeof tabBarProps>\nexport type TabBarInstance = InstanceType<typeof TabBar> & unknown\n"],"names":[],"mappings":";;;AASO,MAAM,cAAc,UAAA,CAAW;AAAA,EACpC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,eAAkC,KAAK,CAAA;AAAA,IAC7C,OAAA,EAAS,MAAM,OAAA,CAAQ,EAAW;AAAA,GACpC;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,eAAuD,MAAM,CAAA;AAAA,IACnE,OAAA,EAAS,MAAM,OAAA,CAAQ,EAAW;AAAA;AAEtC,CAAU;;;;"}