checkbox.vue.d.ts 2.4 KB

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