vft 0.0.151 → 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 (118) hide show
  1. package/es/components/affix/affix.vue.d.ts +1 -1
  2. package/es/components/affix/index.d.ts +2 -2
  3. package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
  4. package/es/components/autocomplete/index.d.ts +17 -17
  5. package/es/components/button/use-button.js +3 -3
  6. package/es/components/carousel/carousel.vue.d.ts +1 -1
  7. package/es/components/carousel/index.d.ts +19 -19
  8. package/es/components/checkbox/checkbox-button.vue.d.ts +1 -1
  9. package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
  10. package/es/components/checkbox/checkbox.vue.d.ts +1 -1
  11. package/es/components/checkbox/index.d.ts +10 -10
  12. package/es/components/color-picker/color-picker.vue.d.ts +1 -1
  13. package/es/components/color-picker/index.d.ts +1 -1
  14. package/es/components/date-picker/date-picker.d.ts +1 -1
  15. package/es/components/date-picker/index.d.ts +2 -2
  16. package/es/components/dialog/dialog.vue.d.ts +1 -1
  17. package/es/components/dialog/index.d.ts +2 -2
  18. package/es/components/drawer/drawer.vue.d.ts +1 -1
  19. package/es/components/drawer/index.d.ts +2 -2
  20. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  21. package/es/components/dropdown/index.d.ts +19 -19
  22. package/es/components/icon/icon.vue2.js +20 -21
  23. package/es/components/index.js +113 -113
  24. package/es/components/input/index.d.ts +12 -12
  25. package/es/components/input/input.vue.d.ts +4 -4
  26. package/es/components/input-number/index.d.ts +3 -3
  27. package/es/components/input-number/input-number.vue.d.ts +3 -3
  28. package/es/components/modal/index.d.ts +11 -11
  29. package/es/components/modal/modal.vue.d.ts +1 -1
  30. package/es/components/multiple-tabs/multiple-tabs.vue2.js +97 -67
  31. package/es/components/popconfirm/index.d.ts +11 -11
  32. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  33. package/es/components/progress/index.d.ts +4 -4
  34. package/es/components/radio/index.d.ts +6 -6
  35. package/es/components/radio/radio-group.vue.d.ts +1 -1
  36. package/es/components/radio/radio.vue.d.ts +1 -1
  37. package/es/components/search/index.d.ts +8 -8
  38. package/es/components/search/search.vue.d.ts +2 -2
  39. package/es/components/select/index.d.ts +8 -8
  40. package/es/components/select/select.vue.d.ts +4 -4
  41. package/es/components/select/useSelect.d.ts +1 -1
  42. package/es/components/side-menu/side-menu.vue2.js +44 -44
  43. package/es/components/slider/index.d.ts +1 -1
  44. package/es/components/slider/slider.vue.d.ts +1 -1
  45. package/es/components/switch/index.d.ts +3 -3
  46. package/es/components/switch/switch.vue.d.ts +3 -3
  47. package/es/components/table/index.d.ts +17 -17
  48. package/es/components/table/table.vue.d.ts +2 -2
  49. package/es/components/tabs/tabs.vue2.js +4 -4
  50. package/es/components/time-picker/common/picker.vue.d.ts +4 -4
  51. package/es/components/time-picker/index.d.ts +2 -2
  52. package/es/components/time-picker/time-picker.d.ts +1 -1
  53. package/es/components/time-select/time-select.vue.d.ts +3 -3
  54. package/es/components/tree/index.d.ts +16 -16
  55. package/es/components/upload/index.d.ts +12 -12
  56. package/es/index.js +113 -113
  57. package/es/package.json.d.ts +1 -1
  58. package/es/package.json.js +1 -1
  59. package/lib/components/affix/affix.vue.d.ts +1 -1
  60. package/lib/components/affix/index.d.ts +2 -2
  61. package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
  62. package/lib/components/autocomplete/index.d.ts +17 -17
  63. package/lib/components/button/use-button.cjs +1 -1
  64. package/lib/components/carousel/carousel.vue.d.ts +1 -1
  65. package/lib/components/carousel/index.d.ts +19 -19
  66. package/lib/components/checkbox/checkbox-button.vue.d.ts +1 -1
  67. package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
  68. package/lib/components/checkbox/checkbox.vue.d.ts +1 -1
  69. package/lib/components/checkbox/index.d.ts +10 -10
  70. package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
  71. package/lib/components/color-picker/index.d.ts +1 -1
  72. package/lib/components/date-picker/date-picker.d.ts +1 -1
  73. package/lib/components/date-picker/index.d.ts +2 -2
  74. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  75. package/lib/components/dialog/index.d.ts +2 -2
  76. package/lib/components/drawer/drawer.vue.d.ts +1 -1
  77. package/lib/components/drawer/index.d.ts +2 -2
  78. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  79. package/lib/components/dropdown/index.d.ts +19 -19
  80. package/lib/components/icon/icon.vue2.cjs +1 -1
  81. package/lib/components/index.cjs +1 -1
  82. package/lib/components/input/index.d.ts +12 -12
  83. package/lib/components/input/input.vue.d.ts +4 -4
  84. package/lib/components/input-number/index.d.ts +3 -3
  85. package/lib/components/input-number/input-number.vue.d.ts +3 -3
  86. package/lib/components/modal/index.d.ts +11 -11
  87. package/lib/components/modal/modal.vue.d.ts +1 -1
  88. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  89. package/lib/components/popconfirm/index.d.ts +11 -11
  90. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  91. package/lib/components/progress/index.d.ts +4 -4
  92. package/lib/components/radio/index.d.ts +6 -6
  93. package/lib/components/radio/radio-group.vue.d.ts +1 -1
  94. package/lib/components/radio/radio.vue.d.ts +1 -1
  95. package/lib/components/search/index.d.ts +8 -8
  96. package/lib/components/search/search.vue.d.ts +2 -2
  97. package/lib/components/select/index.d.ts +8 -8
  98. package/lib/components/select/select.vue.d.ts +4 -4
  99. package/lib/components/select/useSelect.d.ts +1 -1
  100. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  101. package/lib/components/slider/index.d.ts +1 -1
  102. package/lib/components/slider/slider.vue.d.ts +1 -1
  103. package/lib/components/switch/index.d.ts +3 -3
  104. package/lib/components/switch/switch.vue.d.ts +3 -3
  105. package/lib/components/table/index.d.ts +17 -17
  106. package/lib/components/table/table.vue.d.ts +2 -2
  107. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  108. package/lib/components/time-picker/common/picker.vue.d.ts +4 -4
  109. package/lib/components/time-picker/index.d.ts +2 -2
  110. package/lib/components/time-picker/time-picker.d.ts +1 -1
  111. package/lib/components/time-select/time-select.vue.d.ts +3 -3
  112. package/lib/components/tree/index.d.ts +16 -16
  113. package/lib/components/upload/index.d.ts +12 -12
  114. package/lib/index.cjs +1 -1
  115. package/lib/package.json.cjs +1 -1
  116. package/lib/package.json.d.ts +1 -1
  117. package/package.json +4 -4
  118. package/web-types.json +1 -1
@@ -32,16 +32,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
32
32
  type: globalThis.PropType<string | import("..").IconProps>;
33
33
  };
34
34
  }>> & {
35
+ onChange?: ((val: string | number) => any) | undefined;
35
36
  onInput?: ((val: string | number) => any) | undefined;
36
37
  onBlur?: (() => any) | undefined;
37
- onChange?: ((val: string | number) => any) | undefined;
38
38
  onFocus?: (() => any) | undefined;
39
39
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
40
40
  onMouseenter?: ((val: string | number) => any) | undefined;
41
41
  onMouseleave?: ((val: string | number) => any) | undefined;
42
42
  onEnter?: ((val: string | number) => any) | undefined;
43
- onClear?: (() => any) | undefined;
44
43
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
44
+ onClear?: (() => any) | undefined;
45
45
  onSuffixClick?: ((val: string | number) => any) | undefined;
46
46
  onPrefixClick?: ((val: string | number) => any) | undefined;
47
47
  }, {
@@ -95,16 +95,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
95
95
  type: globalThis.PropType<string | import("..").IconProps>;
96
96
  };
97
97
  }>> & {
98
+ onChange?: ((val: string | number) => any) | undefined;
98
99
  onInput?: ((val: string | number) => any) | undefined;
99
100
  onBlur?: (() => any) | undefined;
100
- onChange?: ((val: string | number) => any) | undefined;
101
101
  onFocus?: (() => any) | undefined;
102
102
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
103
103
  onMouseenter?: ((val: string | number) => any) | undefined;
104
104
  onMouseleave?: ((val: string | number) => any) | undefined;
105
105
  onEnter?: ((val: string | number) => any) | undefined;
106
- onClear?: (() => any) | undefined;
107
106
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
107
+ onClear?: (() => any) | undefined;
108
108
  onSuffixClick?: ((val: string | number) => any) | undefined;
109
109
  onPrefixClick?: ((val: string | number) => any) | undefined;
110
110
  }, {}, true, {}, {}, {
@@ -146,16 +146,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
146
146
  type: globalThis.PropType<string | import("..").IconProps>;
147
147
  };
148
148
  }>> & {
149
+ onChange?: ((val: string | number) => any) | undefined;
149
150
  onInput?: ((val: string | number) => any) | undefined;
150
151
  onBlur?: (() => any) | undefined;
151
- onChange?: ((val: string | number) => any) | undefined;
152
152
  onFocus?: (() => any) | undefined;
153
153
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
154
154
  onMouseenter?: ((val: string | number) => any) | undefined;
155
155
  onMouseleave?: ((val: string | number) => any) | undefined;
156
156
  onEnter?: ((val: string | number) => any) | undefined;
157
- onClear?: (() => any) | undefined;
158
157
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
158
+ onClear?: (() => any) | undefined;
159
159
  onSuffixClick?: ((val: string | number) => any) | undefined;
160
160
  onPrefixClick?: ((val: string | number) => any) | undefined;
161
161
  }, {
@@ -200,16 +200,16 @@ export declare const VftSearch: import("vft/es/utils").SFCWithInstall<{
200
200
  type: globalThis.PropType<string | import("..").IconProps>;
201
201
  };
202
202
  }>> & {
203
+ onChange?: ((val: string | number) => any) | undefined;
203
204
  onInput?: ((val: string | number) => any) | undefined;
204
205
  onBlur?: (() => any) | undefined;
205
- onChange?: ((val: string | number) => any) | undefined;
206
206
  onFocus?: (() => any) | undefined;
207
207
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
208
208
  onMouseenter?: ((val: string | number) => any) | undefined;
209
209
  onMouseleave?: ((val: string | number) => any) | undefined;
210
210
  onEnter?: ((val: string | number) => any) | undefined;
211
- onClear?: (() => any) | undefined;
212
211
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
212
+ onClear?: (() => any) | undefined;
213
213
  onSuffixClick?: ((val: string | number) => any) | undefined;
214
214
  onPrefixClick?: ((val: string | number) => any) | undefined;
215
215
  }, {
@@ -33,16 +33,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
33
33
  change: (val: string | number) => void;
34
34
  input: (val: string | number) => void;
35
35
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchProps & _InputProps>>> & {
36
+ onChange?: ((val: string | number) => any) | undefined;
36
37
  onInput?: ((val: string | number) => any) | undefined;
37
38
  onBlur?: (() => any) | undefined;
38
- onChange?: ((val: string | number) => any) | undefined;
39
39
  onFocus?: (() => any) | undefined;
40
40
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
41
41
  onMouseenter?: ((val: string | number) => any) | undefined;
42
42
  onMouseleave?: ((val: string | number) => any) | undefined;
43
43
  onEnter?: ((val: string | number) => any) | undefined;
44
- onClear?: (() => any) | undefined;
45
44
  "onUpdate:modelValue"?: ((val: string | number) => any) | undefined;
45
+ onClear?: (() => any) | undefined;
46
46
  onSuffixClick?: ((val: string | number) => any) | undefined;
47
47
  onPrefixClick?: ((val: string | number) => any) | undefined;
48
48
  }, {}, {}>, {
@@ -223,7 +223,6 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
223
223
  readonly appendTo?: any;
224
224
  readonly visible?: boolean | undefined;
225
225
  readonly effect?: "light" | "dark" | undefined;
226
- readonly teleported?: boolean | undefined;
227
226
  readonly arrowOffset?: number | undefined;
228
227
  readonly gpuAcceleration?: boolean | undefined;
229
228
  readonly fallbackPlacements?: Placement[] | undefined;
@@ -242,6 +241,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
242
241
  readonly virtualRef?: import("..").Measurable | undefined;
243
242
  readonly rawContent?: boolean | undefined;
244
243
  readonly persistent?: boolean | undefined;
244
+ readonly teleported?: boolean | undefined;
245
245
  readonly triggerKeys?: string[] | undefined;
246
246
  readonly showArrow?: boolean | undefined;
247
247
  onClose?: ((...args: any[]) => any) | undefined;
@@ -800,7 +800,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
800
800
  handleCompositionStart: () => void;
801
801
  handleCompositionEnd: (event: any) => void;
802
802
  handleCompositionUpdate: (event: any) => void;
803
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "change" | "focus" | "update:modelValue" | "visible-change" | "remove-tag")[], "clear" | "blur" | "change" | "focus" | "update:modelValue" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
803
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
804
804
  allowCreate: BooleanConstructor;
805
805
  autocomplete: {
806
806
  type: globalThis.PropType<"both" | "none" | "inline" | "list">;
@@ -900,11 +900,11 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
900
900
  default: string;
901
901
  };
902
902
  }>> & {
903
- onBlur?: ((...args: any[]) => any) | undefined;
904
903
  onChange?: ((...args: any[]) => any) | undefined;
904
+ onBlur?: ((...args: any[]) => any) | undefined;
905
905
  onFocus?: ((...args: any[]) => any) | undefined;
906
- onClear?: ((...args: any[]) => any) | undefined;
907
906
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
907
+ onClear?: ((...args: any[]) => any) | undefined;
908
908
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
909
909
  "onRemove-tag"?: ((...args: any[]) => any) | undefined;
910
910
  }, {
@@ -1160,7 +1160,6 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
1160
1160
  readonly appendTo?: any;
1161
1161
  readonly visible?: boolean | undefined;
1162
1162
  readonly effect?: "light" | "dark" | undefined;
1163
- readonly teleported?: boolean | undefined;
1164
1163
  readonly arrowOffset?: number | undefined;
1165
1164
  readonly gpuAcceleration?: boolean | undefined;
1166
1165
  readonly fallbackPlacements?: Placement[] | undefined;
@@ -1179,6 +1178,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
1179
1178
  readonly virtualRef?: import("..").Measurable | undefined;
1180
1179
  readonly rawContent?: boolean | undefined;
1181
1180
  readonly persistent?: boolean | undefined;
1181
+ readonly teleported?: boolean | undefined;
1182
1182
  readonly triggerKeys?: string[] | undefined;
1183
1183
  readonly showArrow?: boolean | undefined;
1184
1184
  onClose?: ((...args: any[]) => any) | undefined;
@@ -1737,7 +1737,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
1737
1737
  handleCompositionStart: () => void;
1738
1738
  handleCompositionEnd: (event: any) => void;
1739
1739
  handleCompositionUpdate: (event: any) => void;
1740
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "change" | "focus" | "update:modelValue" | "visible-change" | "remove-tag")[], "clear" | "blur" | "change" | "focus" | "update:modelValue" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
1740
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
1741
1741
  allowCreate: BooleanConstructor;
1742
1742
  autocomplete: {
1743
1743
  type: globalThis.PropType<"both" | "none" | "inline" | "list">;
@@ -1837,11 +1837,11 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<{
1837
1837
  default: string;
1838
1838
  };
1839
1839
  }>> & {
1840
- onBlur?: ((...args: any[]) => any) | undefined;
1841
1840
  onChange?: ((...args: any[]) => any) | undefined;
1841
+ onBlur?: ((...args: any[]) => any) | undefined;
1842
1842
  onFocus?: ((...args: any[]) => any) | undefined;
1843
- onClear?: ((...args: any[]) => any) | undefined;
1844
1843
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1844
+ onClear?: ((...args: any[]) => any) | undefined;
1845
1845
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
1846
1846
  "onRemove-tag"?: ((...args: any[]) => any) | undefined;
1847
1847
  }, {
@@ -222,7 +222,6 @@ declare const _default: import("vue").DefineComponent<{
222
222
  readonly appendTo?: any;
223
223
  readonly visible?: boolean | undefined;
224
224
  readonly effect?: "light" | "dark" | undefined;
225
- readonly teleported?: boolean | undefined;
226
225
  readonly arrowOffset?: number | undefined;
227
226
  readonly gpuAcceleration?: boolean | undefined;
228
227
  readonly fallbackPlacements?: Placement[] | undefined;
@@ -241,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
241
240
  readonly virtualRef?: import("..").Measurable | undefined;
242
241
  readonly rawContent?: boolean | undefined;
243
242
  readonly persistent?: boolean | undefined;
243
+ readonly teleported?: boolean | undefined;
244
244
  readonly triggerKeys?: string[] | undefined;
245
245
  readonly showArrow?: boolean | undefined;
246
246
  onClose?: ((...args: any[]) => any) | undefined;
@@ -799,7 +799,7 @@ declare const _default: import("vue").DefineComponent<{
799
799
  handleCompositionStart: () => void;
800
800
  handleCompositionEnd: (event: any) => void;
801
801
  handleCompositionUpdate: (event: any) => void;
802
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "blur" | "change" | "focus" | "update:modelValue" | "visible-change" | "remove-tag")[], "clear" | "blur" | "change" | "focus" | "update:modelValue" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
802
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "clear" | "blur" | "focus" | "visible-change" | "remove-tag", import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
803
803
  allowCreate: BooleanConstructor;
804
804
  autocomplete: {
805
805
  type: globalThis.PropType<"both" | "none" | "inline" | "list">;
@@ -899,11 +899,11 @@ declare const _default: import("vue").DefineComponent<{
899
899
  default: string;
900
900
  };
901
901
  }>> & {
902
- onBlur?: ((...args: any[]) => any) | undefined;
903
902
  onChange?: ((...args: any[]) => any) | undefined;
903
+ onBlur?: ((...args: any[]) => any) | undefined;
904
904
  onFocus?: ((...args: any[]) => any) | undefined;
905
- onClear?: ((...args: any[]) => any) | undefined;
906
905
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
906
+ onClear?: ((...args: any[]) => any) | undefined;
907
907
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
908
908
  "onRemove-tag"?: ((...args: any[]) => any) | undefined;
909
909
  }, {
@@ -126,7 +126,6 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
126
126
  readonly appendTo?: any;
127
127
  readonly visible?: boolean | undefined;
128
128
  readonly effect?: "light" | "dark" | undefined;
129
- readonly teleported?: boolean | undefined;
130
129
  readonly arrowOffset?: number | undefined;
131
130
  readonly gpuAcceleration?: boolean | undefined;
132
131
  readonly fallbackPlacements?: Placement[] | undefined;
@@ -145,6 +144,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
145
144
  readonly virtualRef?: import("..").Measurable | undefined;
146
145
  readonly rawContent?: boolean | undefined;
147
146
  readonly persistent?: boolean | undefined;
147
+ readonly teleported?: boolean | undefined;
148
148
  readonly triggerKeys?: string[] | undefined;
149
149
  readonly showArrow?: boolean | undefined;
150
150
  onClose?: ((...args: any[]) => any) | undefined;
@@ -1,7 +1,7 @@
1
- import { defineComponent as I, toRefs as ie, useSlots as ne, getCurrentInstance as le, ref as C, computed as g, h as M, createVNode as f, onMounted as pe, nextTick as ae, watch as ue, isVNode as se } from "vue";
1
+ import { defineComponent as I, toRefs as ie, useSlots as le, getCurrentInstance as ne, ref as C, computed as g, h as M, createVNode as f, onMounted as ae, nextTick as pe, watch as ue, isVNode as se } from "vue";
2
2
  import { listenerRouteChange as de, useRouterHelper as me } from "@vft/router";
3
3
  import { useSortable as ce } from "@vft/use";
4
- import { isUrl as fe, isNullOrUndefined as j, addUnit as E, isNumber as he } from "@vft/utils";
4
+ import { isUrl as fe, isNullOrUndefined as j, addUnit as E, isNumber as ve } from "@vft/utils";
5
5
  import "../alert/index.js";
6
6
  import "../avatar/index.js";
7
7
  import "../backtop/index.js";
@@ -31,7 +31,7 @@ import "../form/index.js";
31
31
  import "../full-screen/index.js";
32
32
  import "../header-layout/index.js";
33
33
  import "../horizontal-menu/index.js";
34
- import { VftIcon as ve } from "../icon/index.js";
34
+ import { VftIcon as he } from "../icon/index.js";
35
35
  import "../icon-text/index.js";
36
36
  import "../iframe-layout/index.js";
37
37
  import "../image/index.js";
@@ -172,11 +172,11 @@ const Se = I({
172
172
  }) {
173
173
  const t = b, {
174
174
  defaultActive: S,
175
- collapse: h,
175
+ collapse: v,
176
176
  uniqueOpened: H,
177
177
  defaultOpeneds: x,
178
178
  openMenuCollapse: U
179
- } = ie(t), m = P, n = ne(), B = le(), _ = C(), p = g(() => ({
179
+ } = ie(t), m = P, l = le(), B = ne(), _ = C(), a = g(() => ({
180
180
  path: "path",
181
181
  children: "children",
182
182
  title: "title",
@@ -193,9 +193,9 @@ const Se = I({
193
193
  var r;
194
194
  const o = e.e;
195
195
  if (t.autoScrollActiveDom && o) {
196
- const a = he(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, i = o.target;
196
+ const p = ve(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, i = o.target;
197
197
  (r = y.value) != null && r.menu && i && setTimeout(() => {
198
- y.value.menu.scrollTop = y.value.menu.scrollTop + (i.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + a;
198
+ y.value.menu.scrollTop = y.value.menu.scrollTop + (i.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + p;
199
199
  }, 300);
200
200
  }
201
201
  m("subMenuClick", e);
@@ -204,7 +204,7 @@ const Se = I({
204
204
  }, $ = (e) => {
205
205
  m("menuItemMouseleave", e);
206
206
  }, T = (e, o) => {
207
- const r = e[p.value.path], a = e[p.value.title], i = e == null ? void 0 : e[p.value.children], c = e == null ? void 0 : e[p.value.index], s = e == null ? void 0 : e[p.value.icon], d = !!(e != null && e[p.value.disabled]), v = t.disabledJudgeTurnOver ? !d : d, N = c || r || o + a;
207
+ const r = e[a.value.path], p = e[a.value.title], i = e == null ? void 0 : e[a.value.children], c = e == null ? void 0 : e[a.value.index], s = e == null ? void 0 : e[a.value.icon], d = !!(e != null && e[a.value.disabled]), h = t.disabledJudgeTurnOver ? !d : d, N = c || r || o + p;
208
208
  return i != null && i.length ? M(
209
209
  // @ts-ignore
210
210
  be,
@@ -213,29 +213,29 @@ const Se = I({
213
213
  popperAppendToBody: !0,
214
214
  key: N,
215
215
  index: N,
216
- title: a,
216
+ title: p,
217
217
  icon: s,
218
- disabled: t.openDisabled && v,
218
+ disabled: t.openDisabled && h,
219
219
  popperClass: u.e("popper")
220
220
  },
221
221
  {
222
- default: () => i == null ? void 0 : i.map((l, ee) => {
222
+ default: () => i == null ? void 0 : i.map((n, ee) => {
223
223
  var V;
224
- const w = l[p.value.path], W = l[p.value.index], te = l[p.value.icon], oe = l[p.value.title], A = !!l[p.value.disabled], re = t.disabledJudgeTurnOver ? !A : A;
225
- return (V = l == null ? void 0 : l[p.value.children]) != null && V.length ? T(l, ee) : (
224
+ const w = n[a.value.path], W = n[a.value.index], te = n[a.value.icon], oe = n[a.value.title], A = !!n[a.value.disabled], re = t.disabledJudgeTurnOver ? !A : A;
225
+ return (V = n == null ? void 0 : n[a.value.children]) != null && V.length ? T(n, ee) : (
226
226
  // @ts-ignore
227
227
  M(q, {
228
- ...l,
228
+ ...n,
229
229
  key: W || w,
230
230
  index: W || w,
231
231
  route: w,
232
232
  icon: te,
233
233
  title: oe,
234
234
  disabled: t.openDisabled && re
235
- }, n.menuItem ? () => {
235
+ }, l.menuItem ? () => {
236
236
  var J;
237
- return (J = n.menuItem) == null ? void 0 : J.call(n, {
238
- item: l
237
+ return (J = l.menuItem) == null ? void 0 : J.call(l, {
238
+ item: n
239
239
  });
240
240
  } : "")
241
241
  );
@@ -245,21 +245,21 @@ const Se = I({
245
245
  ...e,
246
246
  key: c || r,
247
247
  index: c || r,
248
- title: a,
248
+ title: p,
249
249
  route: r,
250
250
  icon: s,
251
- disabled: t.openDisabled && v,
251
+ disabled: t.openDisabled && h,
252
252
  onMouseenter: () => Z(e),
253
253
  onMouseleave: () => $(e)
254
- }, n.menuItem ? () => {
255
- var l;
256
- return (l = n.menuItem) == null ? void 0 : l.call(n, {
254
+ }, l.menuItem ? () => {
255
+ var n;
256
+ return (n = l.menuItem) == null ? void 0 : n.call(l, {
257
257
  item: e,
258
258
  index: o
259
259
  });
260
260
  } : "");
261
261
  }, y = C(), z = g(() => ({
262
- ...t.collapseWidth === 0 && h.value ? {
262
+ ...t.collapseWidth === 0 && v.value ? {
263
263
  width: 0
264
264
  } : {},
265
265
  height: `calc(100% - ${t.menuTopBottomHeight}px)`
@@ -267,29 +267,29 @@ const Se = I({
267
267
  var o, r;
268
268
  let e;
269
269
  return M(f(ge, {
270
- ref: y,
270
+ ref: y.value,
271
271
  onSelect: G,
272
272
  onOpen: F,
273
273
  defaultActive: (S == null ? void 0 : S.value) || _.value,
274
274
  defaultOpeneds: x == null ? void 0 : x.value,
275
275
  class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((r = t.dragOption) == null ? void 0 : r.dragClassName) : ""],
276
276
  style: z.value,
277
- collapse: U.value ? h.value : !1,
277
+ collapse: U.value ? v.value : !1,
278
278
  uniqueOpened: H.value,
279
279
  collapseTransition: !1
280
- }, Me(e = t.menus.map((a, i) => T(a, i))) ? e : {
280
+ }, Me(e = t.menus.map((p, i) => T(p, i))) ? e : {
281
281
  default: () => [e]
282
282
  }));
283
283
  }), D = B.appContext.config.globalProperties.$router;
284
284
  async function G(e) {
285
- var o, r, a;
285
+ var o, r, p;
286
286
  if (t.useRouterJump) {
287
287
  const {
288
288
  go: i
289
289
  } = me(D), c = e.route;
290
290
  let s = e.route;
291
- e.indexPath.some((v) => fe(v)) && (s = e.indexPath.slice(-2).join("/"));
292
- const d = (a = (r = (o = D.getRoutes().filter((v) => v.path === s)) == null ? void 0 : o[0]) == null ? void 0 : r.meta) == null ? void 0 : a.linkTarget;
291
+ e.indexPath.some((h) => fe(h)) && (s = e.indexPath.slice(-2).join("/"));
292
+ const d = (p = (r = (o = D.getRoutes().filter((h) => h.path === s)) == null ? void 0 : o[0]) == null ? void 0 : r.meta) == null ? void 0 : p.linkTarget;
293
293
  i(d ? {
294
294
  url: c,
295
295
  winOpenOpt: {
@@ -299,13 +299,13 @@ const Se = I({
299
299
  }
300
300
  m("select", e);
301
301
  }
302
- pe(() => {
303
- ae(() => {
302
+ ae(() => {
303
+ pe(() => {
304
304
  var e, o, r;
305
305
  if ((e = t.dragOption) != null && e.dragClassName) {
306
- const a = (r = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : r[0], {
306
+ const p = (r = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : r[0], {
307
307
  initSortable: i
308
- } = ce(a, {
308
+ } = ce(p, {
309
309
  draggable: ".vft-menu-item",
310
310
  onEnd: (c) => {
311
311
  const {
@@ -321,13 +321,13 @@ const Se = I({
321
321
  });
322
322
  });
323
323
  const O = C(), R = C(), k = C(), K = g(() => ({
324
- ...t.collapseWidth === 0 && h.value ? {
324
+ ...t.collapseWidth === 0 && v.value ? {
325
325
  borderRight: "none"
326
326
  } : {},
327
327
  width: E(t.width),
328
328
  height: t.height
329
329
  }));
330
- ue(() => h.value, (e) => {
330
+ ue(() => v.value, (e) => {
331
331
  e ? m("update:width", t.collapseWidth) : m("update:width", k.value || t.width), k.value = t.width;
332
332
  }), t.dragWidthCfg && Ce(O, R, B);
333
333
  const Q = g(() => ({
@@ -338,24 +338,24 @@ const Se = I({
338
338
  }), () => {
339
339
  var e;
340
340
  return f("div", {
341
- ref: O,
341
+ ref: O.value,
342
342
  class: X.value,
343
343
  style: K.value
344
- }, [n.top ? f("div", {
344
+ }, [l.top ? f("div", {
345
345
  class: u.e("top")
346
- }, [n.top()]) : null, Y.value, n.bottom ? f("div", {
346
+ }, [l.top()]) : null, Y.value, l.bottom ? f("div", {
347
347
  class: u.e("bottom")
348
- }, [n.bottom()]) : t.showCollapse ? f("div", {
349
- onClick: () => m("update:collapse", !h.value),
348
+ }, [l.bottom()]) : t.showCollapse ? f("div", {
349
+ onClick: () => m("update:collapse", !v.value),
350
350
  class: [u.e("bottom"), u.e("collapse")]
351
- }, [f(ve, {
351
+ }, [f(he, {
352
352
  style: {
353
- transform: h.value ? "rotateY(180deg)" : ""
353
+ transform: v.value ? "rotateY(180deg)" : ""
354
354
  },
355
355
  size: 20,
356
356
  icon: "icon-sidebar-collapse"
357
- }, null)]) : null, (e = n.default) == null ? void 0 : e.call(n), t.dragWidthCfg ? f("div", {
358
- ref: R,
357
+ }, null)]) : null, (e = l.default) == null ? void 0 : e.call(l), t.dragWidthCfg ? f("div", {
358
+ ref: R.value,
359
359
  style: Q.value,
360
360
  class: u.e("drag-bar")
361
361
  }, null) : null]);
@@ -163,8 +163,8 @@ export declare const VftSlider: import("vft/es/utils").SFCWithInstall<import("vu
163
163
  type: globalThis.PropType<boolean>;
164
164
  };
165
165
  }>> & {
166
- onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
167
166
  onChange?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
167
+ onInput?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
168
168
  "onUpdate:modelValue"?: ((value: import("vft/es/utils").Arrayable<number>) => any) | undefined;
169
169
  }, {}, {}>> & Record<string, any>;
170
170
  export default VftSlider;
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
35
35
  change: (value: import("../../utils").Arrayable<number>) => void;
36
36
  input: (value: import("../../utils").Arrayable<number>) => void;
37
37
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SliderProps>>> & {
38
- onInput?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
39
38
  onChange?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
39
+ onInput?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
40
40
  "onUpdate:modelValue"?: ((value: import("../../utils").Arrayable<number>) => any) | undefined;
41
41
  }, {}, {}>;
42
42
  export default _default;
@@ -74,9 +74,9 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
74
74
  focus: () => void;
75
75
  checked: globalThis.ComputedRef<boolean>;
76
76
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
77
- input: (...args: any[]) => void;
78
- change: (...args: any[]) => void;
79
77
  "update:modelValue": (...args: any[]) => void;
78
+ change: (...args: any[]) => void;
79
+ input: (...args: any[]) => void;
80
80
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
81
81
  value: {
82
82
  type: globalThis.PropType<string | number | boolean>;
@@ -150,8 +150,8 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
150
150
  type: globalThis.PropType<Function>;
151
151
  };
152
152
  }>> & {
153
- onInput?: ((...args: any[]) => any) | undefined;
154
153
  onChange?: ((...args: any[]) => any) | undefined;
154
+ onInput?: ((...args: any[]) => any) | undefined;
155
155
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
156
156
  }, {
157
157
  value: string | number | boolean;
@@ -42,9 +42,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
42
42
  */
43
43
  checked: globalThis.ComputedRef<boolean>;
44
44
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
- input: (...args: any[]) => void;
46
- change: (...args: any[]) => void;
47
45
  "update:modelValue": (...args: any[]) => void;
46
+ change: (...args: any[]) => void;
47
+ input: (...args: any[]) => void;
48
48
  }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwitchProps>, {
49
49
  modelValue: boolean;
50
50
  value: boolean;
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
55
55
  validateEvent: boolean;
56
56
  loading: boolean;
57
57
  }>>> & {
58
- onInput?: ((...args: any[]) => any) | undefined;
59
58
  onChange?: ((...args: any[]) => any) | undefined;
59
+ onInput?: ((...args: any[]) => any) | undefined;
60
60
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
61
61
  }, {
62
62
  value: string | number | boolean;