switch.vue.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { SwitchProps } from "./switch.js";
  2. import * as _$vue from "vue";
  3. //#region ../../packages/components/switch/src/switch.vue.d.ts
  4. declare var __VLS_1: {}, __VLS_14: {}, __VLS_27: {}, __VLS_51: {}, __VLS_64: {}, __VLS_77: {};
  5. type __VLS_Slots = {} & {
  6. inactive?: (props: typeof __VLS_1) => any;
  7. } & {
  8. inactive?: (props: typeof __VLS_14) => any;
  9. } & {
  10. active?: (props: typeof __VLS_27) => any;
  11. } & {
  12. 'active-action'?: (props: typeof __VLS_51) => any;
  13. } & {
  14. 'inactive-action'?: (props: typeof __VLS_64) => any;
  15. } & {
  16. active?: (props: typeof __VLS_77) => any;
  17. };
  18. declare const __VLS_base: _$vue.DefineComponent<SwitchProps, {
  19. /**
  20. * @description manual focus to the switch component
  21. **/
  22. focus: () => void;
  23. /**
  24. * @description whether Switch is checked
  25. */
  26. checked: _$vue.ComputedRef<boolean>;
  27. }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
  28. "update:modelValue": (val: string | number | boolean) => void;
  29. change: (val: string | number | boolean) => void;
  30. input: (val: string | number | boolean) => void;
  31. }, string, _$vue.PublicProps, Readonly<SwitchProps> & Readonly<{
  32. "onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
  33. onInput?: ((val: string | number | boolean) => any) | undefined;
  34. onChange?: ((val: string | number | boolean) => any) | undefined;
  35. }>, {
  36. disabled: boolean;
  37. modelValue: boolean | string | number;
  38. validateEvent: boolean;
  39. name: string;
  40. width: string | number;
  41. activeText: string;
  42. inactiveText: string;
  43. activeValue: boolean | string | number;
  44. inactiveValue: boolean | string | number;
  45. }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
  46. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  47. declare const _default: typeof __VLS_export;
  48. type __VLS_WithSlots<T, S> = T & {
  49. new (): {
  50. $slots: S;
  51. };
  52. };
  53. //#endregion
  54. export { _default as default };