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.

34 lines
902 B

3 months ago
  1. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  2. import { useSizeProp } from '../../../hooks/use-size/index.mjs';
  3. import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
  4. import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
  5. import { isArray } from '@vue/shared';
  6. const checkboxGroupProps = buildProps({
  7. modelValue: {
  8. type: definePropType(Array),
  9. default: () => []
  10. },
  11. disabled: Boolean,
  12. min: Number,
  13. max: Number,
  14. size: useSizeProp,
  15. fill: String,
  16. textColor: String,
  17. tag: {
  18. type: String,
  19. default: "div"
  20. },
  21. validateEvent: {
  22. type: Boolean,
  23. default: true
  24. },
  25. ...useAriaProps(["ariaLabel"])
  26. });
  27. const checkboxGroupEmits = {
  28. [UPDATE_MODEL_EVENT]: (val) => isArray(val),
  29. change: (val) => isArray(val)
  30. };
  31. export { checkboxGroupEmits, checkboxGroupProps };
  32. //# sourceMappingURL=checkbox-group.mjs.map