vft 0.0.53 → 0.0.56

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 (195) hide show
  1. package/attributes.json +1 -0
  2. package/dist/index.css +1 -1
  3. package/es/component.js +68 -122
  4. package/es/components/avatar/avatar.vue.d.ts +2 -2
  5. package/es/components/avatar/index.d.ts +2 -2
  6. package/es/components/back-top/back-top.vue2.js +4 -3
  7. package/es/components/button/button.vue.d.ts +1 -1
  8. package/es/components/button/index.d.ts +1 -1
  9. package/es/components/button/use-button.d.ts +1 -1
  10. package/es/components/color-picker/color-picker.vue.d.ts +1 -1
  11. package/es/components/color-picker/index.d.ts +1 -1
  12. package/es/components/context-menu/context-menu.vue2.js +46 -41
  13. package/es/components/descriptions/description.vue.d.ts +2 -2
  14. package/es/components/descriptions/index.d.ts +2 -2
  15. package/es/components/dialog/dialog.vue.d.ts +1 -1
  16. package/es/components/dialog/index.d.ts +1 -1
  17. package/es/components/divider/divider.vue.d.ts +2 -2
  18. package/es/components/divider/index.d.ts +2 -2
  19. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
  20. package/es/components/dropdown/dropdown-item.vue.d.ts +6 -6
  21. package/es/components/dropdown/dropdown.vue.d.ts +22 -22
  22. package/es/components/dropdown/index.d.ts +34 -34
  23. package/es/components/focus-trap/focus-trap.vue.d.ts +4 -4
  24. package/es/components/form/form-item.vue.d.ts +3 -3
  25. package/es/components/form/hooks/use-form-item.d.ts +2 -2
  26. package/es/components/form/index.d.ts +6 -6
  27. package/es/components/icon-text/icon-text.vue2.js +31 -24
  28. package/es/components/image/image.vue.d.ts +2 -2
  29. package/es/components/image/index.d.ts +2 -2
  30. package/es/components/input/index.d.ts +7 -7
  31. package/es/components/input/input.vue.d.ts +7 -7
  32. package/es/components/link/index.d.ts +4 -4
  33. package/es/components/link/link.vue.d.ts +4 -4
  34. package/es/components/loading/index.d.ts +1 -1
  35. package/es/components/md-code-demo/index.d.ts +1 -1
  36. package/es/components/md-code-demo/md-code-demo.d.ts +1 -1
  37. package/es/components/md-container/md-container.vue2.js +74 -68
  38. package/es/components/md-container/use/useCopyCode.js +3 -3
  39. package/es/components/menu/index.d.ts +4 -4
  40. package/es/components/menu/menu-item.vue2.js +4 -3
  41. package/es/components/menu/menu.vue.d.ts +4 -4
  42. package/es/components/menu/sub-menu.vue2.js +4 -3
  43. package/es/components/multiple-tabs/multiple-tabs.vue2.js +34 -36
  44. package/es/components/multiple-tabs/tab-content.vue2.js +18 -84
  45. package/es/components/popper/composables/use-focus-trap.d.ts +1 -1
  46. package/es/components/popper/content.vue.d.ts +3 -3
  47. package/es/components/popper/index.d.ts +2 -2
  48. package/es/components/popper/popper.vue.d.ts +2 -2
  49. package/es/components/qrcode/index.d.ts +3 -3
  50. package/es/components/qrcode/qrcode.vue.d.ts +3 -3
  51. package/es/components/result/result.vue2.js +4 -3
  52. package/es/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
  53. package/es/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
  54. package/es/components/search/index.d.ts +2 -2
  55. package/es/components/search/search.vue.d.ts +2 -2
  56. package/es/components/search/search.vue2.js +4 -3
  57. package/es/components/select-v2/defaults.d.ts +1 -1
  58. package/es/components/select-v2/index.d.ts +52 -52
  59. package/es/components/select-v2/option-item.vue.d.ts +1 -1
  60. package/es/components/select-v2/select.vue.d.ts +26 -26
  61. package/es/components/select-v2/useSelect.d.ts +12 -12
  62. package/es/components/side-menu/index.d.ts +2 -2
  63. package/es/components/side-menu/side-menu.vue.d.ts +2 -2
  64. package/es/components/side-menu/side-menu.vue2.js +3 -2
  65. package/es/components/table/table.vue.d.ts +3 -3
  66. package/es/components/tabs/index.d.ts +8 -8
  67. package/es/components/tabs/tab-nav.vue.d.ts +6 -7
  68. package/es/components/tabs/tab-nav.vue2.js +42 -38
  69. package/es/components/tabs/tabs.vue.d.ts +9 -9
  70. package/es/components/tabs/tabs.vue2.js +43 -48
  71. package/es/components/tag/index.d.ts +2 -2
  72. package/es/components/tag/tag.vue.d.ts +2 -2
  73. package/es/components/tooltip/index.d.ts +5 -5
  74. package/es/components/tooltip/tooltip.vue.d.ts +5 -5
  75. package/es/components/virtual-list/builders/build-grid.d.ts +1 -1
  76. package/es/components/virtual-list/builders/build-list.d.ts +4 -4
  77. package/es/components/virtual-list/components/dynamic-size-grid.d.ts +1 -1
  78. package/es/components/virtual-list/components/dynamic-size-list.d.ts +4 -4
  79. package/es/components/virtual-list/components/fixed-size-grid.d.ts +1 -1
  80. package/es/components/virtual-list/components/fixed-size-list.d.ts +4 -4
  81. package/es/components/virtual-list/components/scrollbar.d.ts +3 -3
  82. package/es/components/virtual-list/props.d.ts +2 -2
  83. package/es/package.json.js +1 -1
  84. package/es/utils/vue/vnode.d.ts +6 -6
  85. package/global.d.ts +28 -3
  86. package/lib/component.cjs +1 -1
  87. package/lib/components/avatar/avatar.vue.d.ts +2 -2
  88. package/lib/components/avatar/index.d.ts +2 -2
  89. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  90. package/lib/components/button/button.vue.d.ts +1 -1
  91. package/lib/components/button/index.d.ts +1 -1
  92. package/lib/components/button/use-button.d.ts +1 -1
  93. package/lib/components/color-picker/color-picker.vue.d.ts +1 -1
  94. package/lib/components/color-picker/index.d.ts +1 -1
  95. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  96. package/lib/components/descriptions/description.vue.d.ts +2 -2
  97. package/lib/components/descriptions/index.d.ts +2 -2
  98. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  99. package/lib/components/dialog/index.d.ts +1 -1
  100. package/lib/components/divider/divider.vue.d.ts +2 -2
  101. package/lib/components/divider/index.d.ts +2 -2
  102. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
  103. package/lib/components/dropdown/dropdown-item.vue.d.ts +6 -6
  104. package/lib/components/dropdown/dropdown.vue.d.ts +22 -22
  105. package/lib/components/dropdown/index.d.ts +34 -34
  106. package/lib/components/focus-trap/focus-trap.vue.d.ts +4 -4
  107. package/lib/components/form/form-item.vue.d.ts +3 -3
  108. package/lib/components/form/hooks/use-form-item.d.ts +2 -2
  109. package/lib/components/form/index.d.ts +6 -6
  110. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  111. package/lib/components/image/image.vue.d.ts +2 -2
  112. package/lib/components/image/index.d.ts +2 -2
  113. package/lib/components/input/index.d.ts +7 -7
  114. package/lib/components/input/input.vue.d.ts +7 -7
  115. package/lib/components/link/index.d.ts +4 -4
  116. package/lib/components/link/link.vue.d.ts +4 -4
  117. package/lib/components/loading/index.d.ts +1 -1
  118. package/lib/components/md-code-demo/index.d.ts +1 -1
  119. package/lib/components/md-code-demo/md-code-demo.d.ts +1 -1
  120. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  121. package/lib/components/md-container/use/useCopyCode.cjs +1 -1
  122. package/lib/components/menu/index.d.ts +4 -4
  123. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  124. package/lib/components/menu/menu.vue.d.ts +4 -4
  125. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  126. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  127. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  128. package/lib/components/popper/composables/use-focus-trap.d.ts +1 -1
  129. package/lib/components/popper/content.vue.d.ts +3 -3
  130. package/lib/components/popper/index.d.ts +2 -2
  131. package/lib/components/popper/popper.vue.d.ts +2 -2
  132. package/lib/components/qrcode/index.d.ts +3 -3
  133. package/lib/components/qrcode/qrcode.vue.d.ts +3 -3
  134. package/lib/components/result/result.vue2.cjs +1 -1
  135. package/lib/components/roving-focus-group/roving-focus-group-impl.vue.d.ts +2 -2
  136. package/lib/components/roving-focus-group/roving-focus-item.vue.d.ts +1 -1
  137. package/lib/components/search/index.d.ts +2 -2
  138. package/lib/components/search/search.vue.d.ts +2 -2
  139. package/lib/components/search/search.vue2.cjs +1 -1
  140. package/lib/components/select-v2/defaults.d.ts +1 -1
  141. package/lib/components/select-v2/index.d.ts +52 -52
  142. package/lib/components/select-v2/option-item.vue.d.ts +1 -1
  143. package/lib/components/select-v2/select.vue.d.ts +26 -26
  144. package/lib/components/select-v2/useSelect.d.ts +12 -12
  145. package/lib/components/side-menu/index.d.ts +2 -2
  146. package/lib/components/side-menu/side-menu.vue.d.ts +2 -2
  147. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  148. package/lib/components/table/table.vue.d.ts +3 -3
  149. package/lib/components/tabs/index.d.ts +8 -8
  150. package/lib/components/tabs/tab-nav.vue.d.ts +6 -7
  151. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  152. package/lib/components/tabs/tabs.vue.d.ts +9 -9
  153. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  154. package/lib/components/tag/index.d.ts +2 -2
  155. package/lib/components/tag/tag.vue.d.ts +2 -2
  156. package/lib/components/tooltip/index.d.ts +5 -5
  157. package/lib/components/tooltip/tooltip.vue.d.ts +5 -5
  158. package/lib/components/virtual-list/builders/build-grid.d.ts +1 -1
  159. package/lib/components/virtual-list/builders/build-list.d.ts +4 -4
  160. package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +1 -1
  161. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +4 -4
  162. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +1 -1
  163. package/lib/components/virtual-list/components/fixed-size-list.d.ts +4 -4
  164. package/lib/components/virtual-list/components/scrollbar.d.ts +3 -3
  165. package/lib/components/virtual-list/props.d.ts +2 -2
  166. package/lib/package.json.cjs +1 -1
  167. package/lib/utils/vue/vnode.d.ts +6 -6
  168. package/package.json +6 -1
  169. package/tags.json +1 -0
  170. package/theme-style/dark/css-vars.css +1 -1
  171. package/theme-style/index.css +1 -1
  172. package/theme-style/src/button.scss +1 -2
  173. package/theme-style/src/common/var.scss +19 -20
  174. package/theme-style/src/context-menu.scss +12 -0
  175. package/theme-style/src/dark/css-vars.scss +26 -0
  176. package/theme-style/src/dark/var.scss +61 -17
  177. package/theme-style/src/icon-text.scss +2 -0
  178. package/theme-style/src/logo.scss +1 -1
  179. package/theme-style/src/md/table.scss +5 -0
  180. package/theme-style/src/md-container.scss +42 -2
  181. package/theme-style/src/menu.scss +3 -3
  182. package/theme-style/src/side-menu.scss +2 -2
  183. package/theme-style/src/tabs.scss +70 -70
  184. package/theme-style/vft-button.css +1 -1
  185. package/theme-style/vft-context-menu.css +1 -0
  186. package/theme-style/vft-footer-layout.css +1 -1
  187. package/theme-style/vft-header-layout.css +1 -1
  188. package/theme-style/vft-icon-text.css +1 -1
  189. package/theme-style/vft-logo.css +1 -1
  190. package/theme-style/vft-md-container.css +1 -1
  191. package/theme-style/vft-menu.css +1 -1
  192. package/theme-style/vft-multiple-tabs.css +1 -1
  193. package/theme-style/vft-side-menu.css +1 -1
  194. package/theme-style/vft-tabs.css +1 -1
  195. package/web-types.json +1 -0
@@ -20,7 +20,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
20
20
  required: false;
21
21
  };
22
22
  resize: {
23
- type: import("vue").PropType<"none" | "both" | "horizontal" | "vertical" | undefined>;
23
+ type: import("vue").PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
24
24
  required: false;
25
25
  };
26
26
  autosize: {
@@ -152,7 +152,7 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
152
152
  required: false;
153
153
  };
154
154
  resize: {
155
- type: import("vue").PropType<"none" | "both" | "horizontal" | "vertical" | undefined>;
155
+ type: import("vue").PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
156
156
  required: false;
157
157
  };
158
158
  autosize: {
@@ -237,16 +237,16 @@ export declare const VftInput: import("vft/es/utils").SFCWithInstall<import("vue
237
237
  }>> & {
238
238
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
239
239
  onChange?: ((value: string) => any) | undefined;
240
- onClear?: (() => any) | undefined;
241
- onFocus?: ((evt: FocusEvent) => any) | undefined;
242
- onBlur?: ((evt: FocusEvent) => any) | undefined;
243
240
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
244
241
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
245
242
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
243
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
244
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
246
245
  onInput?: ((value: string) => any) | undefined;
247
- onSuffixclick?: ((value: any) => any) | undefined;
246
+ onClear?: (() => any) | undefined;
247
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
248
248
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
249
249
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
250
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
250
+ onSuffixclick?: ((value: any) => any) | undefined;
251
251
  }, {}>> & Record<string, any>;
252
252
  export default VftInput;
@@ -23,7 +23,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
23
23
  required: false;
24
24
  };
25
25
  resize: {
26
- type: __PropType<"none" | "both" | "horizontal" | "vertical" | undefined>;
26
+ type: __PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
27
27
  required: false;
28
28
  };
29
29
  autosize: {
@@ -165,7 +165,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
165
165
  required: false;
166
166
  };
167
167
  resize: {
168
- type: __PropType<"none" | "both" | "horizontal" | "vertical" | undefined>;
168
+ type: __PropType<"none" | "vertical" | "both" | "horizontal" | undefined>;
169
169
  required: false;
170
170
  };
171
171
  autosize: {
@@ -250,16 +250,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
250
250
  }>> & {
251
251
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
252
252
  onChange?: ((value: string) => any) | undefined;
253
- onClear?: (() => any) | undefined;
254
- onFocus?: ((evt: FocusEvent) => any) | undefined;
255
- onBlur?: ((evt: FocusEvent) => any) | undefined;
256
253
  onMouseenter?: ((evt: MouseEvent) => any) | undefined;
257
254
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
258
255
  onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
256
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
257
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
259
258
  onInput?: ((value: string) => any) | undefined;
260
- onSuffixclick?: ((value: any) => any) | undefined;
259
+ onClear?: (() => any) | undefined;
260
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
261
261
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
262
262
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
263
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
263
+ onSuffixclick?: ((value: any) => any) | undefined;
264
264
  }, {}>;
265
265
  export default _sfc_main;
@@ -1,6 +1,6 @@
1
1
  export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
2
  type: {
3
- type: import("vue").PropType<"default" | "success" | "primary" | "warning" | "info" | "danger" | undefined>;
3
+ type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
4
4
  required: false;
5
5
  };
6
6
  underline: {
@@ -12,7 +12,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue"
12
12
  required: false;
13
13
  };
14
14
  route: {
15
- type: import("vue").PropType<import("@vft/router").WinOpenType | import("vue-router").RouteLocationRaw | undefined>;
15
+ type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType | undefined>;
16
16
  required: false;
17
17
  };
18
18
  isReplace: {
@@ -25,7 +25,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue"
25
25
  };
26
26
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  type: {
28
- type: import("vue").PropType<"default" | "success" | "primary" | "warning" | "info" | "danger" | undefined>;
28
+ type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
29
29
  required: false;
30
30
  };
31
31
  underline: {
@@ -37,7 +37,7 @@ export declare const VftLink: import("vft/es/utils").SFCWithInstall<import("vue"
37
37
  required: false;
38
38
  };
39
39
  route: {
40
- type: import("vue").PropType<import("@vft/router").WinOpenType | import("vue-router").RouteLocationRaw | undefined>;
40
+ type: import("vue").PropType<import("vue-router").RouteLocationRaw | import("@vft/router").WinOpenType | undefined>;
41
41
  required: false;
42
42
  };
43
43
  isReplace: {
@@ -4,7 +4,7 @@ import { type IconProps } from 'vft/es/components/icon';
4
4
  import { type WinOpenType } from '@vft/router';
5
5
  declare const _sfc_main: import("vue").DefineComponent<{
6
6
  type: {
7
- type: __PropType<"default" | "success" | "primary" | "warning" | "info" | "danger" | undefined>;
7
+ type: __PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
8
8
  required: false;
9
9
  };
10
10
  underline: {
@@ -16,7 +16,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
16
16
  required: false;
17
17
  };
18
18
  route: {
19
- type: __PropType<WinOpenType | RouteLocationRaw | undefined>;
19
+ type: __PropType<RouteLocationRaw | WinOpenType | undefined>;
20
20
  required: false;
21
21
  };
22
22
  isReplace: {
@@ -29,7 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
29
  };
30
30
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
31
  type: {
32
- type: __PropType<"default" | "success" | "primary" | "warning" | "info" | "danger" | undefined>;
32
+ type: __PropType<"default" | "primary" | "success" | "warning" | "info" | "danger" | undefined>;
33
33
  required: false;
34
34
  };
35
35
  underline: {
@@ -41,7 +41,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
41
41
  required: false;
42
42
  };
43
43
  route: {
44
- type: __PropType<WinOpenType | RouteLocationRaw | undefined>;
44
+ type: __PropType<RouteLocationRaw | WinOpenType | undefined>;
45
45
  required: false;
46
46
  };
47
47
  isReplace: {
@@ -4,7 +4,7 @@ import type { App } from 'vue';
4
4
  export declare const VftLoading: {
5
5
  install(app: App): void;
6
6
  directive: import("vue").Directive<import("./directive").VftLoading, import("./directive").LoadingBinding>;
7
- service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "target" | "parent"> & {
7
+ service: (options?: Partial<Omit<import("./types").LoadingOptionsResolved, "parent" | "target"> & {
8
8
  target: string | HTMLElement;
9
9
  body: boolean;
10
10
  }>) => {
@@ -44,7 +44,7 @@ export declare const VftMdCodeDemo: import("vft/es/utils").SFCWithInstall<import
44
44
  };
45
45
  }>>, {
46
46
  type: "normal" | "vue" | "react";
47
- title: string;
48
47
  config: string;
48
+ title: string;
49
49
  }>> & Record<string, any>;
50
50
  export default VftMdCodeDemo;
@@ -93,7 +93,7 @@ declare const _default: import("vue").DefineComponent<{
93
93
  };
94
94
  }>>, {
95
95
  type: "normal" | "vue" | "react";
96
- title: string;
97
96
  config: string;
97
+ title: string;
98
98
  }>;
99
99
  export default _default;
@@ -1,6 +1,6 @@
1
- import { defineComponent as T, getCurrentInstance as S, ref as g, onMounted as b, nextTick as B, unref as t, openBlock as i, createElementBlock as a, normalizeClass as p, createBlock as v, createCommentVNode as x, createElementVNode as o, toDisplayString as C, createVNode as n, Fragment as I, renderList as M, withCtx as R, createTextVNode as $, renderSlot as A } from "vue";
1
+ import { defineComponent as T, getCurrentInstance as A, ref as v, onMounted as P, nextTick as B, unref as t, openBlock as s, createElementBlock as c, normalizeClass as a, createBlock as y, createCommentVNode as x, createElementVNode as e, toDisplayString as C, createVNode as l, Fragment as H, renderList as I, withCtx as L, createTextVNode as M, renderSlot as R } from "vue";
2
2
  import "../divider/index.js";
3
- import { VftIcon as y } from "../icon/index.js";
3
+ import { VftIcon as k } from "../icon/index.js";
4
4
  import "../avatar/index.js";
5
5
  import "../empty/index.js";
6
6
  import "../result/index.js";
@@ -10,12 +10,13 @@ import "../collapse-transition/index.js";
10
10
  import "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
12
  import "../menu/index.js";
13
- import { jumpElement as F, getRandomElementForArr as H, formatToDateTime as L, getDayTimestamp as j } from "@vft/utils";
14
- import { usePhotoSwipe as J } from "@vft/use";
13
+ import { jumpElement as $, getRandomElementForArr as q, formatToDateTime as F, getDayTimestamp as j } from "@vft/utils";
14
+ import "../context-menu/context-menu.vue2.js";
15
15
  import "../multiple-tabs/multiple-tabs.vue2.js";
16
- import { useRouterHelper as O } from "@vft/router";
16
+ import { useRouterHelper as J } from "@vft/router";
17
17
  import "@vft/store";
18
- import { useRoute as Y } from "vue-router";
18
+ import { usePhotoSwipe as O, useEventListener as Y } from "@vft/use";
19
+ import { useRoute as G } from "vue-router";
19
20
  import "../header-layout/index.js";
20
21
  import "../footer-layout/index.js";
21
22
  import "../iframe-layout/index.js";
@@ -25,12 +26,12 @@ import "../back-top/index.js";
25
26
  import "../config-provider/index.js";
26
27
  import "../descriptions/index.js";
27
28
  import "../full-screen/index.js";
28
- import { VftIconText as q } from "../icon-text/index.js";
29
+ import { VftIconText as K } from "../icon-text/index.js";
29
30
  import "../image/index.js";
30
31
  import "../input/index.js";
31
32
  import "../link/index.js";
32
33
  import "../pagination/index.js";
33
- import { VftTag as G } from "../tag/index.js";
34
+ import { VftTag as Q } from "../tag/index.js";
34
35
  import "../side-menu/index.js";
35
36
  import "../qrcode/index.js";
36
37
  import "../overlay/index.js";
@@ -57,120 +58,125 @@ import "../verify-code/index.js";
57
58
  import "../table/index.js";
58
59
  import "../image-viewer/index.js";
59
60
  import "./index.js";
60
- import { VftMdComment as K } from "../md-comment/index.js";
61
+ import { VftMdComment as U } from "../md-comment/index.js";
61
62
  import "../md-tabs/index.js";
62
63
  import "../md-vue-playground/index.js";
63
64
  import "../md-code-demo/index.js";
64
65
  import "../md-code-tabs/index.js";
65
66
  import "../message/index.js";
66
- import { useNamespace as Q } from "../../hooks/use-namespace/index.js";
67
+ import { useNamespace as W } from "../../hooks/use-namespace/index.js";
67
68
  import "@popperjs/core";
68
69
  import "lodash";
69
70
  import "../../hooks/use-z-index/index.js";
70
71
  import "@vueuse/core";
71
- import { primaryColor as U } from "../../utils/ns-cover.js";
72
+ import { primaryColor as X } from "../../utils/ns-cover.js";
72
73
  import "@vue/reactivity";
73
74
  import "@vue/shared";
74
- import W from "./toc.js";
75
- import { useCopyCode as X } from "./use/useCopyCode.js";
76
- import { useActiveHeaderLinks as Z } from "./use/useActiveHeaderLinks.js";
77
- import { COMP_TYPE as tt } from "./utils.js";
78
- const ot = { class: "info-container" }, et = {
75
+ import Z from "./toc.js";
76
+ import { useCopyCode as tt } from "./use/useCopyCode.js";
77
+ import { useActiveHeaderLinks as ot } from "./use/useActiveHeaderLinks.js";
78
+ import { COMP_TYPE as et } from "./utils.js";
79
+ const it = { class: "info-container" }, rt = {
79
80
  key: 0,
80
81
  class: "flex align-center"
81
- }, rt = { class: "infos" }, it = {
82
+ }, mt = { class: "infos" }, pt = {
82
83
  class: "reading",
83
84
  title: "阅读量"
84
- }, mt = ["data-path"], e = (
85
+ }, st = ["data-path"], m = (
85
86
  /* hoist-static*/
86
- Q("md-container")
87
- ), pt = T({
88
- name: e.b()
87
+ W("md-container")
88
+ ), nt = T({
89
+ name: m.b()
89
90
  }), Io = /* @__PURE__ */ T({
90
- ...pt,
91
- setup(nt, { expose: k }) {
92
- const V = S(), { initPhotoSwipe: w } = J(`.${e.e("content")} img`);
93
- w(), Z({}), X();
94
- const m = g(), r = Y();
95
- b(() => {
91
+ ...nt,
92
+ setup(at, { expose: V }) {
93
+ const w = A(), { initPhotoSwipe: D } = O(`.${m.e("content")} img`);
94
+ D(), ot({}), tt();
95
+ const n = v(), p = G();
96
+ P(() => {
96
97
  B(() => {
97
- m.value = V.exposed.infos, setTimeout(() => {
98
- F(r.hash.replace("#", ""));
98
+ n.value = w.exposed.infos, setTimeout(() => {
99
+ $(p.hash.replace("#", ""));
99
100
  });
101
+ const i = document.querySelectorAll(".item.expand"), r = document.querySelectorAll("div.language-vue");
102
+ for (let o = 0; o < i.length; o++)
103
+ Y(i[o], "click", () => {
104
+ r[o].offsetHeight === 0 ? (r[o].style.height = "auto", r[o].style.visibility = "visible") : (r[o].style.height = 0 + "px", r[o].style.visibility = "hidden");
105
+ });
100
106
  });
101
- }), k({
102
- infos: t(m)
107
+ }), V({
108
+ infos: t(n)
103
109
  });
104
- const D = location.pathname, { go: z } = O();
105
- function E(s) {
106
- z("/?tag=" + s);
110
+ const b = location.pathname, { go: E } = J();
111
+ function S(i) {
112
+ E("/?tag=" + i);
107
113
  }
108
- const N = g(U());
109
- return (s, st) => {
110
- var c, l, d, u, f, _;
111
- return i(), a("div", {
112
- class: p(t(e).b())
114
+ const z = v(X());
115
+ return (i, r) => {
116
+ var o, d, u, f, h, g;
117
+ return s(), c("div", {
118
+ class: a(t(m).b())
113
119
  }, [
114
- (c = m.value) != null && c.sideData ? (i(), v(t(W), {
120
+ (o = n.value) != null && o.sideData ? (s(), y(t(Z), {
115
121
  key: 0,
116
- items: m.value.sideData
122
+ items: n.value.sideData
117
123
  }, null, 8, ["items"])) : x("", !0),
118
- o("div", {
119
- class: p(t(e).e("header"))
124
+ e("div", {
125
+ class: a(t(m).e("header"))
120
126
  }, [
121
- o("h1", {
122
- class: p(t(e).e("title"))
123
- }, C((l = t(r).meta) == null ? void 0 : l.title), 3),
124
- o("div", ot, [
125
- (u = (d = t(r).meta) == null ? void 0 : d.category) != null && u.length ? (i(), a("div", et, [
126
- n(t(y), {
127
+ e("h1", {
128
+ class: a(t(m).e("title"))
129
+ }, C((d = t(p).meta) == null ? void 0 : d.title), 3),
130
+ e("div", it, [
131
+ (f = (u = t(p).meta) == null ? void 0 : u.category) != null && f.length ? (s(), c("div", rt, [
132
+ l(t(k), {
127
133
  size: 14,
128
- color: N.value,
134
+ color: z.value,
129
135
  icon: "ico-bx:category",
130
136
  class: "mr-8px"
131
137
  }, null, 8, ["color"]),
132
- (i(!0), a(I, null, M((f = t(r).meta) == null ? void 0 : f.category, (h, P) => (i(), v(t(G), {
138
+ (s(!0), c(H, null, I((h = t(p).meta) == null ? void 0 : h.category, (_, N) => (s(), y(t(Q), {
133
139
  size: "small",
134
140
  class: "mr-5px cursor-pointer",
135
- type: t(H)(t(tt), 1)[0],
136
- key: P,
137
- onClick: (at) => E(h)
141
+ type: t(q)(t(et), 1)[0],
142
+ key: N,
143
+ onClick: (lt) => S(_)
138
144
  }, {
139
- default: R(() => [
140
- $(C(h), 1)
145
+ default: L(() => [
146
+ M(C(_), 1)
141
147
  ]),
142
148
  _: 2
143
149
  }, 1032, ["type", "onClick"]))), 128))
144
150
  ])) : x("", !0),
145
- o("div", rt, [
146
- n(t(q), {
151
+ e("div", mt, [
152
+ l(t(K), {
147
153
  title: "发布时间",
148
154
  icon: "ico-uiw:date",
149
155
  size: 12,
150
156
  class: "mr-10px",
151
157
  distance: 5,
152
- text: t(L)(new Date((_ = t(r).meta) == null ? void 0 : _.date).getTime() - t(j)())
158
+ text: t(F)(new Date((g = t(p).meta) == null ? void 0 : g.date).getTime() - t(j)())
153
159
  }, null, 8, ["text"]),
154
- o("div", it, [
155
- n(t(y), {
160
+ e("div", pt, [
161
+ l(t(k), {
156
162
  icon: "ico-flat-color-icons:reading",
157
163
  size: 14,
158
164
  class: "mr-5px"
159
165
  }),
160
- o("div", {
166
+ e("div", {
161
167
  class: "waline-pageview-count lh-1",
162
- "data-path": t(D)
163
- }, "0", 8, mt)
168
+ "data-path": t(b)
169
+ }, "0", 8, st)
164
170
  ])
165
171
  ])
166
172
  ])
167
173
  ], 2),
168
- o("div", {
169
- class: p(t(e).e("content"))
174
+ e("div", {
175
+ class: a(t(m).e("content"))
170
176
  }, [
171
- A(s.$slots, "default")
177
+ R(i.$slots, "default")
172
178
  ], 2),
173
- n(t(K))
179
+ l(t(U))
174
180
  ], 2);
175
181
  };
176
182
  }
@@ -8,9 +8,9 @@ function u() {
8
8
  const n = t.parentElement, s = t.nextElementSibling;
9
9
  if (!n || !s)
10
10
  return;
11
- const l = /language-(shellscript|shell|bash|sh|zsh)/.test(n.classList.toString());
12
- let { innerText: i = "" } = s;
13
- l && (i = i.replace(/^ *(\$|>) /gm, "")), r(i).then(() => {
11
+ const i = /language-(shellscript|shell|bash|sh|zsh)/.test(n.classList.toString());
12
+ let l = s.textContent;
13
+ i && (l = l.replace(/^ *(\$|>) /gm, "")), r(l).then(() => {
14
14
  t.classList.add("copied"), clearTimeout(o.get(t));
15
15
  const c = setTimeout(() => {
16
16
  t.classList.remove("copied"), t.blur(), o.delete(t);
@@ -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" | undefined>;
3
+ type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
4
4
  required: false;
5
5
  };
6
6
  defaultActive: {
@@ -20,7 +20,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
20
20
  required: false;
21
21
  };
22
22
  menuTrigger: {
23
- type: import("vue").PropType<"hover" | "click" | undefined>;
23
+ type: import("vue").PropType<"click" | "hover" | undefined>;
24
24
  required: false;
25
25
  };
26
26
  collapse: {
@@ -53,7 +53,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
53
53
  handleResize: () => void;
54
54
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "select")[], "close" | "open" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
55
55
  mode: {
56
- type: import("vue").PropType<"horizontal" | "vertical" | undefined>;
56
+ type: import("vue").PropType<"vertical" | "horizontal" | undefined>;
57
57
  required: false;
58
58
  };
59
59
  defaultActive: {
@@ -73,7 +73,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
73
73
  required: false;
74
74
  };
75
75
  menuTrigger: {
76
- type: import("vue").PropType<"hover" | "click" | undefined>;
76
+ type: import("vue").PropType<"click" | "hover" | undefined>;
77
77
  required: false;
78
78
  };
79
79
  collapse: {
@@ -21,10 +21,11 @@ import "../collapse-transition/index.js";
21
21
  import { VftTooltip as R } from "../tooltip/index.js";
22
22
  import "../popover/index.js";
23
23
  import "./index.js";
24
- import "@vft/use";
24
+ import "../context-menu/context-menu.vue2.js";
25
25
  import "../multiple-tabs/multiple-tabs.vue2.js";
26
26
  import "@vft/router";
27
27
  import "@vft/store";
28
+ import "@vft/use";
28
29
  import "vue-router";
29
30
  import "../header-layout/index.js";
30
31
  import "../footer-layout/index.js";
@@ -78,7 +79,7 @@ const W = ["title"], k = (
78
79
  v("menu-item")
79
80
  ), X = S({
80
81
  name: k.b()
81
- }), he = /* @__PURE__ */ S({
82
+ }), xe = /* @__PURE__ */ S({
82
83
  ...X,
83
84
  props: {
84
85
  index: null,
@@ -163,5 +164,5 @@ const W = ["title"], k = (
163
164
  }
164
165
  });
165
166
  export {
166
- he as default
167
+ xe as default
167
168
  };
@@ -1,7 +1,7 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
3
  mode: {
4
- type: __PropType<"horizontal" | "vertical" | undefined>;
4
+ type: __PropType<"vertical" | "horizontal" | undefined>;
5
5
  required: false;
6
6
  };
7
7
  defaultActive: {
@@ -21,7 +21,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
21
21
  required: false;
22
22
  };
23
23
  menuTrigger: {
24
- type: __PropType<"hover" | "click" | undefined>;
24
+ type: __PropType<"click" | "hover" | undefined>;
25
25
  required: false;
26
26
  };
27
27
  collapse: {
@@ -54,7 +54,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
54
54
  handleResize: () => void;
55
55
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "select")[], "close" | "open" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
56
  mode: {
57
- type: __PropType<"horizontal" | "vertical" | undefined>;
57
+ type: __PropType<"vertical" | "horizontal" | undefined>;
58
58
  required: false;
59
59
  };
60
60
  defaultActive: {
@@ -74,7 +74,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
74
74
  required: false;
75
75
  };
76
76
  menuTrigger: {
77
- type: __PropType<"hover" | "click" | undefined>;
77
+ type: __PropType<"click" | "hover" | undefined>;
78
78
  required: false;
79
79
  };
80
80
  collapse: {
@@ -11,10 +11,11 @@ import { VftTooltip as pe } from "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
12
  import "./index.js";
13
13
  import { singleAttrToObj as se, renderTNode as me } from "@vft/utils";
14
- import "@vft/use";
14
+ import "../context-menu/context-menu.vue2.js";
15
15
  import "../multiple-tabs/multiple-tabs.vue2.js";
16
16
  import "@vft/router";
17
17
  import "@vft/store";
18
+ import "@vft/use";
18
19
  import "vue-router";
19
20
  import "../header-layout/index.js";
20
21
  import "../footer-layout/index.js";
@@ -79,7 +80,7 @@ const S = (
79
80
  I("sub-menu")
80
81
  ), ve = Z({
81
82
  name: S.b()
82
- }), No = /* @__PURE__ */ Z({
83
+ }), Ro = /* @__PURE__ */ Z({
83
84
  ...ve,
84
85
  props: {
85
86
  index: null,
@@ -280,5 +281,5 @@ const S = (
280
281
  }
281
282
  });
282
283
  export {
283
- No as default
284
+ Ro as default
284
285
  };