vft 0.0.145 → 0.0.147

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 (225) hide show
  1. package/es/app-components/form/hooks/use-form-item.d.ts +2 -2
  2. package/es/app-components/upload/types.d.ts +1 -1
  3. package/es/app-components/upload/utils.d.ts +1 -1
  4. package/es/component.d.ts +1 -0
  5. package/es/components/affix/affix.d.ts +1 -1
  6. package/es/components/affix/affix.vue.d.ts +3 -3
  7. package/es/components/affix/index.d.ts +6 -6
  8. package/es/components/autocomplete/autocomplete.vue.d.ts +7 -7
  9. package/es/components/autocomplete/index.d.ts +21 -21
  10. package/es/components/avatar/index.d.ts +3 -3
  11. package/es/components/backtop/index.d.ts +2 -2
  12. package/es/components/button/button.vue.d.ts +209 -0
  13. package/es/components/button/index.d.ts +593 -0
  14. package/es/components/button/use-button.d.ts +20 -0
  15. package/es/components/carousel/carousel.vue.d.ts +9 -9
  16. package/es/components/carousel/index.d.ts +15 -15
  17. package/es/components/checkbox/checkbox.vue.d.ts +6 -6
  18. package/es/components/checkbox/composables/use-checkbox-disabled.d.ts +6 -0
  19. package/es/components/checkbox/composables/use-checkbox.d.ts +15 -0
  20. package/es/components/checkbox/index.d.ts +12 -12
  21. package/es/components/clamp/index.d.ts +2 -2
  22. package/es/components/color-picker/color-picker.vue.d.ts +4 -4
  23. package/es/components/color-picker/index.d.ts +4 -4
  24. package/es/components/config-provider/hooks/use-global-config.d.ts +31 -0
  25. package/es/components/container/container.vue.d.ts +2 -2
  26. package/es/components/container/index.d.ts +10 -10
  27. package/es/components/date-picker/composables/use-range-picker.d.ts +1 -1
  28. package/es/components/date-picker/date-picker.d.ts +1 -1
  29. package/es/components/date-picker/index.d.ts +2 -2
  30. package/es/components/date-picker/panel-utils.d.ts +1 -1
  31. package/es/components/descriptions/description.vue.d.ts +2 -2
  32. package/es/components/descriptions/index.d.ts +9 -9
  33. package/es/components/dialog/index.d.ts +3 -3
  34. package/es/components/divider/divider.vue.d.ts +2 -2
  35. package/es/components/divider/index.d.ts +4 -4
  36. package/es/components/drawer/index.d.ts +3 -3
  37. package/es/components/dropdown/dropdown.vue.d.ts +20 -20
  38. package/es/components/dropdown/index.d.ts +34 -34
  39. package/es/components/form/form-item.vue.d.ts +9 -9
  40. package/es/components/form/form.vue.d.ts +2 -2
  41. package/es/components/form/hooks/use-form-common-props.d.ts +6 -0
  42. package/es/components/form/index.d.ts +35 -35
  43. package/es/components/image/index.d.ts +2 -2
  44. package/es/components/image-viewer/index.d.ts +1 -1
  45. package/es/components/input/index.d.ts +9 -9
  46. package/es/components/input/input.vue.d.ts +3 -3
  47. package/es/components/link/index.d.ts +2 -2
  48. package/es/components/loading/index.d.ts +48 -0
  49. package/es/components/loading/loading.d.ts +36 -0
  50. package/es/components/md-code-demo/index.d.ts +3 -3
  51. package/es/components/md-code-demo/md-code-demo.d.ts +3 -3
  52. package/es/components/menu/index.d.ts +8 -2
  53. package/es/components/menu/menu.vue.d.ts +10 -2
  54. package/es/components/menu/menu.vue2.js +28 -26
  55. package/es/components/modal/index.d.ts +34 -34
  56. package/es/components/modal/modal.vue.d.ts +21 -21
  57. package/es/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  58. package/es/components/popconfirm/index.d.ts +9 -9
  59. package/es/components/popconfirm/popconfirm.vue.d.ts +6 -6
  60. package/es/components/popover/index.d.ts +2 -2
  61. package/es/components/popper/composables/use-content.d.ts +3 -3
  62. package/es/components/popper/content.vue.d.ts +1 -1
  63. package/es/components/popper/index.d.ts +4 -4
  64. package/es/components/popper/popper.vue.d.ts +2 -2
  65. package/es/components/progress/index.d.ts +1 -1
  66. package/es/components/radio/index.d.ts +20 -20
  67. package/es/components/radio/radio-group.vue.d.ts +6 -6
  68. package/es/components/radio/use-radio.d.ts +15 -0
  69. package/es/components/row/index.d.ts +1 -1
  70. package/es/components/scrollbar/index.d.ts +2 -2
  71. package/es/components/search/index.d.ts +1 -1
  72. package/es/components/select/index.d.ts +1660 -2
  73. package/es/components/select/select.vue.d.ts +830 -1
  74. package/es/components/select/useSelect.d.ts +7 -7
  75. package/es/components/space/index.d.ts +3 -3
  76. package/es/components/space/space.d.ts +4 -4
  77. package/es/components/super-form/index.d.ts +16 -16
  78. package/es/components/super-form/super-form.vue.d.ts +9 -9
  79. package/es/components/super-form/super-form.vue2.js +40 -40
  80. package/es/components/switch/index.d.ts +12 -12
  81. package/es/components/switch/switch.vue.d.ts +12 -12
  82. package/es/components/table/index.d.ts +53 -50
  83. package/es/components/table/table.vue.d.ts +32 -30
  84. package/es/components/table/table.vue2.js +7 -3
  85. package/es/components/table/use/use-columns.d.ts +12 -12
  86. package/es/components/tabs/index.d.ts +2 -2
  87. package/es/components/tabs/tabs.vue.d.ts +2 -2
  88. package/es/components/time-picker/common/picker.vue.d.ts +1 -1
  89. package/es/components/time-picker/composables/use-time-picker.d.ts +2 -2
  90. package/es/components/time-picker/index.d.ts +2 -2
  91. package/es/components/time-picker/time-picker.d.ts +1 -1
  92. package/es/components/tooltip/index.d.ts +8 -8
  93. package/es/components/tooltip/tooltip.vue.d.ts +2 -2
  94. package/es/components/tree/index.d.ts +22 -22
  95. package/es/components/tree/tree.vue.d.ts +6 -6
  96. package/es/components/upload/index.d.ts +9 -9
  97. package/es/components/upload/upload-content.vue.d.ts +6 -6
  98. package/es/components/upload/upload.vue.d.ts +6 -6
  99. package/es/components/upload/use-handlers.d.ts +23 -0
  100. package/es/components/virtual-list/builders/build-list.d.ts +3 -3
  101. package/es/components/virtual-list/components/dynamic-size-list.d.ts +3 -3
  102. package/es/components/virtual-list/components/fixed-size-list.d.ts +3 -3
  103. package/es/components/virtual-list/components/scrollbar.d.ts +3 -3
  104. package/es/components/virtual-list/props.d.ts +2 -2
  105. package/es/defaults.d.ts +1 -1
  106. package/es/hooks/use-popper/index.d.ts +3 -3
  107. package/es/index.d.ts +1 -1
  108. package/es/make-installer.d.ts +1 -1
  109. package/es/package.json.d.ts +1 -1
  110. package/es/package.json.js +1 -1
  111. package/es/plugin.d.ts +1 -0
  112. package/lib/app-components/form/hooks/use-form-item.d.ts +2 -2
  113. package/lib/app-components/upload/types.d.ts +1 -1
  114. package/lib/app-components/upload/utils.d.ts +1 -1
  115. package/lib/component.d.ts +1 -0
  116. package/lib/components/affix/affix.d.ts +1 -1
  117. package/lib/components/affix/affix.vue.d.ts +3 -3
  118. package/lib/components/affix/index.d.ts +6 -6
  119. package/lib/components/autocomplete/autocomplete.vue.d.ts +7 -7
  120. package/lib/components/autocomplete/index.d.ts +21 -21
  121. package/lib/components/avatar/index.d.ts +3 -3
  122. package/lib/components/backtop/index.d.ts +2 -2
  123. package/lib/components/button/button.vue.d.ts +209 -0
  124. package/lib/components/button/index.d.ts +593 -0
  125. package/lib/components/button/use-button.d.ts +20 -0
  126. package/lib/components/carousel/carousel.vue.d.ts +9 -9
  127. package/lib/components/carousel/index.d.ts +15 -15
  128. package/lib/components/checkbox/checkbox.vue.d.ts +6 -6
  129. package/lib/components/checkbox/composables/use-checkbox-disabled.d.ts +6 -0
  130. package/lib/components/checkbox/composables/use-checkbox.d.ts +15 -0
  131. package/lib/components/checkbox/index.d.ts +12 -12
  132. package/lib/components/clamp/index.d.ts +2 -2
  133. package/lib/components/color-picker/color-picker.vue.d.ts +4 -4
  134. package/lib/components/color-picker/index.d.ts +4 -4
  135. package/lib/components/config-provider/hooks/use-global-config.d.ts +31 -0
  136. package/lib/components/container/container.vue.d.ts +2 -2
  137. package/lib/components/container/index.d.ts +10 -10
  138. package/lib/components/date-picker/composables/use-range-picker.d.ts +1 -1
  139. package/lib/components/date-picker/date-picker.d.ts +1 -1
  140. package/lib/components/date-picker/index.d.ts +2 -2
  141. package/lib/components/date-picker/panel-utils.d.ts +1 -1
  142. package/lib/components/descriptions/description.vue.d.ts +2 -2
  143. package/lib/components/descriptions/index.d.ts +9 -9
  144. package/lib/components/dialog/index.d.ts +3 -3
  145. package/lib/components/divider/divider.vue.d.ts +2 -2
  146. package/lib/components/divider/index.d.ts +4 -4
  147. package/lib/components/drawer/index.d.ts +3 -3
  148. package/lib/components/dropdown/dropdown.vue.d.ts +20 -20
  149. package/lib/components/dropdown/index.d.ts +34 -34
  150. package/lib/components/form/form-item.vue.d.ts +9 -9
  151. package/lib/components/form/form.vue.d.ts +2 -2
  152. package/lib/components/form/hooks/use-form-common-props.d.ts +6 -0
  153. package/lib/components/form/index.d.ts +35 -35
  154. package/lib/components/image/index.d.ts +2 -2
  155. package/lib/components/image-viewer/index.d.ts +1 -1
  156. package/lib/components/input/index.d.ts +9 -9
  157. package/lib/components/input/input.vue.d.ts +3 -3
  158. package/lib/components/link/index.d.ts +2 -2
  159. package/lib/components/loading/index.d.ts +48 -0
  160. package/lib/components/loading/loading.d.ts +36 -0
  161. package/lib/components/md-code-demo/index.d.ts +3 -3
  162. package/lib/components/md-code-demo/md-code-demo.d.ts +3 -3
  163. package/lib/components/menu/index.d.ts +8 -2
  164. package/lib/components/menu/menu.vue.d.ts +10 -2
  165. package/lib/components/menu/menu.vue2.cjs +1 -1
  166. package/lib/components/modal/index.d.ts +34 -34
  167. package/lib/components/modal/modal.vue.d.ts +21 -21
  168. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  169. package/lib/components/popconfirm/index.d.ts +9 -9
  170. package/lib/components/popconfirm/popconfirm.vue.d.ts +6 -6
  171. package/lib/components/popover/index.d.ts +2 -2
  172. package/lib/components/popper/composables/use-content.d.ts +3 -3
  173. package/lib/components/popper/content.vue.d.ts +1 -1
  174. package/lib/components/popper/index.d.ts +4 -4
  175. package/lib/components/popper/popper.vue.d.ts +2 -2
  176. package/lib/components/progress/index.d.ts +1 -1
  177. package/lib/components/radio/index.d.ts +20 -20
  178. package/lib/components/radio/radio-group.vue.d.ts +6 -6
  179. package/lib/components/radio/use-radio.d.ts +15 -0
  180. package/lib/components/row/index.d.ts +1 -1
  181. package/lib/components/scrollbar/index.d.ts +2 -2
  182. package/lib/components/search/index.d.ts +1 -1
  183. package/lib/components/select/index.d.ts +1660 -2
  184. package/lib/components/select/select.vue.d.ts +830 -1
  185. package/lib/components/select/useSelect.d.ts +7 -7
  186. package/lib/components/space/index.d.ts +3 -3
  187. package/lib/components/space/space.d.ts +4 -4
  188. package/lib/components/super-form/index.d.ts +16 -16
  189. package/lib/components/super-form/super-form.vue.d.ts +9 -9
  190. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  191. package/lib/components/switch/index.d.ts +12 -12
  192. package/lib/components/switch/switch.vue.d.ts +12 -12
  193. package/lib/components/table/index.d.ts +53 -50
  194. package/lib/components/table/table.vue.d.ts +32 -30
  195. package/lib/components/table/table.vue2.cjs +1 -1
  196. package/lib/components/table/use/use-columns.d.ts +12 -12
  197. package/lib/components/tabs/index.d.ts +2 -2
  198. package/lib/components/tabs/tabs.vue.d.ts +2 -2
  199. package/lib/components/time-picker/common/picker.vue.d.ts +1 -1
  200. package/lib/components/time-picker/composables/use-time-picker.d.ts +2 -2
  201. package/lib/components/time-picker/index.d.ts +2 -2
  202. package/lib/components/time-picker/time-picker.d.ts +1 -1
  203. package/lib/components/tooltip/index.d.ts +8 -8
  204. package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
  205. package/lib/components/tree/index.d.ts +22 -22
  206. package/lib/components/tree/tree.vue.d.ts +6 -6
  207. package/lib/components/upload/index.d.ts +9 -9
  208. package/lib/components/upload/upload-content.vue.d.ts +6 -6
  209. package/lib/components/upload/upload.vue.d.ts +6 -6
  210. package/lib/components/upload/use-handlers.d.ts +23 -0
  211. package/lib/components/virtual-list/builders/build-list.d.ts +3 -3
  212. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +3 -3
  213. package/lib/components/virtual-list/components/fixed-size-list.d.ts +3 -3
  214. package/lib/components/virtual-list/components/scrollbar.d.ts +3 -3
  215. package/lib/components/virtual-list/props.d.ts +2 -2
  216. package/lib/defaults.d.ts +1 -1
  217. package/lib/hooks/use-popper/index.d.ts +3 -3
  218. package/lib/index.d.ts +1 -1
  219. package/lib/make-installer.d.ts +1 -1
  220. package/lib/package.json.cjs +1 -1
  221. package/lib/package.json.d.ts +1 -1
  222. package/lib/plugin.d.ts +1 -0
  223. package/lib/style.css +1 -0
  224. package/package.json +5 -5
  225. package/web-types.json +1 -1
@@ -11,7 +11,7 @@ export declare const VftImage: import("vft/es/utils").SFCWithInstall<{
11
11
  onShow?: ((...args: any[]) => any) | undefined;
12
12
  onLoad?: ((...args: any[]) => any) | undefined;
13
13
  onError?: ((...args: any[]) => any) | undefined;
14
- readonly infinite?: boolean | undefined;
14
+ readonly src?: string | undefined;
15
15
  ref_for?: boolean | undefined;
16
16
  ref_key?: string | undefined;
17
17
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -54,7 +54,7 @@ export declare const VftImage: import("vft/es/utils").SFCWithInstall<{
54
54
  }>) => void)[] | undefined;
55
55
  readonly loading?: "eager" | "lazy" | undefined;
56
56
  onClose?: ((...args: any[]) => any) | undefined;
57
- readonly src?: string | undefined;
57
+ readonly infinite?: boolean | undefined;
58
58
  readonly initialIndex?: number | undefined;
59
59
  readonly hideOnClickModal?: boolean | undefined;
60
60
  readonly closeOnPressEscape?: boolean | undefined;
@@ -8,7 +8,6 @@ export declare const VftImageViewer: import("vft/es/utils").SFCWithInstall<{
8
8
  key?: string | number | symbol | undefined;
9
9
  ref?: import("vue").VNodeRef | undefined;
10
10
  class?: unknown;
11
- readonly infinite?: boolean | undefined;
12
11
  ref_for?: boolean | undefined;
13
12
  ref_key?: string | undefined;
14
13
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -50,6 +49,7 @@ export declare const VftImageViewer: import("vft/es/utils").SFCWithInstall<{
50
49
  [key: string]: any;
51
50
  }>) => void)[] | undefined;
52
51
  onClose?: (() => any) | undefined;
52
+ readonly infinite?: boolean | undefined;
53
53
  readonly teleported?: boolean | undefined;
54
54
  readonly urlList?: string[] | undefined;
55
55
  readonly initialIndex?: number | undefined;
@@ -7,13 +7,13 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
7
7
  readonly form?: string | undefined;
8
8
  readonly label?: string | undefined;
9
9
  style?: unknown;
10
- readonly resize?: "both" | "none" | "horizontal" | "vertical" | undefined;
10
+ readonly resize?: "both" | "none" | "vertical" | "horizontal" | undefined;
11
11
  key?: string | number | symbol | undefined;
12
- readonly id?: string | undefined;
13
12
  readonly type?: string | undefined;
14
13
  ref?: import("vue").VNodeRef | undefined;
15
14
  class?: unknown;
16
15
  readonly modelValue?: string | number | undefined;
16
+ readonly id?: string | undefined;
17
17
  readonly size?: "default" | "small" | "large" | undefined;
18
18
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
19
19
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
@@ -25,8 +25,8 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
25
25
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
26
26
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
27
27
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
28
- readonly disabled?: boolean | undefined;
29
28
  readonly readonly?: boolean | undefined;
29
+ readonly disabled?: boolean | undefined;
30
30
  ref_for?: boolean | undefined;
31
31
  ref_key?: string | undefined;
32
32
  onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -102,7 +102,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
102
102
  }>;
103
103
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
104
104
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
105
- $emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "suffixClick", value: any) => void) & ((event: "prefixClick", value: any) => void) & ((event: "enter") => void);
105
+ $emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "suffixClick", value: any) => void) & ((event: "prefixClick", value: any) => void) & ((event: "enter") => void);
106
106
  $el: any;
107
107
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
108
108
  id: {
@@ -121,7 +121,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
121
121
  type: import("vue").PropType<string>;
122
122
  };
123
123
  resize: {
124
- type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
124
+ type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
125
125
  };
126
126
  autosize: {
127
127
  type: import("vue").PropType<boolean | {
@@ -216,10 +216,10 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
216
216
  input: (value: string) => void;
217
217
  clear: () => void;
218
218
  blur: (evt: FocusEvent) => void;
219
- focus: (evt: FocusEvent) => void;
220
219
  compositionend: (evt: CompositionEvent) => void;
221
220
  compositionstart: (evt: CompositionEvent) => void;
222
221
  compositionupdate: (evt: CompositionEvent) => void;
222
+ focus: (evt: FocusEvent) => void;
223
223
  keydown: (evt: Event | KeyboardEvent) => void;
224
224
  mouseenter: (evt: MouseEvent) => void;
225
225
  mouseleave: (evt: MouseEvent) => void;
@@ -263,7 +263,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
263
263
  type: import("vue").PropType<string>;
264
264
  };
265
265
  resize: {
266
- type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
266
+ type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
267
267
  };
268
268
  autosize: {
269
269
  type: import("vue").PropType<boolean | {
@@ -373,7 +373,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
373
373
  type: import("vue").PropType<string>;
374
374
  };
375
375
  resize: {
376
- type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
376
+ type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
377
377
  };
378
378
  autosize: {
379
379
  type: import("vue").PropType<boolean | {
@@ -468,10 +468,10 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<{
468
468
  input: (value: string) => void;
469
469
  clear: () => void;
470
470
  blur: (evt: FocusEvent) => void;
471
- focus: (evt: FocusEvent) => void;
472
471
  compositionend: (evt: CompositionEvent) => void;
473
472
  compositionstart: (evt: CompositionEvent) => void;
474
473
  compositionupdate: (evt: CompositionEvent) => void;
474
+ focus: (evt: FocusEvent) => void;
475
475
  keydown: (evt: Event | KeyboardEvent) => void;
476
476
  mouseenter: (evt: MouseEvent) => void;
477
477
  mouseleave: (evt: MouseEvent) => void;
@@ -46,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
46
46
  type: import("vue").PropType<string>;
47
47
  };
48
48
  resize: {
49
- type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
49
+ type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
50
50
  };
51
51
  autosize: {
52
52
  type: import("vue").PropType<boolean | {
@@ -135,10 +135,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
135
135
  input: (value: string) => void;
136
136
  clear: () => void;
137
137
  blur: (evt: FocusEvent) => void;
138
- focus: (evt: FocusEvent) => void;
139
138
  compositionend: (evt: CompositionEvent) => void;
140
139
  compositionstart: (evt: CompositionEvent) => void;
141
140
  compositionupdate: (evt: CompositionEvent) => void;
141
+ focus: (evt: FocusEvent) => void;
142
142
  keydown: (evt: Event | KeyboardEvent) => void;
143
143
  mouseenter: (evt: MouseEvent) => void;
144
144
  mouseleave: (evt: MouseEvent) => void;
@@ -162,7 +162,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
162
162
  type: import("vue").PropType<string>;
163
163
  };
164
164
  resize: {
165
- type: import("vue").PropType<"both" | "none" | "horizontal" | "vertical">;
165
+ type: import("vue").PropType<"both" | "none" | "vertical" | "horizontal">;
166
166
  };
167
167
  autosize: {
168
168
  type: import("vue").PropType<boolean | {
@@ -8,9 +8,8 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
8
8
  readonly type?: "default" | "success" | "primary" | "warning" | "info" | "danger" | undefined;
9
9
  ref?: import("vue").VNodeRef | undefined;
10
10
  class?: unknown;
11
- onClick?: ((...args: any[]) => any) | undefined;
12
- readonly underline?: boolean | undefined;
13
11
  readonly icon?: import("..").IconProps | undefined;
12
+ onClick?: ((...args: any[]) => any) | undefined;
14
13
  readonly disabled?: boolean | undefined;
15
14
  ref_for?: boolean | undefined;
16
15
  ref_key?: string | undefined;
@@ -52,6 +51,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<{
52
51
  }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
53
52
  [key: string]: any;
54
53
  }>) => void)[] | undefined;
54
+ readonly underline?: boolean | undefined;
55
55
  readonly route?: import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType | undefined;
56
56
  readonly isReplace?: boolean | undefined;
57
57
  };
@@ -0,0 +1,48 @@
1
+ import type { App } from 'vue';
2
+ import { vLoading } from './directive';
3
+ import { Loading } from './service';
4
+ export declare const VftLoading: {
5
+ install(app: App): void;
6
+ directive: import("vue").Directive<import("./directive").VftLoading, import("./directive").LoadingBinding>;
7
+ service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "target" | "parent"> & {
8
+ target: string | HTMLElement;
9
+ body: boolean;
10
+ }>) => {
11
+ setText: (text: string) => void;
12
+ removeVftLoadingChild: () => void;
13
+ close: () => void;
14
+ handleAfterLeave: () => void;
15
+ vm: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
16
+ $el: HTMLElement;
17
+ originalPosition: import("vue").Ref<string>;
18
+ originalOverflow: import("vue").Ref<string>;
19
+ visible: import("vue").Ref<boolean>;
20
+ parent: import("vue").Ref<import("./types").LoadingParentElement>;
21
+ background: import("vue").Ref<string>;
22
+ svg: import("vue").Ref<string>;
23
+ svgViewBox: import("vue").Ref<string>;
24
+ spinner: import("vue").Ref<string | boolean>;
25
+ img: import("vue").Ref<string | boolean>;
26
+ icon: import("vue").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: import("vue").Ref<string>;
36
+ fullscreen: import("vue").Ref<boolean>;
37
+ rotate: import("vue").Ref<string | boolean>;
38
+ lock: import("vue").Ref<boolean>;
39
+ customClass: import("vue").Ref<string>;
40
+ target: import("vue").Ref<HTMLElement>;
41
+ beforeClose?: import("vue").Ref<(() => boolean) | undefined> | undefined;
42
+ closed?: import("vue").Ref<(() => void) | undefined> | undefined;
43
+ };
44
+ };
45
+ export default VftLoading;
46
+ export { vLoading as VftLoadingDirective, Loading as VftLoadingService, vLoading, };
47
+ export * from './directive';
48
+ export * from './types';
@@ -0,0 +1,36 @@
1
+ import type { LoadingOptionsResolved } from './types';
2
+ export declare function createLoadingComponent(options: LoadingOptionsResolved): {
3
+ setText: (text: string) => void;
4
+ removeVftLoadingChild: () => void;
5
+ close: () => void;
6
+ handleAfterLeave: () => void;
7
+ vm: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
8
+ $el: HTMLElement;
9
+ originalPosition: import("vue").Ref<string>;
10
+ originalOverflow: import("vue").Ref<string>;
11
+ visible: import("vue").Ref<boolean>;
12
+ parent: import("vue").Ref<import("./types").LoadingParentElement>;
13
+ background: import("vue").Ref<string>;
14
+ svg: import("vue").Ref<string>;
15
+ svgViewBox: import("vue").Ref<string>;
16
+ spinner: import("vue").Ref<string | boolean>;
17
+ img: import("vue").Ref<string | boolean>;
18
+ icon: import("vue").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: import("vue").Ref<string>;
28
+ fullscreen: import("vue").Ref<boolean>;
29
+ rotate: import("vue").Ref<string | boolean>;
30
+ lock: import("vue").Ref<boolean>;
31
+ customClass: import("vue").Ref<string>;
32
+ target: import("vue").Ref<HTMLElement>;
33
+ beforeClose?: import("vue").Ref<(() => boolean) | undefined> | undefined;
34
+ closed?: import("vue").Ref<(() => void) | undefined> | undefined;
35
+ };
36
+ export type LoadingInstance = ReturnType<typeof createLoadingComponent>;
@@ -4,7 +4,7 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
4
4
  required: true;
5
5
  };
6
6
  type: {
7
- type: import("vue").PropType<"normal" | "vue" | "react">;
7
+ type: import("vue").PropType<"vue" | "normal" | "react">;
8
8
  default: string;
9
9
  };
10
10
  title: {
@@ -27,7 +27,7 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
27
27
  required: true;
28
28
  };
29
29
  type: {
30
- type: import("vue").PropType<"normal" | "vue" | "react">;
30
+ type: import("vue").PropType<"vue" | "normal" | "react">;
31
31
  default: string;
32
32
  };
33
33
  title: {
@@ -44,7 +44,7 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
44
44
  };
45
45
  }>>, {
46
46
  title: string;
47
- type: "normal" | "vue" | "react";
47
+ type: "vue" | "normal" | "react";
48
48
  config: string;
49
49
  }, {}>> & Record<string, any>;
50
50
  export default VftMdCodeDemo;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  * 代码演示类型
16
16
  */
17
17
  type: {
18
- type: PropType<"normal" | "vue" | "react">;
18
+ type: PropType<"vue" | "normal" | "react">;
19
19
  default: string;
20
20
  };
21
21
  /**
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
61
61
  * 代码演示类型
62
62
  */
63
63
  type: {
64
- type: PropType<"normal" | "vue" | "react">;
64
+ type: PropType<"vue" | "normal" | "react">;
65
65
  default: string;
66
66
  };
67
67
  /**
@@ -93,7 +93,7 @@ declare const _default: import("vue").DefineComponent<{
93
93
  };
94
94
  }>>, {
95
95
  title: string;
96
- type: "normal" | "vue" | "react";
96
+ type: "vue" | "normal" | "react";
97
97
  config: string;
98
98
  }, {}>;
99
99
  export default _default;
@@ -1,6 +1,6 @@
1
1
  export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
2
  mode: {
3
- type: import("vue").PropType<"horizontal" | "vertical">;
3
+ type: import("vue").PropType<"vertical" | "horizontal">;
4
4
  };
5
5
  defaultActive: {
6
6
  type: import("vue").PropType<string>;
@@ -26,6 +26,9 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
26
26
  ellipsis: {
27
27
  type: import("vue").PropType<boolean>;
28
28
  };
29
+ horizontalMenuProps: {
30
+ type: import("vue").PropType<Partial<import("./sub-menu.vue").SubMenuProps>>;
31
+ };
29
32
  }, {
30
33
  open: (index: string) => void;
31
34
  close: (index: string, indexPath: string[], e?: Event | undefined) => void;
@@ -48,7 +51,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
48
51
  }) => void;
49
52
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
53
  mode: {
51
- type: import("vue").PropType<"horizontal" | "vertical">;
54
+ type: import("vue").PropType<"vertical" | "horizontal">;
52
55
  };
53
56
  defaultActive: {
54
57
  type: import("vue").PropType<string>;
@@ -74,6 +77,9 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
74
77
  ellipsis: {
75
78
  type: import("vue").PropType<boolean>;
76
79
  };
80
+ horizontalMenuProps: {
81
+ type: import("vue").PropType<Partial<import("./sub-menu.vue").SubMenuProps>>;
82
+ };
77
83
  }>> & {
78
84
  onSelect?: ((menuItem: import("./types").MenuItemClicked, routerResult?: Promise<void | import("vue-router").NavigationFailure> | undefined) => any) | undefined;
79
85
  onClose?: ((val: {
@@ -1,4 +1,5 @@
1
1
  import type { NavigationFailure } from 'vue-router';
2
+ import { type SubMenuProps } from './sub-menu.vue';
2
3
  import type { MenuItemClicked } from './types';
3
4
  export interface MenuProps {
4
5
  /** 菜单展示模式 */
@@ -19,10 +20,11 @@ export interface MenuProps {
19
20
  collapseTransition?: boolean;
20
21
  /** 是否省略多余的子项(仅在横向模式生效) */
21
22
  ellipsis?: boolean;
23
+ horizontalMenuProps?: Partial<SubMenuProps>;
22
24
  }
23
25
  declare const _default: import("vue").DefineComponent<{
24
26
  mode: {
25
- type: import("vue").PropType<"horizontal" | "vertical">;
27
+ type: import("vue").PropType<"vertical" | "horizontal">;
26
28
  };
27
29
  defaultActive: {
28
30
  type: import("vue").PropType<string>;
@@ -48,6 +50,9 @@ declare const _default: import("vue").DefineComponent<{
48
50
  ellipsis: {
49
51
  type: import("vue").PropType<boolean>;
50
52
  };
53
+ horizontalMenuProps: {
54
+ type: import("vue").PropType<Partial<SubMenuProps>>;
55
+ };
51
56
  }, {
52
57
  open: (index: string) => void;
53
58
  close: (index: string, indexPath: string[], e?: Event | undefined) => void;
@@ -70,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
70
75
  }) => void;
71
76
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
72
77
  mode: {
73
- type: import("vue").PropType<"horizontal" | "vertical">;
78
+ type: import("vue").PropType<"vertical" | "horizontal">;
74
79
  };
75
80
  defaultActive: {
76
81
  type: import("vue").PropType<string>;
@@ -96,6 +101,9 @@ declare const _default: import("vue").DefineComponent<{
96
101
  ellipsis: {
97
102
  type: import("vue").PropType<boolean>;
98
103
  };
104
+ horizontalMenuProps: {
105
+ type: import("vue").PropType<Partial<SubMenuProps>>;
106
+ };
99
107
  }>> & {
100
108
  onSelect?: ((menuItem: MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => any) | undefined;
101
109
  onClose?: ((val: {
@@ -1,5 +1,5 @@
1
- import { defineComponent as P, useSlots as X, getCurrentInstance as Y, ref as s, computed as Z, watch as T, watchEffect as _, provide as B, reactive as ee, onMounted as te, h as I, nextTick as ne } from "vue";
2
- import { isNullOrUndefined as E, isMobile as le } from "@vft/utils";
1
+ import { defineComponent as E, useSlots as X, getCurrentInstance as Y, ref as s, computed as Z, watch as T, watchEffect as _, provide as A, reactive as ee, onMounted as te, h as I, nextTick as ne } from "vue";
2
+ import { isNullOrUndefined as B, isMobile as le } from "@vft/utils";
3
3
  import { VftIcon as oe } from "../icon/index.js";
4
4
  import { useResizeObserver as ue } from "@vueuse/core";
5
5
  import "../../utils/ns-cover.js";
@@ -15,9 +15,9 @@ import re from "./utils/menu-bar.js";
15
15
  const b = (
16
16
  /* hoist-static*/
17
17
  W("menu")
18
- ), de = P({
18
+ ), de = E({
19
19
  name: b.b()
20
- }), ke = /* @__PURE__ */ P({
20
+ }), ze = /* @__PURE__ */ E({
21
21
  ...de,
22
22
  props: {
23
23
  mode: { default: "vertical" },
@@ -28,11 +28,12 @@ const b = (
28
28
  menuTrigger: { default: "hover" },
29
29
  collapse: { type: Boolean },
30
30
  collapseTransition: { type: Boolean, default: !0 },
31
- ellipsis: { type: Boolean, default: !0 }
31
+ ellipsis: { type: Boolean, default: !0 },
32
+ horizontalMenuProps: {}
32
33
  },
33
34
  emits: ["update:collapse", "sub-menu-click", "select", "close", "open"],
34
35
  setup(n, { expose: V, emit: v }) {
35
- const y = X(), h = Y(), O = h.appContext.config.globalProperties.$router, i = s(), k = W("sub-menu"), f = s(-1), u = s(
36
+ const y = X(), h = Y(), O = h.appContext.config.globalProperties.$router, i = s(), z = W("sub-menu"), f = s(-1), u = s(
36
37
  n.defaultOpeneds && !n.collapse ? n.defaultOpeneds.slice(0) : []
37
38
  ), a = s(n.defaultActive), r = s({}), p = s({}), $ = Z(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse), q = () => {
38
39
  const e = a.value && r.value[a.value];
@@ -58,7 +59,7 @@ const b = (
58
59
  }, L = (e) => {
59
60
  (n.mode === "horizontal" || n.collapse) && (u.value = []);
60
61
  const { index: t, indexPath: l } = e;
61
- if (!(E(t) || E(l))) {
62
+ if (!(B(t) || B(l))) {
62
63
  if (n.router && O) {
63
64
  const o = e.route || t, m = O.push(o).then((c) => (c || (a.value = t), c));
64
65
  v("select", e, m);
@@ -96,14 +97,14 @@ const b = (
96
97
  }, t);
97
98
  };
98
99
  };
99
- let z = !0;
100
- const N = () => {
100
+ let k = !0;
101
+ const P = () => {
101
102
  const e = () => {
102
103
  f.value = -1, ne(() => {
103
104
  f.value = U();
104
105
  });
105
106
  };
106
- z ? e() : j(e)(), z = !1;
107
+ k ? e() : j(e)(), k = !1;
107
108
  };
108
109
  T(
109
110
  () => n.defaultActive,
@@ -118,18 +119,18 @@ const b = (
118
119
  ), T(r.value, q);
119
120
  let S;
120
121
  _(() => {
121
- n.mode === "horizontal" && n.ellipsis ? S = ue(i, N).stop : S == null || S();
122
+ n.mode === "horizontal" && n.ellipsis ? S = ue(i, P).stop : S == null || S();
122
123
  });
123
- const R = (e) => {
124
+ const N = (e) => {
124
125
  p.value[e.index] = e;
125
- }, w = (e) => {
126
+ }, R = (e) => {
126
127
  delete p.value[e.index];
127
128
  }, G = (e) => {
128
129
  r.value[e.index] = e;
129
130
  }, H = (e) => {
130
131
  delete r.value[e.index];
131
- }, A = s(!1), J = s(), K = s();
132
- return B(
132
+ }, w = s(!1), J = s(), K = s();
133
+ return A(
133
134
  "rootMenu",
134
135
  ee({
135
136
  props: h.props,
@@ -138,21 +139,21 @@ const b = (
138
139
  subMenus: p,
139
140
  activeIndex: a,
140
141
  isMenuPopup: $,
141
- inSubMenu: A,
142
+ inSubMenu: w,
142
143
  inSubMenuMouseEnterTimer: J,
143
144
  inSubMenuMouseleaveTimer: K,
144
145
  addMenuItem: G,
145
146
  removeMenuItem: H,
146
- addSubMenu: R,
147
- removeSubMenu: w,
147
+ addSubMenu: N,
148
+ removeSubMenu: R,
148
149
  openMenu: g,
149
150
  closeMenu: C,
150
151
  handleMenuItemClick: L,
151
152
  handleSubMenuClick: D
152
153
  })
153
- ), B(`subMenu:${h.uid}`, {
154
- addSubMenu: R,
155
- removeSubMenu: w,
154
+ ), A(`subMenu:${h.uid}`, {
155
+ addSubMenu: N,
156
+ removeSubMenu: R,
156
157
  mouseInChild: s(!1),
157
158
  // 表示当前是第一级的 sub-menu
158
159
  level: 0
@@ -164,9 +165,9 @@ const b = (
164
165
  t.forEach((l) => g(l, t));
165
166
  },
166
167
  close: C,
167
- handleResize: N,
168
+ handleResize: P,
168
169
  menu: i,
169
- inSubMenu: A
170
+ inSubMenu: w
170
171
  }), () => {
171
172
  var m;
172
173
  let e = ((m = y.default) == null ? void 0 : m.call(y)) ?? [];
@@ -178,12 +179,13 @@ const b = (
178
179
  ie,
179
180
  {
180
181
  index: "sub-menu-more",
181
- class: k.e("hide-arrow")
182
+ class: z.e("hide-arrow"),
183
+ ...n.horizontalMenuProps
182
184
  },
183
185
  {
184
186
  title: () => I(oe, {
185
187
  icon: "icon-menu-line",
186
- class: k.e("icon-more")
188
+ class: z.e("icon-more")
187
189
  }),
188
190
  default: () => d
189
191
  }
@@ -210,5 +212,5 @@ const b = (
210
212
  }
211
213
  });
212
214
  export {
213
- ke as default
215
+ ze as default
214
216
  };