transfer.vue.d.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import { TransferDataItem, TransferDirection, TransferFormat, TransferKey, TransferProps, TransferPropsAlias } from "./transfer.js";
  2. import { TransferPanelInstance } from "./transfer-panel.js";
  3. import * as vue from "vue";
  4. //#region ../../packages/components/transfer/src/transfer.vue.d.ts
  5. declare var __VLS_12: {}, __VLS_14: {}, __VLS_65: {}, __VLS_67: {};
  6. type __VLS_Slots = {} & {
  7. 'left-empty'?: (props: typeof __VLS_12) => any;
  8. } & {
  9. 'left-footer'?: (props: typeof __VLS_14) => any;
  10. } & {
  11. 'right-empty'?: (props: typeof __VLS_65) => any;
  12. } & {
  13. 'right-footer'?: (props: typeof __VLS_67) => any;
  14. };
  15. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TransferProps>, {
  16. data: () => never[];
  17. titles: () => [string, string];
  18. buttonTexts: () => [string, string];
  19. leftDefaultChecked: () => never[];
  20. rightDefaultChecked: () => never[];
  21. modelValue: () => never[];
  22. format: () => {};
  23. props: () => {
  24. label: string;
  25. key: string;
  26. disabled: string;
  27. };
  28. targetOrder: string;
  29. validateEvent: boolean;
  30. }>, {
  31. /** @description clear the filter keyword of a certain panel */clearQuery: (which: TransferDirection) => void; /** @description left panel ref */
  32. leftPanel: vue.Ref<TransferPanelInstance | undefined>; /** @description right panel ref */
  33. rightPanel: vue.Ref<TransferPanelInstance | undefined>;
  34. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  35. change: (value: TransferKey[], direction: TransferDirection, movedKeys: TransferKey[]) => void;
  36. "update:modelValue": (value: TransferKey[]) => void;
  37. "left-check-change": (value: TransferKey[], movedKeys?: TransferKey[] | undefined) => void;
  38. "right-check-change": (value: TransferKey[], movedKeys?: TransferKey[] | undefined) => void;
  39. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TransferProps>, {
  40. data: () => never[];
  41. titles: () => [string, string];
  42. buttonTexts: () => [string, string];
  43. leftDefaultChecked: () => never[];
  44. rightDefaultChecked: () => never[];
  45. modelValue: () => never[];
  46. format: () => {};
  47. props: () => {
  48. label: string;
  49. key: string;
  50. disabled: string;
  51. };
  52. targetOrder: string;
  53. validateEvent: boolean;
  54. }>>> & {
  55. onChange?: ((value: TransferKey[], direction: TransferDirection, movedKeys: TransferKey[]) => any) | undefined;
  56. "onUpdate:modelValue"?: ((value: TransferKey[]) => any) | undefined;
  57. "onLeft-check-change"?: ((value: TransferKey[], movedKeys?: TransferKey[] | undefined) => any) | undefined;
  58. "onRight-check-change"?: ((value: TransferKey[], movedKeys?: TransferKey[] | undefined) => any) | undefined;
  59. }, {
  60. props: TransferPropsAlias;
  61. modelValue: TransferKey[];
  62. validateEvent: boolean;
  63. data: TransferDataItem[];
  64. titles: [string, string];
  65. format: TransferFormat;
  66. buttonTexts: [string, string];
  67. leftDefaultChecked: TransferKey[];
  68. rightDefaultChecked: TransferKey[];
  69. targetOrder: "original" | "push" | "unshift";
  70. }, {}>;
  71. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  72. declare const _default: typeof __VLS_export;
  73. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  74. type: vue.PropType<Required<T>[K]>;
  75. } : {
  76. type: vue.PropType<T[K]>;
  77. required: true;
  78. } };
  79. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  80. default: D[K];
  81. }> : P[K] };
  82. type __VLS_WithSlots<T, S> = T & {
  83. new (): {
  84. $slots: S;
  85. };
  86. };
  87. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  88. //#endregion
  89. export { _default };