| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
- import { useSizeProp } from '../../../hooks/use-size/index.mjs';
- import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
- import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
- import { isArray } from '@vue/shared';
- const checkboxGroupProps = buildProps({
- modelValue: {
- type: definePropType(Array),
- default: () => []
- },
- disabled: Boolean,
- min: Number,
- max: Number,
- size: useSizeProp,
- fill: String,
- textColor: String,
- tag: {
- type: String,
- default: "div"
- },
- validateEvent: {
- type: Boolean,
- default: true
- },
- options: {
- type: definePropType(Array)
- },
- props: {
- type: definePropType(Object),
- default: () => checkboxDefaultProps
- },
- ...useAriaProps(["ariaLabel"])
- });
- const checkboxGroupEmits = {
- [UPDATE_MODEL_EVENT]: (val) => isArray(val),
- change: (val) => isArray(val)
- };
- const checkboxDefaultProps = {
- label: "label",
- value: "value",
- disabled: "disabled"
- };
- export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps };
- //# sourceMappingURL=checkbox-group.mjs.map
|