You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.8 KiB
1 lines
3.8 KiB
{"ast":null,"code":"import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { useSizeProp } from '../../../hooks/use-size/index.mjs';\nimport { useAriaProps } from '../../../hooks/use-aria/index.mjs';\nimport { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';\nimport { isArray } from '@vue/shared';\nconst checkboxGroupProps = buildProps({\n modelValue: {\n type: definePropType(Array),\n default: () => []\n },\n disabled: Boolean,\n min: Number,\n max: Number,\n size: useSizeProp,\n fill: String,\n textColor: String,\n tag: {\n type: String,\n default: \"div\"\n },\n validateEvent: {\n type: Boolean,\n default: true\n },\n ...useAriaProps([\"ariaLabel\"])\n});\nconst checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: val => isArray(val),\n change: val => isArray(val)\n};\nexport { checkboxGroupEmits, checkboxGroupProps };","map":{"version":3,"names":["checkboxGroupProps","buildProps","modelValue","type","definePropType","Array","default","disabled","Boolean","min","Number","max","size","useSizeProp","fill","String","textColor","tag","validateEvent","useAriaProps","checkboxGroupEmits","UPDATE_MODEL_EVENT","val","isArray","change"],"sources":["../../../../../../packages/components/checkbox/src/checkbox-group.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, isArray } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type checkboxGroup from './checkbox-group.vue'\nimport type { CheckboxValueType } from './checkbox'\n\nexport type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[]\n\nexport const checkboxGroupProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<CheckboxGroupValueType>(Array),\n default: () => [],\n },\n /**\n * @description whether the nesting checkboxes are disabled\n */\n disabled: Boolean,\n /**\n * @description minimum number of checkbox checked\n */\n min: Number,\n /**\n * @description maximum number of checkbox checked\n */\n max: Number,\n /**\n * @description size of checkbox\n */\n size: useSizeProp,\n /**\n * @description border and background color when button is active\n */\n fill: String,\n /**\n * @description font color when button is active\n */\n textColor: String,\n /**\n * @description element tag of the checkbox group\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport const checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxGroupValueType) => isArray(val),\n change: (val: CheckboxValueType[]) => isArray(val),\n}\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits\nexport type CheckboxGroupInstance = InstanceType<typeof checkboxGroup>\n"],"mappings":";;;;;AAGY,MAACA,kBAAkB,GAAGC,UAAU,CAAC;EAC3CC,UAAU,EAAE;IACVC,IAAI,EAAEC,cAAc,CAACC,KAAK,CAAC;IAC3BC,OAAO,EAAEA,CAAA,KAAM;EACnB,CAAG;EACDC,QAAQ,EAAEC,OAAO;EACjBC,GAAG,EAAEC,MAAM;EACXC,GAAG,EAAED,MAAM;EACXE,IAAI,EAAEC,WAAW;EACjBC,IAAI,EAAEC,MAAM;EACZC,SAAS,EAAED,MAAM;EACjBE,GAAG,EAAE;IACHd,IAAI,EAAEY,MAAM;IACZT,OAAO,EAAE;EACb,CAAG;EACDY,aAAa,EAAE;IACbf,IAAI,EAAEK,OAAO;IACbF,OAAO,EAAE;EACb,CAAG;EACD,GAAGa,YAAY,CAAC,CAAC,WAAW,CAAC;AAC/B,CAAC;AACW,MAACC,kBAAkB,GAAG;EAChC,CAACC,kBAAkB,GAAIC,GAAG,IAAKC,OAAO,CAACD,GAAG,CAAC;EAC3CE,MAAM,EAAGF,GAAG,IAAKC,OAAO,CAACD,GAAG;AAC9B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|