vft 0.0.51 → 0.0.55

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 (124) hide show
  1. package/attributes.json +1 -0
  2. package/dist/index.css +1 -1
  3. package/es/component.js +0 -2
  4. package/es/components/avatar/avatar.vue.d.ts +2 -2
  5. package/es/components/avatar/avatar.vue2.js +19 -24
  6. package/es/components/avatar/index.d.ts +2 -2
  7. package/es/components/back-top/back-top.vue2.js +4 -3
  8. package/es/components/context-menu/context-menu.vue2.js +46 -41
  9. package/es/components/divider/divider.vue.d.ts +2 -2
  10. package/es/components/divider/index.d.ts +2 -2
  11. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  12. package/es/components/dropdown/dropdown-menu.vue.d.ts +1 -1
  13. package/es/components/dropdown/dropdown.vue.d.ts +3 -3
  14. package/es/components/dropdown/index.d.ts +5 -5
  15. package/es/components/empty/empty.vue.d.ts +2 -2
  16. package/es/components/empty/index.d.ts +2 -2
  17. package/es/components/form/form.vue.d.ts +4 -4
  18. package/es/components/form/index.d.ts +4 -4
  19. package/es/components/icon-text/icon-text.vue2.js +31 -24
  20. package/es/components/md-container/md-container.vue2.js +74 -68
  21. package/es/components/md-container/use/useCopyCode.js +3 -3
  22. package/es/components/menu/menu-item.vue2.js +4 -3
  23. package/es/components/menu/sub-menu.vue2.js +4 -3
  24. package/es/components/multiple-tabs/multiple-tabs.vue2.js +34 -36
  25. package/es/components/multiple-tabs/tab-content.vue2.js +18 -84
  26. package/es/components/popper/composables/use-content.d.ts +4 -4
  27. package/es/components/popper/index.d.ts +2 -2
  28. package/es/components/popper/popper.vue.d.ts +2 -2
  29. package/es/components/result/result.vue2.js +4 -3
  30. package/es/components/search/search.vue2.js +4 -3
  31. package/es/components/select-v2/index.d.ts +12 -12
  32. package/es/components/select-v2/select.vue.d.ts +6 -6
  33. package/es/components/select-v2/useSelect.d.ts +3 -3
  34. package/es/components/side-menu/side-menu.vue2.js +3 -2
  35. package/es/components/tabs/index.d.ts +10 -10
  36. package/es/components/tabs/tab-nav.vue.d.ts +6 -7
  37. package/es/components/tabs/tab-nav.vue2.js +42 -38
  38. package/es/components/tabs/tabs.vue.d.ts +11 -11
  39. package/es/components/tabs/tabs.vue2.js +43 -48
  40. package/es/components/tooltip/index.d.ts +2 -2
  41. package/es/components/tooltip/tooltip.vue.d.ts +2 -2
  42. package/es/components/virtual-list/builders/build-grid.d.ts +1 -1
  43. package/es/components/virtual-list/builders/build-list.d.ts +1 -1
  44. package/es/components/virtual-list/components/dynamic-size-grid.d.ts +1 -1
  45. package/es/components/virtual-list/components/dynamic-size-list.d.ts +1 -1
  46. package/es/components/virtual-list/components/fixed-size-grid.d.ts +1 -1
  47. package/es/components/virtual-list/components/fixed-size-list.d.ts +1 -1
  48. package/es/hooks/use-popper/index.d.ts +4 -4
  49. package/es/package.json.js +1 -1
  50. package/global.d.ts +28 -3
  51. package/lib/components/avatar/avatar.vue.d.ts +2 -2
  52. package/lib/components/avatar/avatar.vue2.cjs +1 -1
  53. package/lib/components/avatar/index.d.ts +2 -2
  54. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  55. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  56. package/lib/components/divider/divider.vue.d.ts +2 -2
  57. package/lib/components/divider/index.d.ts +2 -2
  58. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  59. package/lib/components/dropdown/dropdown-menu.vue.d.ts +1 -1
  60. package/lib/components/dropdown/dropdown.vue.d.ts +3 -3
  61. package/lib/components/dropdown/index.d.ts +5 -5
  62. package/lib/components/empty/empty.vue.d.ts +2 -2
  63. package/lib/components/empty/index.d.ts +2 -2
  64. package/lib/components/form/form.vue.d.ts +4 -4
  65. package/lib/components/form/index.d.ts +4 -4
  66. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  67. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  68. package/lib/components/md-container/use/useCopyCode.cjs +1 -1
  69. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  70. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  71. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  72. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  73. package/lib/components/popper/composables/use-content.d.ts +4 -4
  74. package/lib/components/popper/index.d.ts +2 -2
  75. package/lib/components/popper/popper.vue.d.ts +2 -2
  76. package/lib/components/result/result.vue2.cjs +1 -1
  77. package/lib/components/search/search.vue2.cjs +1 -1
  78. package/lib/components/select-v2/index.d.ts +12 -12
  79. package/lib/components/select-v2/select.vue.d.ts +6 -6
  80. package/lib/components/select-v2/useSelect.d.ts +3 -3
  81. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  82. package/lib/components/tabs/index.d.ts +10 -10
  83. package/lib/components/tabs/tab-nav.vue.d.ts +6 -7
  84. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  85. package/lib/components/tabs/tabs.vue.d.ts +11 -11
  86. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  87. package/lib/components/tooltip/index.d.ts +2 -2
  88. package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
  89. package/lib/components/virtual-list/builders/build-grid.d.ts +1 -1
  90. package/lib/components/virtual-list/builders/build-list.d.ts +1 -1
  91. package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +1 -1
  92. package/lib/components/virtual-list/components/dynamic-size-list.d.ts +1 -1
  93. package/lib/components/virtual-list/components/fixed-size-grid.d.ts +1 -1
  94. package/lib/components/virtual-list/components/fixed-size-list.d.ts +1 -1
  95. package/lib/hooks/use-popper/index.d.ts +4 -4
  96. package/lib/package.json.cjs +1 -1
  97. package/package.json +6 -1
  98. package/tags.json +1 -0
  99. package/theme-style/dark/css-vars.css +1 -1
  100. package/theme-style/index.css +1 -1
  101. package/theme-style/src/button.scss +1 -2
  102. package/theme-style/src/common/var.scss +19 -20
  103. package/theme-style/src/context-menu.scss +12 -0
  104. package/theme-style/src/dark/css-vars.scss +26 -0
  105. package/theme-style/src/dark/var.scss +61 -17
  106. package/theme-style/src/icon-text.scss +2 -0
  107. package/theme-style/src/logo.scss +1 -1
  108. package/theme-style/src/md/table.scss +5 -0
  109. package/theme-style/src/md-container.scss +42 -2
  110. package/theme-style/src/menu.scss +3 -3
  111. package/theme-style/src/side-menu.scss +2 -2
  112. package/theme-style/src/tabs.scss +70 -70
  113. package/theme-style/vft-button.css +1 -1
  114. package/theme-style/vft-context-menu.css +1 -0
  115. package/theme-style/vft-footer-layout.css +1 -1
  116. package/theme-style/vft-header-layout.css +1 -1
  117. package/theme-style/vft-icon-text.css +1 -1
  118. package/theme-style/vft-logo.css +1 -1
  119. package/theme-style/vft-md-container.css +1 -1
  120. package/theme-style/vft-menu.css +1 -1
  121. package/theme-style/vft-multiple-tabs.css +1 -1
  122. package/theme-style/vft-side-menu.css +1 -1
  123. package/theme-style/vft-tabs.css +1 -1
  124. package/web-types.json +1 -0
@@ -19,10 +19,11 @@ import "../collapse-transition/index.js";
19
19
  import "../tooltip/index.js";
20
20
  import "../popover/index.js";
21
21
  import "../menu/index.js";
22
- import "@vft/use";
22
+ import "../context-menu/context-menu.vue2.js";
23
23
  import "../multiple-tabs/multiple-tabs.vue2.js";
24
24
  import "@vft/router";
25
25
  import "@vft/store";
26
+ import "@vft/use";
26
27
  import "vue-router";
27
28
  import "../header-layout/index.js";
28
29
  import "../footer-layout/index.js";
@@ -76,7 +77,7 @@ const i = (
76
77
  x("result")
77
78
  ), I = l({
78
79
  name: i.b()
79
- }), Ht = /* @__PURE__ */ l({
80
+ }), Jt = /* @__PURE__ */ l({
80
81
  ...I,
81
82
  props: {
82
83
  title: null,
@@ -115,5 +116,5 @@ const i = (
115
116
  }
116
117
  });
117
118
  export {
118
- Ht as default
119
+ Jt as default
119
120
  };
@@ -12,9 +12,10 @@ import "../collapse-transition/index.js";
12
12
  import "../tooltip/index.js";
13
13
  import { VftPopover as L } from "../popover/index.js";
14
14
  import "../menu/index.js";
15
- import "@vft/use";
15
+ import "../context-menu/context-menu.vue2.js";
16
16
  import "../multiple-tabs/multiple-tabs.vue2.js";
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";
@@ -76,7 +77,7 @@ const u = (
76
77
  W("search")
77
78
  ), U = C({
78
79
  name: u.b()
79
- }), so = /* @__PURE__ */ C({
80
+ }), ao = /* @__PURE__ */ C({
80
81
  ...U,
81
82
  props: {
82
83
  modelValue: { default: "" },
@@ -204,5 +205,5 @@ const u = (
204
205
  }
205
206
  });
206
207
  export {
207
- so as default
208
+ ao as default
208
209
  };
@@ -198,7 +198,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
198
198
  $data: {};
199
199
  $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
200
200
  role: {
201
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
201
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
202
202
  required: false;
203
203
  };
204
204
  showArrow: {
@@ -408,7 +408,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
408
408
  $el: any;
409
409
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
410
410
  role: {
411
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
411
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
412
412
  required: false;
413
413
  };
414
414
  showArrow: {
@@ -632,7 +632,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
632
632
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
633
633
  } & Readonly<import("vue").ExtractPropTypes<{
634
634
  role: {
635
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
635
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
636
636
  required: false;
637
637
  };
638
638
  showArrow: {
@@ -875,7 +875,7 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
875
875
  handleCompositionStart: () => void;
876
876
  handleCompositionEnd: (event: any) => void;
877
877
  handleCompositionUpdate: (event: any) => void;
878
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "remove-tag" | "clear" | "visible-change" | "focus" | "blur")[], "update:modelValue" | "change" | "remove-tag" | "clear" | "visible-change" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
878
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "remove-tag" | "visible-change" | "focus" | "blur")[], "update:modelValue" | "change" | "clear" | "remove-tag" | "visible-change" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
879
879
  allowCreate: BooleanConstructor;
880
880
  autocomplete: {
881
881
  type: import("vue").PropType<"none" | "both" | "list" | "inline">;
@@ -977,14 +977,14 @@ declare const _Select: SFCWithInstall<import("vue").DefineComponent<{
977
977
  }>> & {
978
978
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
979
979
  onChange?: ((...args: any[]) => any) | undefined;
980
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
981
980
  onClear?: ((...args: any[]) => any) | undefined;
981
+ "onRemove-tag"?: ((...args: any[]) => any) | undefined;
982
982
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
983
983
  onFocus?: ((...args: any[]) => any) | undefined;
984
984
  onBlur?: ((...args: any[]) => any) | undefined;
985
985
  }, {
986
- loading: boolean;
987
986
  height: number;
987
+ loading: boolean;
988
988
  popperClass: string;
989
989
  disabled: boolean;
990
990
  placement: import("@popperjs/core").Placement;
@@ -1210,7 +1210,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
1210
1210
  $data: {};
1211
1211
  $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
1212
1212
  role: {
1213
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
1213
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
1214
1214
  required: false;
1215
1215
  };
1216
1216
  showArrow: {
@@ -1420,7 +1420,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
1420
1420
  $el: any;
1421
1421
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
1422
1422
  role: {
1423
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
1423
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
1424
1424
  required: false;
1425
1425
  };
1426
1426
  showArrow: {
@@ -1644,7 +1644,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
1644
1644
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
1645
1645
  } & Readonly<import("vue").ExtractPropTypes<{
1646
1646
  role: {
1647
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
1647
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
1648
1648
  required: false;
1649
1649
  };
1650
1650
  showArrow: {
@@ -1887,7 +1887,7 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
1887
1887
  handleCompositionStart: () => void;
1888
1888
  handleCompositionEnd: (event: any) => void;
1889
1889
  handleCompositionUpdate: (event: any) => void;
1890
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "remove-tag" | "clear" | "visible-change" | "focus" | "blur")[], "update:modelValue" | "change" | "remove-tag" | "clear" | "visible-change" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1890
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "remove-tag" | "visible-change" | "focus" | "blur")[], "update:modelValue" | "change" | "clear" | "remove-tag" | "visible-change" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1891
1891
  allowCreate: BooleanConstructor;
1892
1892
  autocomplete: {
1893
1893
  type: import("vue").PropType<"none" | "both" | "list" | "inline">;
@@ -1989,14 +1989,14 @@ export declare const VftSelectV2: SFCWithInstall<import("vue").DefineComponent<{
1989
1989
  }>> & {
1990
1990
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1991
1991
  onChange?: ((...args: any[]) => any) | undefined;
1992
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
1993
1992
  onClear?: ((...args: any[]) => any) | undefined;
1993
+ "onRemove-tag"?: ((...args: any[]) => any) | undefined;
1994
1994
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
1995
1995
  onFocus?: ((...args: any[]) => any) | undefined;
1996
1996
  onBlur?: ((...args: any[]) => any) | undefined;
1997
1997
  }, {
1998
- loading: boolean;
1999
1998
  height: number;
1999
+ loading: boolean;
2000
2000
  popperClass: string;
2001
2001
  disabled: boolean;
2002
2002
  placement: import("@popperjs/core").Placement;
@@ -197,7 +197,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
197
197
  $data: {};
198
198
  $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
199
199
  role: {
200
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
200
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
201
201
  required: false;
202
202
  };
203
203
  showArrow: {
@@ -407,7 +407,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
407
407
  $el: any;
408
408
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
409
409
  role: {
410
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
410
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
411
411
  required: false;
412
412
  };
413
413
  showArrow: {
@@ -631,7 +631,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
631
631
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
632
632
  } & Readonly<import("vue").ExtractPropTypes<{
633
633
  role: {
634
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
634
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
635
635
  required: false;
636
636
  };
637
637
  showArrow: {
@@ -874,7 +874,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
874
874
  handleCompositionStart: () => void;
875
875
  handleCompositionEnd: (event: any) => void;
876
876
  handleCompositionUpdate: (event: any) => void;
877
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "remove-tag" | "clear" | "visible-change" | "focus" | "blur")[], "update:modelValue" | "change" | "remove-tag" | "clear" | "visible-change" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
877
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clear" | "remove-tag" | "visible-change" | "focus" | "blur")[], "update:modelValue" | "change" | "clear" | "remove-tag" | "visible-change" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
878
878
  allowCreate: BooleanConstructor;
879
879
  autocomplete: {
880
880
  type: import("vue").PropType<"none" | "both" | "list" | "inline">;
@@ -976,14 +976,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
976
976
  }>> & {
977
977
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
978
978
  onChange?: ((...args: any[]) => any) | undefined;
979
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
980
979
  onClear?: ((...args: any[]) => any) | undefined;
980
+ "onRemove-tag"?: ((...args: any[]) => any) | undefined;
981
981
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
982
982
  onFocus?: ((...args: any[]) => any) | undefined;
983
983
  onBlur?: ((...args: any[]) => any) | undefined;
984
984
  }, {
985
- loading: boolean;
986
985
  height: number;
986
+ loading: boolean;
987
987
  popperClass: string;
988
988
  disabled: boolean;
989
989
  placement: import("@popperjs/core").Placement;
@@ -101,7 +101,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
101
101
  $data: {};
102
102
  $props: Partial<{}> & Omit<Readonly<ExtractPropTypes<{
103
103
  role: {
104
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
104
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
105
105
  required: false;
106
106
  };
107
107
  showArrow: {
@@ -311,7 +311,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
311
311
  $el: any;
312
312
  $options: import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
313
313
  role: {
314
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
314
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
315
315
  required: false;
316
316
  };
317
317
  showArrow: {
@@ -535,7 +535,7 @@ declare const useSelect: (props: ExtractPropTypes<typeof SelectProps>, emit: any
535
535
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
536
536
  } & Readonly<ExtractPropTypes<{
537
537
  role: {
538
- type: import("vue").PropType<"dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
538
+ type: import("vue").PropType<"grid" | "dialog" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree" | undefined>;
539
539
  required: false;
540
540
  };
541
541
  showArrow: {
@@ -21,6 +21,7 @@ import "../collapse-transition/index.js";
21
21
  import "../tooltip/index.js";
22
22
  import "../popover/index.js";
23
23
  import { VftMenu as J, VftSubMenu as K, VftMenuItem as b } from "../menu/index.js";
24
+ import "../context-menu/context-menu.vue2.js";
24
25
  import "../multiple-tabs/multiple-tabs.vue2.js";
25
26
  import "@vft/store";
26
27
  import { useRouter as L } from "vue-router";
@@ -76,7 +77,7 @@ const l = (
76
77
  D("side-menu")
77
78
  ), Q = k({
78
79
  name: l.b()
79
- }), he = /* @__PURE__ */ k({
80
+ }), ge = /* @__PURE__ */ k({
80
81
  ...Q,
81
82
  props: {
82
83
  menus: null,
@@ -248,5 +249,5 @@ const l = (
248
249
  }
249
250
  });
250
251
  export {
251
- he as default
252
+ ge as default
252
253
  };
@@ -1,8 +1,4 @@
1
1
  export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
- type: {
3
- type: import("vue").PropType<import("./types").TabsType | undefined>;
4
- required: false;
5
- };
6
2
  closable: {
7
3
  type: import("vue").PropType<boolean | undefined>;
8
4
  required: false;
@@ -20,7 +16,7 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
20
16
  required: false;
21
17
  };
22
18
  tabPosition: {
23
- type: import("vue").PropType<"top" | "bottom" | "right" | "left" | undefined>;
19
+ type: import("vue").PropType<"bottom" | "left" | "right" | "top" | undefined>;
24
20
  required: false;
25
21
  };
26
22
  beforeLeave: {
@@ -31,6 +27,10 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
31
27
  type: import("vue").PropType<boolean | undefined>;
32
28
  required: false;
33
29
  };
30
+ showBar: {
31
+ type: import("vue").PropType<boolean | undefined>;
32
+ required: false;
33
+ };
34
34
  closeIconCfg: {
35
35
  type: import("vue").PropType<import("..").IconProps | undefined>;
36
36
  required: false;
@@ -92,10 +92,6 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
92
92
  tabRemove: (name: string | number) => boolean;
93
93
  tabAdd: () => true;
94
94
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
95
- type: {
96
- type: import("vue").PropType<import("./types").TabsType | undefined>;
97
- required: false;
98
- };
99
95
  closable: {
100
96
  type: import("vue").PropType<boolean | undefined>;
101
97
  required: false;
@@ -113,7 +109,7 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
113
109
  required: false;
114
110
  };
115
111
  tabPosition: {
116
- type: import("vue").PropType<"top" | "bottom" | "right" | "left" | undefined>;
112
+ type: import("vue").PropType<"bottom" | "left" | "right" | "top" | undefined>;
117
113
  required: false;
118
114
  };
119
115
  beforeLeave: {
@@ -124,6 +120,10 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
124
120
  type: import("vue").PropType<boolean | undefined>;
125
121
  required: false;
126
122
  };
123
+ showBar: {
124
+ type: import("vue").PropType<boolean | undefined>;
125
+ required: false;
126
+ };
127
127
  closeIconCfg: {
128
128
  type: import("vue").PropType<import("..").IconProps | undefined>;
129
129
  required: false;
@@ -1,6 +1,5 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  import { type IconProps } from 'vft/es/components';
3
- import type { TabsType } from './types';
4
3
  declare const _sfc_main: import("vue").DefineComponent<{
5
4
  panes: {
6
5
  type: __PropType<{
@@ -31,11 +30,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
31
30
  type: __PropType<boolean | undefined>;
32
31
  required: false;
33
32
  };
34
- type: {
35
- type: __PropType<TabsType | undefined>;
33
+ stretch: {
34
+ type: __PropType<boolean | undefined>;
36
35
  required: false;
37
36
  };
38
- stretch: {
37
+ showBar: {
39
38
  type: __PropType<boolean | undefined>;
40
39
  required: false;
41
40
  };
@@ -88,11 +87,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
88
87
  type: __PropType<boolean | undefined>;
89
88
  required: false;
90
89
  };
91
- type: {
92
- type: __PropType<TabsType | undefined>;
90
+ stretch: {
91
+ type: __PropType<boolean | undefined>;
93
92
  required: false;
94
93
  };
95
- stretch: {
94
+ showBar: {
96
95
  type: __PropType<boolean | undefined>;
97
96
  required: false;
98
97
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as E, getCurrentInstance as Z, inject as _, ref as g, computed as I, watch as O, onMounted as tt, onUpdated as ot, createVNode as s, nextTick as et } from "vue";
2
- import { capitalize as y } from "@vft/utils";
2
+ import { capitalize as $ } from "@vft/utils";
3
3
  import { throwError as it } from "../../utils/error.js";
4
4
  import "lodash";
5
5
  import { useDocumentVisibility as nt, useWindowFocus as lt, useResizeObserver as at } from "@vueuse/core";
6
6
  import "../../utils/ns-cover.js";
7
7
  import "../divider/index.js";
8
- import { VftIcon as T } from "../icon/index.js";
8
+ import { VftIcon as B } from "../icon/index.js";
9
9
  import "../avatar/index.js";
10
10
  import "../empty/index.js";
11
11
  import "../result/index.js";
@@ -15,10 +15,11 @@ import "../collapse-transition/index.js";
15
15
  import "../tooltip/index.js";
16
16
  import "../popover/index.js";
17
17
  import "../menu/index.js";
18
- import "@vft/use";
18
+ import "../context-menu/context-menu.vue2.js";
19
19
  import "../multiple-tabs/multiple-tabs.vue2.js";
20
20
  import "@vft/router";
21
21
  import "@vft/store";
22
+ import "@vft/use";
22
23
  import "vue-router";
23
24
  import "../header-layout/index.js";
24
25
  import "../footer-layout/index.js";
@@ -72,7 +73,7 @@ import "@popperjs/core";
72
73
  import "../../hooks/use-z-index/index.js";
73
74
  import "@vue/reactivity";
74
75
  import "@vue/shared";
75
- import { EVENT_CODE as k } from "@vft/constants";
76
+ import { EVENT_CODE as T } from "@vft/constants";
76
77
  import { TabsRootContextKey as rt } from "./types.js";
77
78
  import st from "./tab-bar.vue2.js";
78
79
  const V = (
@@ -80,7 +81,7 @@ const V = (
80
81
  K("tab-nav")
81
82
  ), ct = E({
82
83
  name: V.b()
83
- }), No = /* @__PURE__ */ E({
84
+ }), Fo = /* @__PURE__ */ E({
84
85
  ...ct,
85
86
  props: {
86
87
  panes: null,
@@ -90,10 +91,13 @@ const V = (
90
91
  addable: {
91
92
  type: Boolean
92
93
  },
93
- type: null,
94
94
  stretch: {
95
95
  type: Boolean
96
96
  },
97
+ showBar: {
98
+ type: Boolean,
99
+ default: !1
100
+ },
97
101
  closeIconCfg: null,
98
102
  addIconCfg: null,
99
103
  arrowLeftIconCfg: null,
@@ -102,38 +106,38 @@ const V = (
102
106
  emits: ["tabClick", "tabRemove", "tabAdd", "tabContextmenu"],
103
107
  setup(n, {
104
108
  expose: D,
105
- emit: C
109
+ emit: h
106
110
  }) {
107
111
  var A;
108
112
  const M = Z(), d = _(rt);
109
113
  d || it(V.b(), "<vft-tabs><tab-nav /></vft-tabs>");
110
- const e = K("tabs"), q = nt(), H = lt(), $ = g(), v = g(), h = g(), m = g(!1), f = g(0), S = g(!1), x = g(!0), w = I(() => ["top", "bottom"].includes(d.props.tabPosition) ? "width" : "height"), W = I(() => ({
114
+ const e = K("tabs"), q = nt(), H = lt(), y = g(), v = g(), C = g(), m = g(!1), f = g(0), k = g(!1), x = g(!0), w = I(() => ["top", "bottom"].includes(d.props.tabPosition) ? "width" : "height"), W = I(() => ({
111
115
  transform: `translate${w.value === "width" ? "X" : "Y"}(-${f.value}px)`
112
116
  })), j = () => {
113
117
  if (!v.value)
114
118
  return;
115
- const o = v.value[`offset${y(w.value)}`], t = f.value;
119
+ const o = v.value[`offset${$(w.value)}`], t = f.value;
116
120
  t && (f.value = t > o ? t - o : 0);
117
121
  }, U = () => {
118
- if (!v.value || !h.value)
122
+ if (!v.value || !C.value)
119
123
  return;
120
- const o = h.value[`offset${y(w.value)}`], t = v.value[`offset${y(w.value)}`], i = f.value;
124
+ const o = C.value[`offset${$(w.value)}`], t = v.value[`offset${$(w.value)}`], i = f.value;
121
125
  o - i <= t || (f.value = o - i > t * 2 ? i + t : o - t);
122
126
  }, R = async () => {
123
- const o = h.value;
124
- if (!m.value || !$.value || !v.value || !o)
127
+ const o = C.value;
128
+ if (!m.value || !y.value || !v.value || !o)
125
129
  return;
126
130
  await et();
127
- const t = $.value.querySelector(".is-active");
131
+ const t = y.value.querySelector(".is-active");
128
132
  if (!t)
129
133
  return;
130
134
  const i = v.value, b = ["top", "bottom"].includes(d.props.tabPosition), r = t.getBoundingClientRect(), l = i.getBoundingClientRect(), u = b ? o.offsetWidth - l.width : o.offsetHeight - l.height, c = f.value;
131
135
  let a = c;
132
136
  b ? (r.left < l.left && (a = c - (l.left - r.left)), r.right > l.right && (a = c + r.right - l.right)) : (r.top < l.top && (a = c - (l.top - r.top)), r.bottom > l.bottom && (a = c + (r.bottom - l.bottom))), a = Math.max(a, 0), f.value = Math.min(a, u);
133
137
  }, z = () => {
134
- if (!h.value || !v.value)
138
+ if (!C.value || !v.value)
135
139
  return;
136
- const o = h.value[`offset${y(w.value)}`], t = v.value[`offset${y(w.value)}`], i = f.value;
140
+ const o = C.value[`offset${$(w.value)}`], t = v.value[`offset${$(w.value)}`], i = f.value;
137
141
  t < o ? (m.value = m.value || {}, m.value.prev = i, m.value.next = i + t < o, o - i < t && (f.value = o - t)) : (m.value = !1, i > 0 && (f.value = 0));
138
142
  }, X = (o) => {
139
143
  const t = o.code, {
@@ -141,22 +145,22 @@ const V = (
141
145
  down: b,
142
146
  left: r,
143
147
  right: l
144
- } = k;
148
+ } = T;
145
149
  if (![i, b, r, l].includes(t))
146
150
  return;
147
151
  const u = Array.from(o.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")), c = u.indexOf(o.target);
148
152
  let a;
149
153
  t === r || t === i ? c === 0 ? a = u.length - 1 : a = c - 1 : c < u.length - 1 ? a = c + 1 : a = 0, u[a].focus(), u[a].click(), P();
150
154
  }, P = () => {
151
- x.value && (S.value = !0);
152
- }, B = () => S.value = !1;
155
+ x.value && (k.value = !0);
156
+ }, S = () => k.value = !1;
153
157
  O(q, (o) => {
154
158
  o === "hidden" ? x.value = !1 : o === "visible" && setTimeout(() => x.value = !0, 50);
155
159
  }), O(H, (o) => {
156
160
  o ? setTimeout(() => x.value = !0, 50) : x.value = !1;
157
- }), at($, z), tt(() => setTimeout(() => R(), 0)), ot(() => z()), D({
161
+ }), at(y, z), tt(() => setTimeout(() => R(), 0)), ot(() => z()), D({
158
162
  scrollToActiveTab: R,
159
- removeFocus: B
163
+ removeFocus: S
160
164
  }), O(() => n.panes, () => M.update(), {
161
165
  flush: "post"
162
166
  });
@@ -165,10 +169,10 @@ const V = (
165
169
  return m.value ? [s("span", {
166
170
  class: [e.e("nav-prev"), e.is("disabled", !m.value.prev)],
167
171
  onClick: j
168
- }, [(o = n.arrowLeftIconCfg) != null && o.icon ? s(T, n.arrowLeftIconCfg, null) : null]), s("span", {
172
+ }, [(o = n.arrowLeftIconCfg) != null && o.icon ? s(B, n.arrowLeftIconCfg, null) : null]), s("span", {
169
173
  class: [e.e("nav-next"), e.is("disabled", !m.value.next)],
170
174
  onClick: U
171
- }, [(t = n.arrowRightIconCfg) != null && t.icon ? s(T, n.arrowRightIconCfg, null) : null])] : null;
175
+ }, [(t = n.arrowRightIconCfg) != null && t.icon ? s(B, n.arrowRightIconCfg, null) : null])] : null;
172
176
  }), G = I(() => {
173
177
  var o;
174
178
  return (o = n.panes) == null ? void 0 : o.map((t, i) => {
@@ -177,11 +181,11 @@ const V = (
177
181
  t.index = `${i}`;
178
182
  const c = u ? s("span", {
179
183
  class: "is-icon-close",
180
- onClick: (p) => C("tabRemove", t, p)
181
- }, [(N = n.closeIconCfg) != null && N.icon ? s(T, n.closeIconCfg, null) : null]) : null, a = ((L = (F = t.slots).label) == null ? void 0 : L.call(F)) || t.props.label, Q = !r && t.active ? 0 : -1;
184
+ onClick: (p) => h("tabRemove", t, p)
185
+ }, [(N = n.closeIconCfg) != null && N.icon ? s(B, n.closeIconCfg, null) : null]) : null, a = ((L = (F = t.slots).label) == null ? void 0 : L.call(F)) || t.props.label, Q = !r && t.active ? 0 : -1;
182
186
  return s("div", {
183
187
  ref: `tab-${b}`,
184
- class: [e.e("item"), e.is(d.props.tabPosition), e.is("active", t.active), e.is("disabled", r), e.is("closable", u), e.is("focus", S.value)],
188
+ class: [e.e("item"), e.is(d.props.tabPosition), e.is("active", t.active), e.is("disabled", r), e.is("closable", u), e.is("focus", k.value)],
185
189
  id: `tab-${l}`,
186
190
  key: `tab-${b}`,
187
191
  "aria-controls": `pane-${l}`,
@@ -189,47 +193,47 @@ const V = (
189
193
  "aria-selected": t.active,
190
194
  tabindex: Q,
191
195
  onFocus: () => P(),
192
- onBlur: () => B(),
196
+ onBlur: () => S(),
193
197
  onClick: (p) => {
194
- B(), C("tabClick", t, l, p);
198
+ S(), h("tabClick", t, l, p);
195
199
  },
196
200
  onContextmenu: (p) => {
197
- p.preventDefault(), C("tabContextmenu", {
201
+ p.preventDefault(), h("tabContextmenu", {
198
202
  pane: t,
199
203
  index: i,
200
204
  event: p
201
205
  });
202
206
  },
203
207
  onKeydown: (p) => {
204
- u && (p.code === k.delete || p.code === k.backspace) && C("tabRemove", t, p);
208
+ u && (p.code === T.delete || p.code === T.backspace) && h("tabRemove", t, p);
205
209
  }
206
210
  }, [a, c]);
207
211
  });
208
212
  }), J = n.editable || n.addable ? s("span", {
209
213
  class: e.e("new-tab"),
210
214
  tabindex: "0",
211
- onClick: () => C("tabAdd"),
215
+ onClick: () => h("tabAdd"),
212
216
  onKeydown: (o) => {
213
- o.code === k.enter && C("tabAdd");
217
+ o.code === T.enter && h("tabAdd");
214
218
  }
215
- }, [(A = n.addIconCfg) != null && A.icon ? s(T, n.addIconCfg, null) : null]) : null;
219
+ }, [(A = n.addIconCfg) != null && A.icon ? s(B, n.addIconCfg, null) : null]) : null;
216
220
  return () => s("div", {
217
- ref: $,
221
+ ref: y,
218
222
  class: [e.e("nav-wrap"), e.is("scrollable", !!m.value), e.is(d.props.tabPosition)]
219
223
  }, [Y.value, s("div", {
220
224
  class: e.e("nav-scroll"),
221
225
  ref: v
222
226
  }, [s("div", {
223
227
  class: [e.e("nav"), e.is(d.props.tabPosition), e.is("stretch", n.stretch && ["top", "bottom"].includes(d.props.tabPosition))],
224
- ref: h,
228
+ ref: C,
225
229
  style: W.value,
226
230
  role: "tablist",
227
231
  onKeydown: X
228
- }, [n.type ? null : s(st, {
232
+ }, [n.showBar ? s(st, {
229
233
  tabs: [...n.panes]
230
- }, null), G.value]), J])]);
234
+ }, null) : null, G.value]), J])]);
231
235
  }
232
236
  });
233
237
  export {
234
- No as default
238
+ Fo as default
235
239
  };