element-plus
Version:
A Component Library for Vue 3
1 lines • 1.6 kB
Source Map (JSON)
{"version":3,"file":"split-panel.mjs","names":[],"sources":["../../../../../../packages/components/splitter/src/split-panel.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type SplitterPanel from './split-panel.vue'\n\nexport interface SplitterPanelProps {\n min?: string | number\n max?: string | number\n size?: string | number\n resizable?: boolean\n collapsible?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `SplitterPanelProps` instead.\n */\nexport const splitterPanelProps = buildProps({\n min: {\n type: [String, Number],\n },\n max: {\n type: [String, Number],\n },\n size: {\n type: [String, Number],\n },\n resizable: {\n type: Boolean,\n default: true,\n },\n collapsible: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `SplitterPanelProps` instead.\n */\nexport type SplitterPanelPropsPublic = ExtractPublicPropTypes<\n typeof splitterPanelProps\n>\nexport type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown\n\nexport const splitterPanelEmits = {\n 'update:size': (value: number | string) =>\n typeof value === 'number' || typeof value === 'string',\n}\n\nexport type SplitterPanelEmits = typeof splitterPanelEmits\n"],"mappings":";;;;;;AAgBA,MAAa,qBAAqB,WAAW;CAC3C,KAAK,EACH,MAAM,CAAC,QAAQ,OAAO,EACvB;CACD,KAAK,EACH,MAAM,CAAC,QAAQ,OAAO,EACvB;CACD,MAAM,EACJ,MAAM,CAAC,QAAQ,OAAO,EACvB;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;CACD,aAAa;CACd,CAAU;AAUX,MAAa,qBAAqB,EAChC,gBAAgB,UACd,OAAO,UAAU,YAAY,OAAO,UAAU,UACjD"}