vft 0.0.153 → 0.0.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/es/app-components/button/button-custom.d.ts +1 -1
  2. package/es/app-components/form/hooks/use-form-common-props.d.ts +4 -5
  3. package/es/app-components/hooks/use-id.d.ts +1 -2
  4. package/es/components/affix/affix.d.ts +2 -2
  5. package/es/components/affix/affix.vue.d.ts +1 -1
  6. package/es/components/affix/index.d.ts +3 -3
  7. package/es/components/autocomplete/autocomplete.vue.d.ts +17 -17
  8. package/es/components/autocomplete/index.d.ts +51 -51
  9. package/es/components/button/button-custom.d.ts +1 -1
  10. package/es/components/button/button.vue.d.ts +1 -1
  11. package/es/components/button/index.d.ts +3 -3
  12. package/es/components/button/use-button.d.ts +3 -3
  13. package/es/components/carousel/carousel.vue.d.ts +1 -1
  14. package/es/components/carousel/index.d.ts +19 -19
  15. package/es/components/carousel/use-carousel.d.ts +2 -2
  16. package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  17. package/es/components/checkbox/composables/use-checkbox.d.ts +1 -1
  18. package/es/components/checkbox/index.d.ts +48 -48
  19. package/es/components/config-provider/hooks/use-global-config.d.ts +2 -3
  20. package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
  21. package/es/components/date-picker/date-picker.d.ts +19 -3
  22. package/es/components/date-picker/index.d.ts +38 -6
  23. package/es/components/date-picker/props/date-picker.d.ts +9 -1
  24. package/es/components/date-picker/props/shared.d.ts +1 -1
  25. package/es/components/date-picker/utils.d.ts +1 -1
  26. package/es/components/dialog/dialog.vue.d.ts +2 -2
  27. package/es/components/dialog/index.d.ts +6 -6
  28. package/es/components/drawer/drawer.vue.d.ts +2 -2
  29. package/es/components/drawer/index.d.ts +6 -6
  30. package/es/components/dropdown/dropdown.vue.d.ts +2 -2
  31. package/es/components/dropdown/index.d.ts +30 -30
  32. package/es/components/form/hooks/use-form-common-props.d.ts +4 -6
  33. package/es/components/icon/icon.vue2.js +20 -21
  34. package/es/components/loading/index.d.ts +9 -17
  35. package/es/components/loading/loading.d.ts +9 -17
  36. package/es/components/multiple-tabs/multiple-tabs.vue2.js +97 -67
  37. package/es/components/popover/index.d.ts +8 -8
  38. package/es/components/popper/composables/use-content-dom.d.ts +1 -3
  39. package/es/components/popper/composables/use-content.d.ts +6 -70
  40. package/es/components/popper/index.d.ts +3 -3
  41. package/es/components/popper/popper.vue.d.ts +1 -2
  42. package/es/components/popper/utils.d.ts +2 -45
  43. package/es/components/radio/index.d.ts +24 -24
  44. package/es/components/radio/use-radio.d.ts +1 -1
  45. package/es/components/select/defaults.d.ts +3 -4
  46. package/es/components/select/index.d.ts +58 -58
  47. package/es/components/select/select.vue.d.ts +29 -29
  48. package/es/components/select/useSelect.d.ts +18 -18
  49. package/es/components/side-menu/index.d.ts +4 -8
  50. package/es/components/side-menu/side-menu.vue.d.ts +2 -2
  51. package/es/components/side-menu/side-menu.vue2.js +44 -44
  52. package/es/components/slider/composables/use-slide.d.ts +6 -6
  53. package/es/components/slider/index.d.ts +2 -2
  54. package/es/components/slider/slider.d.ts +3 -3
  55. package/es/components/space/index.d.ts +2 -5
  56. package/es/components/space/space.d.ts +2 -5
  57. package/es/components/super-form/index.d.ts +3 -3
  58. package/es/components/super-form/super-form.vue.d.ts +1 -1
  59. package/es/components/table/index.d.ts +24 -24
  60. package/es/components/table/use/use-columns.d.ts +3 -801
  61. package/es/components/tabs/tabs.vue2.js +4 -4
  62. package/es/components/time-picker/common/picker.vue.d.ts +20 -5
  63. package/es/components/time-picker/common/props.d.ts +9 -2
  64. package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
  65. package/es/components/time-picker/index.d.ts +38 -6
  66. package/es/components/time-picker/time-picker.d.ts +19 -3
  67. package/es/components/time-picker/utils.d.ts +1 -1
  68. package/es/components/time-select/time-select.vue.d.ts +1 -1
  69. package/es/components/tooltip/index.d.ts +16 -16
  70. package/es/components/tooltip/utils.d.ts +1 -1
  71. package/es/components/upload/use-handlers.d.ts +1 -21
  72. package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
  73. package/es/hooks/use-id/index.d.ts +1 -2
  74. package/es/hooks/use-model-toggle/index.d.ts +2 -2
  75. package/es/hooks/use-popper/index.d.ts +7 -70
  76. package/es/hooks/use-same-target/index.d.ts +3 -3
  77. package/es/hooks/use-z-index/index.d.ts +1 -1
  78. package/es/package.json.d.ts +1 -1
  79. package/es/package.json.js +1 -1
  80. package/lib/app-components/button/button-custom.d.ts +1 -1
  81. package/lib/app-components/form/hooks/use-form-common-props.d.ts +4 -5
  82. package/lib/app-components/hooks/use-id.d.ts +1 -2
  83. package/lib/components/affix/affix.d.ts +2 -2
  84. package/lib/components/affix/affix.vue.d.ts +1 -1
  85. package/lib/components/affix/index.d.ts +3 -3
  86. package/lib/components/autocomplete/autocomplete.vue.d.ts +17 -17
  87. package/lib/components/autocomplete/index.d.ts +51 -51
  88. package/lib/components/button/button-custom.d.ts +1 -1
  89. package/lib/components/button/button.vue.d.ts +1 -1
  90. package/lib/components/button/index.d.ts +3 -3
  91. package/lib/components/button/use-button.d.ts +3 -3
  92. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  93. package/lib/components/carousel/index.d.ts +19 -19
  94. package/lib/components/carousel/use-carousel.d.ts +2 -2
  95. package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +1 -1
  96. package/lib/components/checkbox/composables/use-checkbox.d.ts +1 -1
  97. package/lib/components/checkbox/index.d.ts +48 -48
  98. package/lib/components/config-provider/hooks/use-global-config.d.ts +2 -3
  99. package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
  100. package/lib/components/date-picker/date-picker.d.ts +19 -3
  101. package/lib/components/date-picker/index.d.ts +38 -6
  102. package/lib/components/date-picker/props/date-picker.d.ts +9 -1
  103. package/lib/components/date-picker/props/shared.d.ts +1 -1
  104. package/lib/components/date-picker/utils.d.ts +1 -1
  105. package/lib/components/dialog/dialog.vue.d.ts +2 -2
  106. package/lib/components/dialog/index.d.ts +6 -6
  107. package/lib/components/drawer/drawer.vue.d.ts +2 -2
  108. package/lib/components/drawer/index.d.ts +6 -6
  109. package/lib/components/dropdown/dropdown.vue.d.ts +2 -2
  110. package/lib/components/dropdown/index.d.ts +30 -30
  111. package/lib/components/form/hooks/use-form-common-props.d.ts +4 -6
  112. package/lib/components/icon/icon.vue2.cjs +1 -1
  113. package/lib/components/loading/index.d.ts +9 -17
  114. package/lib/components/loading/loading.d.ts +9 -17
  115. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  116. package/lib/components/popover/index.d.ts +8 -8
  117. package/lib/components/popper/composables/use-content-dom.d.ts +1 -3
  118. package/lib/components/popper/composables/use-content.d.ts +6 -70
  119. package/lib/components/popper/index.d.ts +3 -3
  120. package/lib/components/popper/popper.vue.d.ts +1 -2
  121. package/lib/components/popper/utils.d.ts +2 -45
  122. package/lib/components/radio/index.d.ts +24 -24
  123. package/lib/components/radio/use-radio.d.ts +1 -1
  124. package/lib/components/select/defaults.d.ts +3 -4
  125. package/lib/components/select/index.d.ts +58 -58
  126. package/lib/components/select/select.vue.d.ts +29 -29
  127. package/lib/components/select/useSelect.d.ts +18 -18
  128. package/lib/components/side-menu/index.d.ts +4 -8
  129. package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
  130. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  131. package/lib/components/slider/composables/use-slide.d.ts +6 -6
  132. package/lib/components/slider/index.d.ts +2 -2
  133. package/lib/components/slider/slider.d.ts +3 -3
  134. package/lib/components/space/index.d.ts +2 -5
  135. package/lib/components/space/space.d.ts +2 -5
  136. package/lib/components/super-form/index.d.ts +3 -3
  137. package/lib/components/super-form/super-form.vue.d.ts +1 -1
  138. package/lib/components/table/index.d.ts +24 -24
  139. package/lib/components/table/use/use-columns.d.ts +3 -801
  140. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  141. package/lib/components/time-picker/common/picker.vue.d.ts +20 -5
  142. package/lib/components/time-picker/common/props.d.ts +9 -2
  143. package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
  144. package/lib/components/time-picker/index.d.ts +38 -6
  145. package/lib/components/time-picker/time-picker.d.ts +19 -3
  146. package/lib/components/time-picker/utils.d.ts +1 -1
  147. package/lib/components/time-select/time-select.vue.d.ts +1 -1
  148. package/lib/components/tooltip/index.d.ts +16 -16
  149. package/lib/components/tooltip/utils.d.ts +1 -1
  150. package/lib/components/upload/use-handlers.d.ts +1 -21
  151. package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
  152. package/lib/hooks/use-id/index.d.ts +1 -2
  153. package/lib/hooks/use-model-toggle/index.d.ts +2 -2
  154. package/lib/hooks/use-popper/index.d.ts +7 -70
  155. package/lib/hooks/use-same-target/index.d.ts +3 -3
  156. package/lib/hooks/use-z-index/index.d.ts +1 -1
  157. package/lib/package.json.cjs +1 -1
  158. package/lib/package.json.d.ts +1 -1
  159. package/package.json +5 -5
  160. package/web-types.json +1 -1
  161. package/es/components/super-form/types.d.ts +0 -176
  162. package/lib/components/super-form/types.d.ts +0 -176
@@ -11,8 +11,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
11
11
  "update:modelValue": (value: boolean) => void;
12
12
  close: () => void;
13
13
  open: () => void;
14
- opened: () => void;
15
14
  closed: () => void;
15
+ opened: () => void;
16
16
  openAutoFocus: () => void;
17
17
  closeAutoFocus: () => void;
18
18
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DrawerProps>>> & {
@@ -21,8 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
21
  onOpen?: (() => any) | undefined;
22
22
  onOpenAutoFocus?: (() => any) | undefined;
23
23
  onCloseAutoFocus?: (() => any) | undefined;
24
- onOpened?: (() => any) | undefined;
25
24
  onClosed?: (() => any) | undefined;
25
+ onOpened?: (() => any) | undefined;
26
26
  }, {}, {}>, {
27
27
  header?(_: {
28
28
  close: () => void;
@@ -88,16 +88,16 @@ export declare const VftDrawer: import("vft/es/utils").SFCWithInstall<{
88
88
  onOpen?: (() => any) | undefined;
89
89
  onOpenAutoFocus?: (() => any) | undefined;
90
90
  onCloseAutoFocus?: (() => any) | undefined;
91
- onOpened?: (() => any) | undefined;
92
91
  onClosed?: (() => any) | undefined;
92
+ onOpened?: (() => any) | undefined;
93
93
  }, {
94
94
  close: () => void;
95
95
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
96
96
  "update:modelValue": (value: boolean) => void;
97
97
  close: () => void;
98
98
  open: () => void;
99
- opened: () => void;
100
99
  closed: () => void;
100
+ opened: () => void;
101
101
  openAutoFocus: () => void;
102
102
  closeAutoFocus: () => void;
103
103
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
@@ -188,8 +188,8 @@ export declare const VftDrawer: import("vft/es/utils").SFCWithInstall<{
188
188
  onOpen?: (() => any) | undefined;
189
189
  onOpenAutoFocus?: (() => any) | undefined;
190
190
  onCloseAutoFocus?: (() => any) | undefined;
191
- onOpened?: (() => any) | undefined;
192
191
  onClosed?: (() => any) | undefined;
192
+ onOpened?: (() => any) | undefined;
193
193
  }, {}, true, {}, {}, {
194
194
  P: {};
195
195
  B: {};
@@ -285,8 +285,8 @@ export declare const VftDrawer: import("vft/es/utils").SFCWithInstall<{
285
285
  onOpen?: (() => any) | undefined;
286
286
  onOpenAutoFocus?: (() => any) | undefined;
287
287
  onCloseAutoFocus?: (() => any) | undefined;
288
- onOpened?: (() => any) | undefined;
289
288
  onClosed?: (() => any) | undefined;
289
+ onOpened?: (() => any) | undefined;
290
290
  }, {
291
291
  close: () => void;
292
292
  }, {}, {}, {}, {}>;
@@ -381,16 +381,16 @@ export declare const VftDrawer: import("vft/es/utils").SFCWithInstall<{
381
381
  onOpen?: (() => any) | undefined;
382
382
  onOpenAutoFocus?: (() => any) | undefined;
383
383
  onCloseAutoFocus?: (() => any) | undefined;
384
- onOpened?: (() => any) | undefined;
385
384
  onClosed?: (() => any) | undefined;
385
+ onOpened?: (() => any) | undefined;
386
386
  }, {
387
387
  close: () => void;
388
388
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
389
389
  "update:modelValue": (value: boolean) => void;
390
390
  close: () => void;
391
391
  open: () => void;
392
- opened: () => void;
393
392
  closed: () => void;
393
+ opened: () => void;
394
394
  openAutoFocus: () => void;
395
395
  closeAutoFocus: () => void;
396
396
  }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -66,12 +66,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
66
66
  onCommand?: ((val: string) => any) | undefined;
67
67
  }, {
68
68
  maxHeight: string | number;
69
- placement: Placement;
70
- effect: "light" | "dark";
69
+ placement: any;
71
70
  role: string;
72
71
  loop: boolean;
73
72
  disabled: boolean;
74
73
  trigger: TooltipTriggerType;
74
+ effect: "light" | "dark";
75
75
  tabindex: string | number;
76
76
  popperClass: string;
77
77
  teleported: boolean;
@@ -11,11 +11,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
11
11
  type: globalThis.PropType<string>;
12
12
  };
13
13
  placement: {
14
- type: globalThis.PropType<import("@popperjs/core").Placement>;
15
- default: string;
16
- };
17
- effect: {
18
- type: globalThis.PropType<"light" | "dark">;
14
+ type: globalThis.PropType<any>;
19
15
  default: string;
20
16
  };
21
17
  id: {
@@ -37,12 +33,16 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
37
33
  type: globalThis.PropType<import("..").TooltipTriggerType>;
38
34
  default: string;
39
35
  };
36
+ effect: {
37
+ type: globalThis.PropType<"light" | "dark">;
38
+ default: string;
39
+ };
40
40
  tabindex: {
41
41
  type: globalThis.PropType<string | number>;
42
42
  default: number;
43
43
  };
44
44
  popperOptions: {
45
- type: globalThis.PropType<import("@popperjs/core").Options>;
45
+ type: globalThis.PropType<any>;
46
46
  };
47
47
  popperClass: {
48
48
  type: globalThis.PropType<string>;
@@ -94,11 +94,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
94
94
  type: globalThis.PropType<string>;
95
95
  };
96
96
  placement: {
97
- type: globalThis.PropType<import("@popperjs/core").Placement>;
98
- default: string;
99
- };
100
- effect: {
101
- type: globalThis.PropType<"light" | "dark">;
97
+ type: globalThis.PropType<any>;
102
98
  default: string;
103
99
  };
104
100
  id: {
@@ -120,12 +116,16 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
120
116
  type: globalThis.PropType<import("..").TooltipTriggerType>;
121
117
  default: string;
122
118
  };
119
+ effect: {
120
+ type: globalThis.PropType<"light" | "dark">;
121
+ default: string;
122
+ };
123
123
  tabindex: {
124
124
  type: globalThis.PropType<string | number>;
125
125
  default: number;
126
126
  };
127
127
  popperOptions: {
128
- type: globalThis.PropType<import("@popperjs/core").Options>;
128
+ type: globalThis.PropType<any>;
129
129
  };
130
130
  popperClass: {
131
131
  type: globalThis.PropType<string>;
@@ -159,12 +159,12 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
159
159
  onCommand?: ((val: string) => any) | undefined;
160
160
  }, {
161
161
  maxHeight: string | number;
162
- placement: import("@popperjs/core").Placement;
163
- effect: "light" | "dark";
162
+ placement: any;
164
163
  role: string;
165
164
  loop: boolean;
166
165
  disabled: boolean;
167
166
  trigger: import("..").TooltipTriggerType;
167
+ effect: "light" | "dark";
168
168
  tabindex: string | number;
169
169
  popperClass: string;
170
170
  teleported: boolean;
@@ -190,11 +190,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
190
190
  type: globalThis.PropType<string>;
191
191
  };
192
192
  placement: {
193
- type: globalThis.PropType<import("@popperjs/core").Placement>;
194
- default: string;
195
- };
196
- effect: {
197
- type: globalThis.PropType<"light" | "dark">;
193
+ type: globalThis.PropType<any>;
198
194
  default: string;
199
195
  };
200
196
  id: {
@@ -216,12 +212,16 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
216
212
  type: globalThis.PropType<import("..").TooltipTriggerType>;
217
213
  default: string;
218
214
  };
215
+ effect: {
216
+ type: globalThis.PropType<"light" | "dark">;
217
+ default: string;
218
+ };
219
219
  tabindex: {
220
220
  type: globalThis.PropType<string | number>;
221
221
  default: number;
222
222
  };
223
223
  popperOptions: {
224
- type: globalThis.PropType<import("@popperjs/core").Options>;
224
+ type: globalThis.PropType<any>;
225
225
  };
226
226
  popperClass: {
227
227
  type: globalThis.PropType<string>;
@@ -259,12 +259,12 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
259
259
  onFocusAfterTrapped: (e: Event) => void;
260
260
  }, {}, {}, {}, {
261
261
  maxHeight: string | number;
262
- placement: import("@popperjs/core").Placement;
263
- effect: "light" | "dark";
262
+ placement: any;
264
263
  role: string;
265
264
  loop: boolean;
266
265
  disabled: boolean;
267
266
  trigger: import("..").TooltipTriggerType;
267
+ effect: "light" | "dark";
268
268
  tabindex: string | number;
269
269
  popperClass: string;
270
270
  teleported: boolean;
@@ -287,11 +287,7 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
287
287
  type: globalThis.PropType<string>;
288
288
  };
289
289
  placement: {
290
- type: globalThis.PropType<import("@popperjs/core").Placement>;
291
- default: string;
292
- };
293
- effect: {
294
- type: globalThis.PropType<"light" | "dark">;
290
+ type: globalThis.PropType<any>;
295
291
  default: string;
296
292
  };
297
293
  id: {
@@ -313,12 +309,16 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
313
309
  type: globalThis.PropType<import("..").TooltipTriggerType>;
314
310
  default: string;
315
311
  };
312
+ effect: {
313
+ type: globalThis.PropType<"light" | "dark">;
314
+ default: string;
315
+ };
316
316
  tabindex: {
317
317
  type: globalThis.PropType<string | number>;
318
318
  default: number;
319
319
  };
320
320
  popperOptions: {
321
- type: globalThis.PropType<import("@popperjs/core").Options>;
321
+ type: globalThis.PropType<any>;
322
322
  };
323
323
  popperClass: {
324
324
  type: globalThis.PropType<string>;
@@ -360,12 +360,12 @@ export declare const VftDropdown: import("vft/es/utils").SFCWithInstall<{
360
360
  click: (val: MouseEvent) => void;
361
361
  }, string, {
362
362
  maxHeight: string | number;
363
- placement: import("@popperjs/core").Placement;
364
- effect: "light" | "dark";
363
+ placement: any;
365
364
  role: string;
366
365
  loop: boolean;
367
366
  disabled: boolean;
368
367
  trigger: import("..").TooltipTriggerType;
368
+ effect: "light" | "dark";
369
369
  tabindex: string | number;
370
370
  popperClass: string;
371
371
  teleported: boolean;
@@ -1,6 +1,4 @@
1
- import type { ComponentSize } from 'vft/es/constants';
2
- import type { MaybeRef } from '@vueuse/core';
3
- export declare const useFormSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => globalThis.ComputedRef<"" | "default" | "small" | "large">;
4
- export declare const useFormDisabled: (fallback?: MaybeRef<boolean | undefined>) => globalThis.ComputedRef<boolean>;
5
- export declare const useSize: (fallback?: MaybeRef<ComponentSize | undefined>, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => globalThis.ComputedRef<"" | "default" | "small" | "large">;
6
- export declare const useDisabled: (fallback?: MaybeRef<boolean | undefined>) => globalThis.ComputedRef<boolean>;
1
+ export declare const useFormSize: (fallback?: any, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => globalThis.ComputedRef<"" | "default" | "small" | "large">;
2
+ export declare const useFormDisabled: (fallback?: any) => globalThis.ComputedRef<any>;
3
+ export declare const useSize: (fallback?: any, ignore?: Partial<Record<'prop' | 'form' | 'formItem' | 'global', boolean>>) => globalThis.ComputedRef<"" | "default" | "small" | "large">;
4
+ export declare const useDisabled: (fallback?: any) => globalThis.ComputedRef<any>;
@@ -1,20 +1,20 @@
1
- import { defineComponent as u, computed as a, openBlock as c, createElementBlock as l, normalizeClass as m, unref as i, normalizeStyle as f } from "vue";
2
- import { addUnit as y } from "@vft/utils";
1
+ import { defineComponent as u, computed as s, openBlock as l, createElementBlock as a, normalizeClass as c, unref as t, normalizeStyle as m } from "vue";
2
+ import { addUnit as v } from "@vft/utils";
3
3
  import "../config-provider/index.js";
4
4
  import "@vueuse/core";
5
5
  import { generateCssVars as C } from "../../utils/ns-cover.js";
6
6
  import "lodash";
7
- import { useNamespace as g } from "../../hooks/use-namespace/index.js";
7
+ import { useNamespace as y } from "../../hooks/use-namespace/index.js";
8
8
  import "@popperjs/core";
9
9
  import "../../hooks/use-z-index/index.js";
10
- import { useGlobalConfig as h } from "../config-provider/hooks/use-global-config.js";
11
- const z = ["src"], n = (
10
+ import { useGlobalConfig as g } from "../config-provider/hooks/use-global-config.js";
11
+ const h = ["src"], n = (
12
12
  /* hoist-static*/
13
- g("icon")
14
- ), I = u({
13
+ y("icon")
14
+ ), z = u({
15
15
  name: n.b()
16
- }), W = /* @__PURE__ */ u({
17
- ...I,
16
+ }), j = /* @__PURE__ */ u({
17
+ ...z,
18
18
  props: {
19
19
  icon: {},
20
20
  size: {},
@@ -25,32 +25,31 @@ const z = ["src"], n = (
25
25
  hoverColor: {}
26
26
  },
27
27
  setup(o) {
28
- var r;
29
- const t = h(), s = a(
28
+ const i = g(), r = s(
30
29
  () => C(
31
30
  {
32
- size: y(o.size),
31
+ size: v(o.size),
33
32
  color: o.color,
34
33
  hoverColor: o.hoverColor,
35
34
  cursor: o.pointer ? "pointer" : void 0,
36
- animation: o.rotate ? `${t.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
35
+ animation: o.rotate ? `${i.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
37
36
  },
38
37
  "icon"
39
38
  )
40
- ), d = (e) => e == null ? void 0 : e.includes("/"), p = a(() => d(o.icon)), v = o.icon.startsWith((r = t.value) == null ? void 0 : r.iconifyPrefixClass) ? "" : t.value.iconfontClass;
41
- return (e, B) => p.value ? (c(), l("img", {
39
+ ), f = (e) => e == null ? void 0 : e.includes("/"), p = s(() => f(o.icon)), d = i.value.iconfontClass;
40
+ return (e, k) => p.value ? (l(), a("img", {
42
41
  key: 0,
43
- class: m(i(n).e("image")),
42
+ class: c(t(n).e("image")),
44
43
  src: e.icon,
45
44
  alt: "",
46
- style: f(s.value)
47
- }, null, 14, z)) : (c(), l("i", {
45
+ style: m(r.value)
46
+ }, null, 14, h)) : (l(), a("i", {
48
47
  key: 1,
49
- class: m([i(n).b(), e.icon, i(v)]),
50
- style: f(s.value)
48
+ class: c([t(n).b(), e.icon, t(d)]),
49
+ style: m(r.value)
51
50
  }, null, 6));
52
51
  }
53
52
  });
54
53
  export {
55
- W as default
54
+ j as default
56
55
  };
@@ -18,25 +18,17 @@ export declare const VftLoading: {
18
18
  originalOverflow: globalThis.Ref<string>;
19
19
  visible: globalThis.Ref<boolean>;
20
20
  parent: globalThis.Ref<import("./types").LoadingParentElement>;
21
- background: globalThis.Ref<string>;
22
- svg: globalThis.Ref<string>;
23
- svgViewBox: globalThis.Ref<string>;
24
- spinner: globalThis.Ref<string | boolean>;
25
- img: globalThis.Ref<string | boolean>;
26
- icon: globalThis.Ref<string | import("..").IconProps | {
27
- icon: string;
28
- size?: string | number | undefined;
29
- color?: string | undefined;
30
- rotate?: boolean | undefined;
31
- rotateSpeed?: number | undefined;
32
- pointer?: boolean | undefined;
33
- hoverColor?: string | undefined;
34
- }>;
35
- text: globalThis.Ref<string>;
21
+ background: globalThis.Ref<any>;
22
+ svg: globalThis.Ref<any>;
23
+ svgViewBox: globalThis.Ref<any>;
24
+ spinner: globalThis.Ref<any>;
25
+ img: globalThis.Ref<any>;
26
+ icon: globalThis.Ref<any>;
27
+ text: globalThis.Ref<any>;
36
28
  fullscreen: globalThis.Ref<boolean>;
37
- rotate: globalThis.Ref<string | boolean>;
29
+ rotate: globalThis.Ref<any>;
38
30
  lock: globalThis.Ref<boolean>;
39
- customClass: globalThis.Ref<string>;
31
+ customClass: globalThis.Ref<any>;
40
32
  target: globalThis.Ref<HTMLElement>;
41
33
  beforeClose?: globalThis.Ref<(() => boolean) | undefined> | undefined;
42
34
  closed?: globalThis.Ref<(() => void) | undefined> | undefined;
@@ -10,25 +10,17 @@ export declare function createLoadingComponent(options: LoadingOptionsResolved):
10
10
  originalOverflow: globalThis.Ref<string>;
11
11
  visible: globalThis.Ref<boolean>;
12
12
  parent: globalThis.Ref<import("./types").LoadingParentElement>;
13
- background: globalThis.Ref<string>;
14
- svg: globalThis.Ref<string>;
15
- svgViewBox: globalThis.Ref<string>;
16
- spinner: globalThis.Ref<string | boolean>;
17
- img: globalThis.Ref<string | boolean>;
18
- icon: globalThis.Ref<string | import("vft/es/components/icon").IconProps | {
19
- icon: string;
20
- size?: string | number | undefined;
21
- color?: string | undefined;
22
- rotate?: boolean | undefined;
23
- rotateSpeed?: number | undefined;
24
- pointer?: boolean | undefined;
25
- hoverColor?: string | undefined;
26
- }>;
27
- text: globalThis.Ref<string>;
13
+ background: globalThis.Ref<any>;
14
+ svg: globalThis.Ref<any>;
15
+ svgViewBox: globalThis.Ref<any>;
16
+ spinner: globalThis.Ref<any>;
17
+ img: globalThis.Ref<any>;
18
+ icon: globalThis.Ref<any>;
19
+ text: globalThis.Ref<any>;
28
20
  fullscreen: globalThis.Ref<boolean>;
29
- rotate: globalThis.Ref<string | boolean>;
21
+ rotate: globalThis.Ref<any>;
30
22
  lock: globalThis.Ref<boolean>;
31
- customClass: globalThis.Ref<string>;
23
+ customClass: globalThis.Ref<any>;
32
24
  target: globalThis.Ref<HTMLElement>;
33
25
  beforeClose?: globalThis.Ref<(() => boolean) | undefined> | undefined;
34
26
  closed?: globalThis.Ref<(() => void) | undefined> | undefined;
@@ -1,7 +1,7 @@
1
- import { defineComponent as y, getCurrentInstance as A, ref as d, computed as g, watchEffect as E, unref as p, openBlock as I, createElementBlock as N, normalizeClass as V, normalizeStyle as z, createVNode as D } from "vue";
2
- import { useRouterHelper as H, getRouterKeyPath as T, listenerRouteChange as K } from "@vft/router";
3
- import { useMultipleTabStore as W, useTabs as U } from "@vft/store";
4
- import { useRefs as $ } from "@vft/use";
1
+ import { defineComponent as P, getCurrentInstance as D, ref as x, computed as y, watchEffect as H, unref as r, openBlock as h, createElementBlock as R, normalizeClass as K, normalizeStyle as W, createVNode as C, withCtx as S, Fragment as $, renderList as F, createBlock as U } from "vue";
2
+ import { useRouterHelper as j, getRouterKeyPath as f, listenerRouteChange as q } from "@vft/router";
3
+ import { useMultipleTabStore as G, useTabs as J } from "@vft/store";
4
+ import { useRefs as L } from "@vft/use";
5
5
  import "../alert/index.js";
6
6
  import "../avatar/index.js";
7
7
  import "../backtop/index.js";
@@ -64,7 +64,7 @@ import "../slider/index.js";
64
64
  import "../space/index.js";
65
65
  import "../switch/index.js";
66
66
  import "../table/index.js";
67
- import { VftTabs as j } from "../tabs/index.js";
67
+ import { VftTabs as O, VftTabPane as Q } from "../tabs/index.js";
68
68
  import "../tag/index.js";
69
69
  import "../time-picker/index.js";
70
70
  import "../tooltip/index.js";
@@ -88,24 +88,25 @@ import "../md-container/index.js";
88
88
  import "../md-tabs/index.js";
89
89
  import "../md-vue-playground/index.js";
90
90
  import "@vueuse/core";
91
- import { generateCssVars as R } from "../../utils/ns-cover.js";
91
+ import { generateCssVars as _ } from "../../utils/ns-cover.js";
92
92
  import "lodash";
93
- import { useNamespace as q } from "../../hooks/use-namespace/index.js";
93
+ import { useNamespace as X } from "../../hooks/use-namespace/index.js";
94
94
  import "@popperjs/core";
95
95
  import "../../hooks/use-z-index/index.js";
96
96
  import "../message/index.js";
97
97
  import "../infinite-scroll/index.js";
98
98
  import "../progress-i/index.js";
99
- import F from "hotkeys-js";
100
- import { onBeforeRouteLeave as G } from "vue-router";
101
- import { initAffixTabs as J, useTabsDrag as O } from "./use/use-multiple-tabs.js";
102
- const C = (
99
+ import Y from "hotkeys-js";
100
+ import { onBeforeRouteLeave as Z } from "vue-router";
101
+ import tt from "./tab-content.vue2.js";
102
+ import { initAffixTabs as et, useTabsDrag as ot } from "./use/use-multiple-tabs.js";
103
+ const k = (
103
104
  /* hoist-static*/
104
- q("multiple-tabs")
105
- ), Q = y({
106
- name: C.b()
107
- }), Fe = /* @__PURE__ */ y({
108
- ...Q,
105
+ X("multiple-tabs")
106
+ ), rt = P({
107
+ name: k.b()
108
+ }), Ze = /* @__PURE__ */ P({
109
+ ...rt,
109
110
  props: {
110
111
  tabsStyle: {},
111
112
  contextMenuStyle: {},
@@ -113,55 +114,55 @@ const C = (
113
114
  fixTabCount: {},
114
115
  fixExtraScrollWidth: {}
115
116
  },
116
- setup(u) {
117
- const n = A().appContext.config.globalProperties.$router, i = J(n);
118
- u.canDrag && O(i);
119
- const a = W(), r = d(""), m = d(0), c = d(), { go: h } = H(n), f = g(() => a.getTabList.filter((t) => {
117
+ setup(d) {
118
+ const l = D().appContext.config.globalProperties.$router, i = et(l);
119
+ d.canDrag && ot(i);
120
+ const u = G(), m = x(""), a = x(0), b = x(), { go: v } = j(l), c = y(() => u.getTabList.filter((t) => {
120
121
  var e;
121
122
  return !((e = t.meta) != null && e.hideTab);
122
123
  }));
123
- E(() => {
124
+ H(() => {
124
125
  var t;
125
- if (r.value) {
126
- const e = f.value.findIndex((o) => T(o) === r.value);
127
- e === -1 ? m.value = ((t = f.value) == null ? void 0 : t.length) - 1 : m.value = e, m.value = m.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : m.value;
126
+ if (m.value) {
127
+ const e = c.value.findIndex((o) => f(o) === m.value);
128
+ e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
128
129
  }
129
- }), G(() => {
130
- c.value = p(n.currentRoute);
131
- }), K((t) => {
132
- var x;
133
- if (!t || (x = t.meta) != null && x.hasTokenToRoot)
130
+ }), Z(() => {
131
+ b.value = r(l.currentRoute);
132
+ }), q((t) => {
133
+ var g;
134
+ if (!t || (g = t.meta) != null && g.hasTokenToRoot)
134
135
  return;
135
- const { meta: e = {} } = t, { currentActivePath: o, hideTab: l } = e, s = l ? o : null, v = T(t);
136
- if (r.value !== v && (r.value = v), s) {
137
- let b = n.getRoutes().find((_) => _.path === o);
138
- b && a.addTab(
139
- b,
140
- p(c),
141
- m.value,
136
+ const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, s = f(t);
137
+ if (m.value !== s && (m.value = s), p) {
138
+ let T = l.getRoutes().find((z) => z.path === o);
139
+ T && u.addTab(
140
+ T,
141
+ r(b),
142
+ a.value,
142
143
  t
143
144
  );
144
145
  } else
145
- a.addTab(p(t), p(c), m.value);
146
+ u.addTab(r(t), r(b), a.value);
146
147
  });
147
- function S(t) {
148
- var l, s;
149
- if (r.value === t.paneName)
148
+ function w(t) {
149
+ var n, p;
150
+ if (m.value === t.paneName)
150
151
  return;
151
- const e = f.value[t.attrs.index];
152
- r.value = t.paneName;
153
- const o = (s = (l = e == null ? void 0 : e.meta) == null ? void 0 : l.hideActiveRoute) == null ? void 0 : s.fullPath;
154
- h(o || e.fullPath || e.path);
152
+ const e = c.value[t.attrs.index];
153
+ m.value = t.paneName;
154
+ const o = (p = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : p.fullPath;
155
+ v(o || e.fullPath || e.path);
155
156
  }
156
- function P(t) {
157
- a.closeTabByKey(t, n);
157
+ function B(t) {
158
+ u.closeTabByKey(t, l);
158
159
  }
159
- const { refs: w, setRefs: Y } = $();
160
- function k(t) {
160
+ const { refs: M, setRefs: V } = L();
161
+ function A(t) {
161
162
  const e = t.pane.attrs.index, o = t.event;
162
- w.value[e].handleContext(o);
163
+ M.value[e].handleContext(o);
163
164
  }
164
- const B = g(() => ({ ...R({
165
+ const E = y(() => ({ ..._({
165
166
  padding: "4px 0 0",
166
167
  "border-bottom": "none",
167
168
  "header-height": "26px",
@@ -174,35 +175,64 @@ const C = (
174
175
  "header-margin": "0 0 0 8px",
175
176
  "item-border-radius": "5px 5px 0 0",
176
177
  "item-border": "none"
177
- }, "tabs"), ...u.tabsStyle })), { closeCurrent: M } = U();
178
- return F("command+e, ctrl+e", function() {
179
- return M(), !1;
180
- }), {
181
- ...R(
178
+ }, "tabs"), ...d.tabsStyle })), { closeCurrent: I } = J();
179
+ Y("command+e, ctrl+e", function() {
180
+ return I(), !1;
181
+ });
182
+ const N = {
183
+ ..._(
182
184
  {
183
185
  "sub-item-height": "40px",
184
186
  "item-min-width": "150px"
185
187
  },
186
188
  "menu"
187
189
  ),
188
- ...u.contextMenuStyle
189
- }, (t, e) => (I(), N("div", {
190
- class: V(p(C).b()),
191
- style: z(B.value)
190
+ ...d.contextMenuStyle
191
+ };
192
+ return (t, e) => (h(), R("div", {
193
+ class: K(r(k).b()),
194
+ style: W(E.value)
192
195
  }, [
193
- D(p(j), {
196
+ C(r(O), {
194
197
  "show-bar": !1,
195
198
  "fix-tab-count": t.fixTabCount,
196
199
  "fix-extra-scroll-width": t.fixExtraScrollWidth,
197
- "model-value": r.value,
198
- "onUpdate:modelValue": e[0] || (e[0] = (o) => r.value = o),
199
- onTabClick: S,
200
- onTabRemove: P,
201
- onTabContextMenu: k
202
- }, null, 8, ["fix-tab-count", "fix-extra-scroll-width", "model-value"])
200
+ "model-value": m.value,
201
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => m.value = o),
202
+ onTabClick: w,
203
+ onTabRemove: B,
204
+ onTabContextMenu: A
205
+ }, {
206
+ default: S(() => [
207
+ (h(!0), R($, null, F(c.value, (o, n) => {
208
+ var p;
209
+ return h(), U(r(Q), {
210
+ key: r(f)(o) + n,
211
+ closable: !((p = o.meta) != null && p.affix),
212
+ index: n,
213
+ name: r(f)(o)
214
+ }, {
215
+ label: S(() => {
216
+ var s;
217
+ return [
218
+ C(tt, {
219
+ "context-menu-style": N,
220
+ "affix-num": (s = r(i)) == null ? void 0 : s.length,
221
+ ref_for: !0,
222
+ ref: r(V)(n),
223
+ "tab-item": o
224
+ }, null, 8, ["affix-num", "tab-item"])
225
+ ];
226
+ }),
227
+ _: 2
228
+ }, 1032, ["closable", "index", "name"]);
229
+ }), 128))
230
+ ]),
231
+ _: 1
232
+ }, 8, ["fix-tab-count", "fix-extra-scroll-width", "model-value"])
203
233
  ], 6));
204
234
  }
205
235
  });
206
236
  export {
207
- Fe as default
237
+ Ze as default
208
238
  };