UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.2 kB
{"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { definePropType } from '@element-plus/utils'\nimport { buttonProps } from './button'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n /**\n * @description display direction\n */\n direction: {\n type: definePropType<'horizontal' | 'vertical'>(String),\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\nexport type ButtonGroupPropsPublic = ExtractPublicPropTypes<\n typeof buttonGroupProps\n>\n"],"names":[],"mappings":";;;AAKO,MAAM,gBAAmB,GAAA;AAAA,EAI9B,MAAM,WAAY,CAAA,IAAA;AAAA,EAIlB,MAAM,WAAY,CAAA,IAAA;AAAA,EAIlB,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,eAA0C,MAAM,CAAA;AAAA,IACtD,MAAA,EAAQ,CAAC,YAAA,EAAc,UAAU,CAAA;AAAA,IACjC,OAAS,EAAA,YAAA;AAAA,GACX;AACF;;;;"}