checkbox-group.vue.d.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { CheckboxValueType } from "./checkbox.js";
  2. import { CheckboxGroupProps, CheckboxGroupValueType } from "./checkbox-group.js";
  3. import "../../../index.js";
  4. import * as vue from "vue";
  5. //#region ../../packages/components/checkbox/src/checkbox-group.vue.d.ts
  6. declare var __VLS_8: {};
  7. type __VLS_Slots = {} & {
  8. default?: (props: typeof __VLS_8) => any;
  9. };
  10. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CheckboxGroupProps>, {
  11. modelValue: () => never[];
  12. disabled: undefined;
  13. tag: string;
  14. validateEvent: boolean;
  15. props: () => Required<{
  16. value?: string;
  17. label?: string;
  18. disabled?: string;
  19. }>;
  20. type: string;
  21. }>, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  22. change: (val: CheckboxValueType[]) => void;
  23. "update:modelValue": (val: CheckboxGroupValueType) => void;
  24. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CheckboxGroupProps>, {
  25. modelValue: () => never[];
  26. disabled: undefined;
  27. tag: string;
  28. validateEvent: boolean;
  29. props: () => Required<{
  30. value?: string;
  31. label?: string;
  32. disabled?: string;
  33. }>;
  34. type: string;
  35. }>>> & {
  36. onChange?: ((val: CheckboxValueType[]) => any) | undefined;
  37. "onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
  38. }, {
  39. props: {
  40. value?: string;
  41. label?: string;
  42. disabled?: string;
  43. };
  44. type: "checkbox" | "button";
  45. modelValue: CheckboxGroupValueType;
  46. disabled: boolean;
  47. validateEvent: boolean;
  48. tag: string;
  49. }, {}>;
  50. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  51. declare const _default: typeof __VLS_export;
  52. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  53. type: vue.PropType<Required<T>[K]>;
  54. } : {
  55. type: vue.PropType<T[K]>;
  56. required: true;
  57. } };
  58. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  59. default: D[K];
  60. }> : P[K] };
  61. type __VLS_WithSlots<T, S> = T & {
  62. new (): {
  63. $slots: S;
  64. };
  65. };
  66. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  67. //#endregion
  68. export { _default };