vft 0.0.415 → 0.0.416

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 (146) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/autocomplete/autocomplete.vue.d.ts +8 -8
  4. package/es/components/autocomplete/index.d.ts +24 -24
  5. package/es/components/button/button.vue.d.ts +1 -1
  6. package/es/components/button/index.d.ts +39 -39
  7. package/es/components/button/use-button.d.ts +1 -1
  8. package/es/components/carousel/use-carousel.js +1 -1
  9. package/es/components/color-picker/composables/use-alpha-slider.d.ts +2 -2
  10. package/es/components/config-provider/config-provider.vue.d.ts +2 -0
  11. package/es/components/config-provider/config-provider.vue2.js +4 -3
  12. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  13. package/es/components/config-provider/index.d.ts +9 -0
  14. package/es/components/dialog/constants.d.ts +1 -0
  15. package/es/components/dialog/constants.js +2 -1
  16. package/es/components/dialog/dialog-content.vue.d.ts +4 -1
  17. package/es/components/dialog/dialog-content.vue2.js +59 -48
  18. package/es/components/dialog/dialog.vue.d.ts +4 -19
  19. package/es/components/dialog/dialog.vue2.js +104 -89
  20. package/es/components/dialog/index.d.ts +70 -3
  21. package/es/components/dialog/index.js +5 -4
  22. package/es/components/dialog/types.d.ts +69 -0
  23. package/es/components/dialog/{hooks/use-dialog.d.ts → use-dialog.d.ts} +11 -2
  24. package/es/components/dialog/use-dialog.js +138 -0
  25. package/es/components/drawer/composables/useResizable.d.ts +7 -0
  26. package/es/components/drawer/composables/useResizable.js +53 -0
  27. package/es/components/drawer/drawer.vue.d.ts +3 -7
  28. package/es/components/drawer/drawer.vue2.js +122 -97
  29. package/es/components/drawer/index.d.ts +78 -0
  30. package/es/components/drawer/types.d.ts +13 -0
  31. package/es/components/drawer/types.js +1 -0
  32. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  33. package/es/components/dropdown/index.d.ts +15 -15
  34. package/es/components/form/index.d.ts +6 -6
  35. package/es/components/index.js +172 -171
  36. package/es/components/input/input.vue2.js +4 -4
  37. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  38. package/es/components/input-tag/input-tag.vue.d.ts +1 -1
  39. package/es/components/link/index.d.ts +3 -3
  40. package/es/components/md-code-demo/md-code-demo.js +10 -10
  41. package/es/components/modal/index.d.ts +87 -24
  42. package/es/components/modal/modal.vue.d.ts +1 -1
  43. package/es/components/modal/modal.vue2.js +24 -17
  44. package/es/components/multiple-tabs/multiple-tabs.vue2.js +82 -79
  45. package/es/components/popconfirm/index.d.ts +15 -15
  46. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  47. package/es/components/popover/index.d.ts +0 -9
  48. package/es/components/popover/popover.vue2.js +4 -5
  49. package/es/components/popover/types.d.ts +23 -1
  50. package/es/components/search/search.vue2.js +3 -3
  51. package/es/components/select/index.d.ts +20 -20
  52. package/es/components/select/select.vue.d.ts +20 -20
  53. package/es/components/select/useSelect.d.ts +17 -17
  54. package/es/components/super-form/super-form-item.vue2.js +1 -1
  55. package/es/components/table/index.d.ts +9 -9
  56. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +1 -1
  57. package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +1 -1
  58. package/es/components/timeline/index.d.ts +6 -6
  59. package/es/components/tooltip/index.d.ts +3 -3
  60. package/es/components/tooltip/tooltip.vue2.js +1 -1
  61. package/es/components/tooltip/types.d.ts +81 -1
  62. package/es/hooks/use-draggable/index.d.ts +5 -1
  63. package/es/hooks/use-draggable/index.js +39 -34
  64. package/es/hooks/use-z-index/index.js +3 -3
  65. package/es/index.js +2 -2
  66. package/es/package.json.d.ts +1 -1
  67. package/es/package.json.js +1 -1
  68. package/es/utils/helper.d.ts +1 -1
  69. package/es/utils/ns-cover.d.ts +1 -1
  70. package/es/utils/vue/vnode.js +1 -1
  71. package/lib/components/autocomplete/autocomplete.vue.d.ts +8 -8
  72. package/lib/components/autocomplete/index.d.ts +24 -24
  73. package/lib/components/button/button.vue.d.ts +1 -1
  74. package/lib/components/button/index.d.ts +39 -39
  75. package/lib/components/button/use-button.d.ts +1 -1
  76. package/lib/components/color-picker/composables/use-alpha-slider.d.ts +2 -2
  77. package/lib/components/config-provider/config-provider.vue.d.ts +2 -0
  78. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  79. package/lib/components/config-provider/index.d.ts +9 -0
  80. package/lib/components/dialog/constants.cjs +1 -1
  81. package/lib/components/dialog/constants.d.ts +1 -0
  82. package/lib/components/dialog/dialog-content.vue.d.ts +4 -1
  83. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  84. package/lib/components/dialog/dialog.vue.d.ts +4 -19
  85. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  86. package/lib/components/dialog/index.cjs +1 -1
  87. package/lib/components/dialog/index.d.ts +70 -3
  88. package/lib/components/dialog/types.d.ts +69 -0
  89. package/lib/components/dialog/use-dialog.cjs +1 -0
  90. package/lib/components/dialog/{hooks/use-dialog.d.ts → use-dialog.d.ts} +11 -2
  91. package/lib/components/drawer/composables/useResizable.cjs +1 -0
  92. package/lib/components/drawer/composables/useResizable.d.ts +7 -0
  93. package/lib/components/drawer/drawer.vue.d.ts +3 -7
  94. package/lib/components/drawer/drawer.vue2.cjs +1 -1
  95. package/lib/components/drawer/index.d.ts +78 -0
  96. package/lib/components/drawer/types.cjs +1 -0
  97. package/lib/components/drawer/types.d.ts +13 -0
  98. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  99. package/lib/components/dropdown/index.d.ts +15 -15
  100. package/lib/components/form/index.d.ts +6 -6
  101. package/lib/components/index.cjs +1 -1
  102. package/lib/components/input/input.vue2.cjs +1 -1
  103. package/lib/components/input-tag/input-tag.vue.d.ts +1 -1
  104. package/lib/components/link/index.d.ts +3 -3
  105. package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
  106. package/lib/components/modal/index.d.ts +87 -24
  107. package/lib/components/modal/modal.vue.d.ts +1 -1
  108. package/lib/components/modal/modal.vue2.cjs +1 -1
  109. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  110. package/lib/components/popconfirm/index.d.ts +15 -15
  111. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  112. package/lib/components/popover/index.d.ts +0 -9
  113. package/lib/components/popover/popover.vue2.cjs +1 -1
  114. package/lib/components/popover/types.d.ts +23 -1
  115. package/lib/components/search/search.vue2.cjs +1 -1
  116. package/lib/components/select/index.d.ts +20 -20
  117. package/lib/components/select/select.vue.d.ts +20 -20
  118. package/lib/components/select/useSelect.d.ts +17 -17
  119. package/lib/components/table/index.d.ts +9 -9
  120. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +1 -1
  121. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +1 -1
  122. package/lib/components/timeline/index.d.ts +6 -6
  123. package/lib/components/tooltip/index.d.ts +3 -3
  124. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  125. package/lib/components/tooltip/types.d.ts +81 -1
  126. package/lib/hooks/use-draggable/index.cjs +1 -1
  127. package/lib/hooks/use-draggable/index.d.ts +5 -1
  128. package/lib/index.cjs +1 -1
  129. package/lib/package.json.cjs +1 -1
  130. package/lib/package.json.d.ts +1 -1
  131. package/lib/utils/helper.d.ts +1 -1
  132. package/lib/utils/ns-cover.d.ts +1 -1
  133. package/package.json +3 -3
  134. package/tags.json +1 -1
  135. package/theme-style/index.css +1 -1
  136. package/theme-style/src/dialog.scss +35 -35
  137. package/theme-style/src/drawer.scss +118 -21
  138. package/theme-style/src/md-container.scss +1 -0
  139. package/theme-style/src/tag.scss +1 -1
  140. package/theme-style/vft-dialog.css +1 -1
  141. package/theme-style/vft-drawer.css +1 -1
  142. package/theme-style/vft-md-container.css +1 -1
  143. package/theme-style/vft-tag.css +1 -1
  144. package/web-types.json +1 -1
  145. package/es/components/dialog/hooks/use-dialog.js +0 -106
  146. package/lib/components/dialog/hooks/use-dialog.cjs +0 -1
@@ -1,28 +1,28 @@
1
- import { defineComponent as S, getCurrentInstance as N, ref as p, computed as g, watchEffect as z, unref as n, onMounted as D, createElementBlock as T, openBlock as x, normalizeStyle as H, normalizeClass as K, createVNode as y, withCtx as C, Fragment as W, renderList as $, createBlock as F } from "vue";
2
- import { VftTabs as U, VftTabPane as j } from "../tabs/index.js";
3
- import { isClient as q } from "@vueuse/core";
1
+ import { defineComponent as _, getCurrentInstance as N, ref as p, computed as T, watchEffect as z, unref as n, onMounted as D, createElementBlock as y, openBlock as h, normalizeStyle as H, normalizeClass as K, createVNode as C, withCtx as R, Fragment as U, renderList as W, createBlock as F } from "vue";
2
+ import { VftTabs as j, VftTabPane as q } from "../tabs/index.js";
3
+ import { isClient as G } from "@vueuse/core";
4
4
  import "@vft/utils";
5
- import "../config-provider/hooks/use-global-config.js";
6
- import { generateCssVars as R } from "../../utils/ns-cover.js";
5
+ import { addUnit as o } from "../../utils/helper.js";
6
+ import { generateCssVars as S } from "../../utils/ns-cover.js";
7
7
  import "lodash-es";
8
8
  import "../form/index.js";
9
- import { useNamespace as G } from "../../hooks/use-namespace/index.js";
9
+ import { useNamespace as J } from "../../hooks/use-namespace/index.js";
10
10
  import "../../hooks/use-model-toggle/index.js";
11
11
  import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
- import { useRouterHelper as J, getRouterKeyPath as f, listenerRouteChange as O } from "@vft/router";
14
- import { useMultipleTabStore as Q, useTabs as X } from "@vft/store";
15
- import { useRefs as Y } from "@vft/use";
16
- import Z from "hotkeys-js";
17
- import { onBeforeRouteLeave as ee } from "vue-router";
18
- import te from "./tab-content.vue2.js";
19
- import { initAffixTabs as ae, useTabsDrag as ne } from "./use/use-multiple-tabs.js";
13
+ import { useRouterHelper as O, getRouterKeyPath as m, listenerRouteChange as Q } from "@vft/router";
14
+ import { useMultipleTabStore as X, useTabs as Y } from "@vft/store";
15
+ import { useRefs as Z } from "@vft/use";
16
+ import ee from "hotkeys-js";
17
+ import { onBeforeRouteLeave as te } from "vue-router";
18
+ import ae from "./tab-content.vue2.js";
19
+ import { initAffixTabs as ne, useTabsDrag as oe } from "./use/use-multiple-tabs.js";
20
20
  import "../context-menu/context-menu.vue2.js";
21
21
  import "../icon/index.js";
22
- const oe = S({
22
+ const ie = _({
23
23
  name: "vft-multiple-tabs"
24
- }), ke = /* @__PURE__ */ S({
25
- ...oe,
24
+ }), we = /* @__PURE__ */ _({
25
+ ...ie,
26
26
  props: {
27
27
  tabsStyle: {},
28
28
  contextMenuStyle: {},
@@ -30,100 +30,103 @@ const oe = S({
30
30
  fixTabCount: {},
31
31
  fixExtraScrollWidth: {}
32
32
  },
33
- setup(m) {
34
- const _ = G("multiple-tabs"), r = N().appContext.config.globalProperties.$router, s = ae(r), u = Q(), o = p(""), i = p(0), d = p(), { go: b } = J(r), c = g(() => u.getTabList.filter((e) => !e.meta?.hideTab));
33
+ setup(d) {
34
+ const P = J("multiple-tabs"), l = N().appContext.config.globalProperties.$router, u = ne(l), c = X(), i = p(""), r = p(0), b = p(), { go: v } = O(l), f = T(() => c.getTabList.filter((e) => !e.meta?.hideTab));
35
35
  z(() => {
36
- if (o.value) {
37
- const e = c.value.findIndex((a) => f(a) === o.value);
38
- e === -1 ? i.value = c.value?.length - 1 : i.value = e, i.value = i.value < s?.length ? s?.length - 1 : i.value;
36
+ if (i.value) {
37
+ const e = f.value.findIndex((a) => m(a) === i.value);
38
+ e === -1 ? r.value = f.value?.length - 1 : r.value = e, r.value = r.value < u?.length ? u?.length - 1 : r.value;
39
39
  }
40
- }), q && ee(() => {
41
- d.value = n(r.currentRoute);
42
- }), O(({ route: e }) => {
40
+ }), G && te(() => {
41
+ b.value = n(l.currentRoute);
42
+ }), Q(({ route: e }) => {
43
43
  if (!e || e.meta?.hasTokenToRoot)
44
44
  return;
45
- const { meta: a = {} } = e, { currentActivePath: t, hideTab: l } = a, I = l ? t : null, h = f(e);
46
- if (o.value !== h && (o.value = h), I) {
47
- let v = r.getRoutes().find((L) => L.path === t);
48
- v && u.addTab(
49
- v,
50
- n(d),
51
- i.value,
45
+ const { meta: a = {} } = e, { currentActivePath: t, hideTab: s } = a, I = s ? t : null, x = m(e);
46
+ if (i.value !== x && (i.value = x), I) {
47
+ let g = l.getRoutes().find((L) => L.path === t);
48
+ g && c.addTab(
49
+ g,
50
+ n(b),
51
+ r.value,
52
52
  e
53
53
  );
54
54
  } else
55
- u.addTab(n(e), n(d), i.value);
55
+ c.addTab(n(e), n(b), r.value);
56
56
  });
57
- function P(e) {
58
- if (o.value === e.paneName)
57
+ function k(e) {
58
+ if (i.value === e.paneName)
59
59
  return;
60
- const a = c.value[e.attrs.index];
61
- o.value = e.paneName;
60
+ const a = f.value[e.attrs.index];
61
+ i.value = e.paneName;
62
62
  const t = a?.meta?.hideActiveRoute?.fullPath;
63
- b(t || a.fullPath || a.path);
63
+ v(t || a.fullPath || a.path);
64
64
  }
65
- function k(e) {
66
- u.closeTabByKey(e, r);
65
+ function w(e) {
66
+ c.closeTabByKey(e, l);
67
67
  }
68
- const { refs: w, setRefs: M } = Y();
69
- function V(e) {
68
+ const { refs: M, setRefs: V } = Z();
69
+ function $(e) {
70
70
  const a = e.pane.attrs.index, t = e.event;
71
- w.value[a].handleContext(t);
71
+ M.value[a].handleContext(t);
72
72
  }
73
- const B = g(() => ({ ...R({
74
- padding: "4px 0 0",
75
- "border-bottom": "none",
76
- "header-height": "26px",
77
- "font-size": "13px",
78
- "item-padding": "0 10px",
79
- "close-icon-left": "8px",
80
- "item-distance": "1px",
81
- "item-max-width": "180px",
82
- "scroll-padding": "0 20px",
83
- "header-margin": "0 0 0 8px",
84
- "item-border-radius": "5px 5px 0 0",
85
- "item-border": "none"
86
- }, "tabs"), ...m.tabsStyle })), { closeCurrent: A } = X(), E = {
87
- ...R(
73
+ const B = T(() => {
74
+ let e = {
75
+ padding: "4px 0 0",
76
+ "border-bottom": "none",
77
+ "header-height": o(26),
78
+ "font-size": o(13),
79
+ "item-padding": `0 ${o(10)}`,
80
+ "close-icon-left": o(8),
81
+ "item-distance": "1px",
82
+ "item-max-width": o(180),
83
+ "scroll-padding": `0 ${o(20)}`,
84
+ "header-margin": `0 0 0 ${o(10)}`,
85
+ "item-border-radius": `${o(5)} ${o(5)} 0 0`,
86
+ "item-border": "none"
87
+ };
88
+ return { ...S(e, "tabs"), ...d.tabsStyle };
89
+ }), { closeCurrent: A } = Y(), E = {
90
+ ...S(
88
91
  {
89
- "sub-item-height": "40px",
90
- "item-min-width": "150px"
92
+ "sub-item-height": o(40),
93
+ "item-min-width": o(150)
91
94
  },
92
95
  "menu"
93
96
  ),
94
- ...m.contextMenuStyle
97
+ ...d.contextMenuStyle
95
98
  };
96
99
  return D(() => {
97
- m.canDrag && ne(s), Z("command+e, ctrl+e", function() {
100
+ d.canDrag && oe(u), ee("command+e, ctrl+e", function() {
98
101
  return A(), !1;
99
102
  });
100
- }), (e, a) => (x(), T("div", {
101
- class: K(n(_).b()),
103
+ }), (e, a) => (h(), y("div", {
104
+ class: K(n(P).b()),
102
105
  style: H(B.value)
103
106
  }, [
104
- y(n(U), {
107
+ C(n(j), {
105
108
  "show-bar": !1,
106
109
  "fix-tab-count": e.fixTabCount,
107
110
  "fix-extra-scroll-width": e.fixExtraScrollWidth,
108
- modelValue: o.value,
109
- "onUpdate:modelValue": a[0] || (a[0] = (t) => o.value = t),
110
- onTabClick: P,
111
- onTabRemove: k,
112
- onTabContextMenu: V
111
+ modelValue: i.value,
112
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => i.value = t),
113
+ onTabClick: k,
114
+ onTabRemove: w,
115
+ onTabContextMenu: $
113
116
  }, {
114
- default: C(() => [
115
- (x(!0), T(W, null, $(c.value, (t, l) => (x(), F(n(j), {
116
- key: n(f)(t) + l,
117
+ default: R(() => [
118
+ (h(!0), y(U, null, W(f.value, (t, s) => (h(), F(n(q), {
119
+ key: n(m)(t) + s,
117
120
  closable: !t.meta?.affix,
118
- index: l,
119
- name: n(f)(t)
121
+ index: s,
122
+ name: n(m)(t)
120
123
  }, {
121
- label: C(() => [
122
- y(te, {
124
+ label: R(() => [
125
+ C(ae, {
123
126
  "context-menu-style": E,
124
- "affix-num": n(s)?.length,
127
+ "affix-num": n(u)?.length,
125
128
  ref_for: !0,
126
- ref: n(M)(l),
129
+ ref: n(V)(s),
127
130
  "tab-item": t
128
131
  }, null, 8, ["affix-num", "tab-item"])
129
132
  ]),
@@ -136,5 +139,5 @@ const oe = S({
136
139
  }
137
140
  });
138
141
  export {
139
- ke as default
142
+ we as default
140
143
  };
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
7
7
  type: import("vue").PropType<string | number>;
8
8
  default: number;
9
9
  };
10
- icon: {
11
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
12
- default: string;
13
- };
14
10
  teleported: {
15
11
  type: import("vue").PropType<boolean>;
16
12
  default: boolean;
17
13
  };
14
+ icon: {
15
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
16
+ default: string;
17
+ };
18
18
  hideAfter: {
19
19
  type: import("vue").PropType<number>;
20
20
  default: number;
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
52
52
  cancel: (val: MouseEvent) => void;
53
53
  }, import("vue").PublicProps, {
54
54
  width: string | number;
55
- icon: string | import("vft/es/vft").IconProps;
56
55
  teleported: boolean;
56
+ icon: string | import("vft/es/vft").IconProps;
57
57
  hideAfter: number;
58
58
  persistent: boolean;
59
59
  confirmButtonType: import("vft/es/vft").ButtonType;
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
74
74
  type: import("vue").PropType<string | number>;
75
75
  default: number;
76
76
  };
77
- icon: {
78
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
79
- default: string;
80
- };
81
77
  teleported: {
82
78
  type: import("vue").PropType<boolean>;
83
79
  default: boolean;
84
80
  };
81
+ icon: {
82
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
83
+ default: string;
84
+ };
85
85
  hideAfter: {
86
86
  type: import("vue").PropType<number>;
87
87
  default: number;
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
116
116
  onConfirm?: ((val: MouseEvent) => any) | undefined;
117
117
  }>, {}, {}, {}, {}, {
118
118
  width: string | number;
119
- icon: string | import("vft/es/vft").IconProps;
120
119
  teleported: boolean;
120
+ icon: string | import("vft/es/vft").IconProps;
121
121
  hideAfter: number;
122
122
  persistent: boolean;
123
123
  confirmButtonType: import("vft/es/vft").ButtonType;
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
135
135
  type: import("vue").PropType<string | number>;
136
136
  default: number;
137
137
  };
138
- icon: {
139
- type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
140
- default: string;
141
- };
142
138
  teleported: {
143
139
  type: import("vue").PropType<boolean>;
144
140
  default: boolean;
145
141
  };
142
+ icon: {
143
+ type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
144
+ default: string;
145
+ };
146
146
  hideAfter: {
147
147
  type: import("vue").PropType<number>;
148
148
  default: number;
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
180
180
  cancel: (val: MouseEvent) => void;
181
181
  }, string, {
182
182
  width: string | number;
183
- icon: string | import("vft/es/vft").IconProps;
184
183
  teleported: boolean;
184
+ icon: string | import("vft/es/vft").IconProps;
185
185
  hideAfter: number;
186
186
  persistent: boolean;
187
187
  confirmButtonType: import("vft/es/vft").ButtonType;
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
43
43
  onConfirm?: ((val: MouseEvent) => any) | undefined;
44
44
  }>, {
45
45
  width: string | number;
46
- icon: string | IconProps;
47
46
  teleported: boolean;
47
+ icon: string | IconProps;
48
48
  hideAfter: number;
49
49
  persistent: boolean;
50
50
  confirmButtonType: ButtonType;
@@ -69,9 +69,6 @@ export declare const VftPopover: import("vft/es/utils").SFCWithInstall<{
69
69
  triggerKeys: {
70
70
  type: import("vue").PropType<string[]>;
71
71
  };
72
- 'onUpdate:visible': {
73
- type: import("vue").PropType<Function>;
74
- };
75
72
  }>> & Readonly<{
76
73
  "onAfter-leave"?: ((...args: any[]) => any) | undefined;
77
74
  "onBefore-enter"?: ((...args: any[]) => any) | undefined;
@@ -164,9 +161,6 @@ export declare const VftPopover: import("vft/es/utils").SFCWithInstall<{
164
161
  triggerKeys: {
165
162
  type: import("vue").PropType<string[]>;
166
163
  };
167
- 'onUpdate:visible': {
168
- type: import("vue").PropType<Function>;
169
- };
170
164
  }>> & Readonly<{
171
165
  "onAfter-leave"?: ((...args: any[]) => any) | undefined;
172
166
  "onBefore-enter"?: ((...args: any[]) => any) | undefined;
@@ -250,9 +244,6 @@ export declare const VftPopover: import("vft/es/utils").SFCWithInstall<{
250
244
  triggerKeys: {
251
245
  type: import("vue").PropType<string[]>;
252
246
  };
253
- 'onUpdate:visible': {
254
- type: import("vue").PropType<Function>;
255
- };
256
247
  }>> & Readonly<{
257
248
  "onAfter-leave"?: ((...args: any[]) => any) | undefined;
258
249
  "onBefore-enter"?: ((...args: any[]) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, computed as r, ref as S, unref as l, createBlock as U, openBlock as i, mergeProps as R, withCtx as s, renderSlot as f, createCommentVNode as d, createElementBlock as T, normalizeClass as V, toDisplayString as u, createTextVNode as $ } from "vue";
1
+ import { defineComponent as m, computed as r, ref as S, unref as l, createBlock as R, openBlock as i, mergeProps as T, withCtx as s, renderSlot as f, createCommentVNode as d, createElementBlock as U, normalizeClass as V, toDisplayString as u, createTextVNode as $ } from "vue";
2
2
  import { VftTooltip as N } from "../tooltip/index.js";
3
3
  import { EVENT_CODE as p } from "../../constants/aria.js";
4
4
  import "@vueuse/core";
@@ -37,8 +37,7 @@ const D = "onUpdate:visible", H = m({
37
37
  showArrow: { type: Boolean, default: !0 },
38
38
  persistent: { type: Boolean, default: !0 },
39
39
  appendTo: {},
40
- triggerKeys: { default: () => [p.enter, p.numpadEnter, p.space] },
41
- "onUpdate:visible": {}
40
+ triggerKeys: { default: () => [p.enter, p.numpadEnter, p.space] }
42
41
  },
43
42
  emits: [
44
43
  "update:visible",
@@ -67,7 +66,7 @@ const D = "onUpdate:visible", H = m({
67
66
  return b({
68
67
  popperRef: g,
69
68
  hide: B
70
- }), (e, L) => (i(), U(l(N), R({
69
+ }), (e, L) => (i(), R(l(N), T({
71
70
  ref_key: "tooltipRef",
72
71
  ref: n
73
72
  }, e.$attrs, {
@@ -101,7 +100,7 @@ const D = "onUpdate:visible", H = m({
101
100
  onHide: E
102
101
  }), {
103
102
  content: s(() => [
104
- e.title ? (i(), T("div", {
103
+ e.title ? (i(), U("div", {
105
104
  key: 0,
106
105
  class: V(l(a).e("title")),
107
106
  role: "title"
@@ -3,28 +3,50 @@ import type { TooltipTriggerType } from 'vft/es/components/tooltip';
3
3
  import type { StyleValue } from 'vue';
4
4
  import type { ClassType } from '../types';
5
5
  export interface PopoverProps {
6
+ /** 触发方式 */
6
7
  trigger?: TooltipTriggerType;
8
+ /** 弹出位置 */
7
9
  placement?: Placement;
10
+ /** 是否禁用 */
8
11
  disabled?: boolean;
12
+ /** 是否可见 */
9
13
  visible?: boolean | null;
14
+ /** 过渡动画名称 */
10
15
  transition?: string;
16
+ /** Popper 配置选项 */
11
17
  popperOptions?: Partial<Options>;
18
+ /** 元素 tabindex 属性 */
12
19
  tabindex?: number;
20
+ /** 弹出层内容 */
13
21
  content?: string;
22
+ /** 弹出层样式 */
14
23
  popperStyle?: StyleValue;
24
+ /** 弹出层 CSS 类名 */
15
25
  popperClass?: ClassType;
26
+ /** 鼠标是否可以进入弹出层内容 */
16
27
  enterable?: boolean;
28
+ /** 主题效果 */
17
29
  effect?: 'light' | 'dark';
30
+ /** 是否传送到指定容器 */
18
31
  teleported?: boolean;
32
+ /** 弹出层标题 */
19
33
  title?: string;
34
+ /** 弹出层宽度 */
20
35
  width?: string | number;
36
+ /** 偏移量 */
21
37
  offset?: number;
38
+ /** 显示延时(毫秒) */
22
39
  showAfter?: number;
40
+ /** 隐藏延时(毫秒) */
23
41
  hideAfter?: number;
42
+ /** 自动关闭延时(毫秒) */
24
43
  autoClose?: number;
44
+ /** 是否显示箭头 */
25
45
  showArrow?: boolean;
46
+ /** 是否持久化显示 */
26
47
  persistent?: boolean;
48
+ /** 挂载到的元素 */
27
49
  appendTo?: HTMLElement | string;
50
+ /** 触发按键 */
28
51
  triggerKeys?: string[];
29
- 'onUpdate:visible'?: Function;
30
52
  }
@@ -46,9 +46,8 @@ const re = P({
46
46
  )
47
47
  ), S = u(() => ({
48
48
  "show-arrow": !1,
49
- transition: "vft-zoom-in-top-fast",
49
+ transition: "vft-zoom-in-top",
50
50
  placement: "bottom-start",
51
- "hide-after": 100,
52
51
  offset: 3,
53
52
  width: 500,
54
53
  ...t.popoverCfg
@@ -114,7 +113,7 @@ const re = P({
114
113
  X((h(), V("div", {
115
114
  ref_key: "searchRef",
116
115
  ref: k,
117
- class: w([a(d).b(), a(d).is("active", n.value || e.modelValue)]),
116
+ class: w([a(d).b(), a(d).is("active", !!n.value || !!e.modelValue)]),
118
117
  style: _(x.value)
119
118
  }, [
120
119
  ee(a(ne), g({
@@ -172,6 +171,7 @@ const re = P({
172
171
  ]),
173
172
  e.usePopover ? (h(), Y(a(ie), g({
174
173
  key: 0,
174
+ style: { "--vft-transition-duration": "3s" },
175
175
  ref_key: "popoverRef",
176
176
  ref: C
177
177
  }, S.value, {
@@ -259,10 +259,10 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
259
259
  readonly placement?: import("@popperjs/core").Placement | undefined;
260
260
  readonly strategy?: "fixed" | "absolute" | undefined;
261
261
  readonly effect?: "light" | "dark" | undefined;
262
- readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
263
- readonly visible?: boolean | undefined;
264
262
  readonly teleported?: boolean | undefined;
265
263
  readonly open?: boolean | undefined;
264
+ readonly visible?: boolean | null | undefined;
265
+ readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
266
266
  readonly arrowOffset?: number | undefined;
267
267
  readonly gpuAcceleration?: boolean | undefined;
268
268
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -381,7 +381,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
381
381
  type: import("vue").PropType<"light" | "dark">;
382
382
  };
383
383
  visible: {
384
- type: import("vue").PropType<boolean>;
384
+ type: import("vue").PropType<boolean | null>;
385
385
  };
386
386
  enterable: {
387
387
  type: import("vue").PropType<boolean>;
@@ -565,7 +565,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
565
565
  type: import("vue").PropType<"light" | "dark">;
566
566
  };
567
567
  visible: {
568
- type: import("vue").PropType<boolean>;
568
+ type: import("vue").PropType<boolean | null>;
569
569
  };
570
570
  enterable: {
571
571
  type: import("vue").PropType<boolean>;
@@ -677,10 +677,10 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
677
677
  readonly placement?: import("@popperjs/core").Placement | undefined;
678
678
  readonly strategy?: "fixed" | "absolute" | undefined;
679
679
  readonly effect?: "light" | "dark" | undefined;
680
- readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
681
- readonly visible?: boolean | undefined;
682
680
  readonly teleported?: boolean | undefined;
683
681
  readonly open?: boolean | undefined;
682
+ readonly visible?: boolean | null | undefined;
683
+ readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
684
684
  readonly arrowOffset?: number | undefined;
685
685
  readonly gpuAcceleration?: boolean | undefined;
686
686
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -799,7 +799,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
799
799
  type: import("vue").PropType<"light" | "dark">;
800
800
  };
801
801
  visible: {
802
- type: import("vue").PropType<boolean>;
802
+ type: import("vue").PropType<boolean | null>;
803
803
  };
804
804
  enterable: {
805
805
  type: import("vue").PropType<boolean>;
@@ -983,7 +983,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
983
983
  type: import("vue").PropType<"light" | "dark">;
984
984
  };
985
985
  visible: {
986
- type: import("vue").PropType<boolean>;
986
+ type: import("vue").PropType<boolean | null>;
987
987
  };
988
988
  enterable: {
989
989
  type: import("vue").PropType<boolean>;
@@ -1096,10 +1096,10 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1096
1096
  readonly placement?: import("@popperjs/core").Placement | undefined;
1097
1097
  readonly strategy?: "fixed" | "absolute" | undefined;
1098
1098
  readonly effect?: "light" | "dark" | undefined;
1099
- readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1100
- readonly visible?: boolean | undefined;
1101
1099
  readonly teleported?: boolean | undefined;
1102
1100
  readonly open?: boolean | undefined;
1101
+ readonly visible?: boolean | null | undefined;
1102
+ readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1103
1103
  readonly arrowOffset?: number | undefined;
1104
1104
  readonly gpuAcceleration?: boolean | undefined;
1105
1105
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -1218,7 +1218,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1218
1218
  type: import("vue").PropType<"light" | "dark">;
1219
1219
  };
1220
1220
  visible: {
1221
- type: import("vue").PropType<boolean>;
1221
+ type: import("vue").PropType<boolean | null>;
1222
1222
  };
1223
1223
  enterable: {
1224
1224
  type: import("vue").PropType<boolean>;
@@ -1402,7 +1402,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1402
1402
  type: import("vue").PropType<"light" | "dark">;
1403
1403
  };
1404
1404
  visible: {
1405
- type: import("vue").PropType<boolean>;
1405
+ type: import("vue").PropType<boolean | null>;
1406
1406
  };
1407
1407
  enterable: {
1408
1408
  type: import("vue").PropType<boolean>;
@@ -1514,10 +1514,10 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1514
1514
  readonly placement?: import("@popperjs/core").Placement | undefined;
1515
1515
  readonly strategy?: "fixed" | "absolute" | undefined;
1516
1516
  readonly effect?: "light" | "dark" | undefined;
1517
- readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1518
- readonly visible?: boolean | undefined;
1519
1517
  readonly teleported?: boolean | undefined;
1520
1518
  readonly open?: boolean | undefined;
1519
+ readonly visible?: boolean | null | undefined;
1520
+ readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
1521
1521
  readonly arrowOffset?: number | undefined;
1522
1522
  readonly gpuAcceleration?: boolean | undefined;
1523
1523
  readonly fallbackPlacements?: import("@popperjs/core").Placement[] | undefined;
@@ -1636,7 +1636,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1636
1636
  type: import("vue").PropType<"light" | "dark">;
1637
1637
  };
1638
1638
  visible: {
1639
- type: import("vue").PropType<boolean>;
1639
+ type: import("vue").PropType<boolean | null>;
1640
1640
  };
1641
1641
  enterable: {
1642
1642
  type: import("vue").PropType<boolean>;
@@ -1820,7 +1820,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1820
1820
  type: import("vue").PropType<"light" | "dark">;
1821
1821
  };
1822
1822
  visible: {
1823
- type: import("vue").PropType<boolean>;
1823
+ type: import("vue").PropType<boolean | null>;
1824
1824
  };
1825
1825
  enterable: {
1826
1826
  type: import("vue").PropType<boolean>;
@@ -1916,7 +1916,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
1916
1916
  suffixRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
1917
1917
  collapseItemRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
1918
1918
  popperRef: import("vue").ComputedRef<any>;
1919
- validateState: import("vue").ComputedRef<"" | "error" | "validating" | "success">;
1919
+ validateState: import("vue").ComputedRef<"" | "error" | "success" | "validating">;
1920
1920
  validateIcon: string;
1921
1921
  showTagList: import("vue").ComputedRef<import("./select.types").Option[]>;
1922
1922
  collapseTagList: import("vue").ComputedRef<import("./select.types").Option[]>;
@@ -2304,7 +2304,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
2304
2304
  type: import("vue").PropType<"light" | "dark">;
2305
2305
  };
2306
2306
  visible: {
2307
- type: import("vue").PropType<boolean>;
2307
+ type: import("vue").PropType<boolean | null>;
2308
2308
  };
2309
2309
  enterable: {
2310
2310
  type: import("vue").PropType<boolean>;
@@ -2475,7 +2475,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
2475
2475
  type: import("vue").PropType<"light" | "dark">;
2476
2476
  };
2477
2477
  visible: {
2478
- type: import("vue").PropType<boolean>;
2478
+ type: import("vue").PropType<boolean | null>;
2479
2479
  };
2480
2480
  enterable: {
2481
2481
  type: import("vue").PropType<boolean>;
@@ -2636,7 +2636,7 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
2636
2636
  type: import("vue").PropType<"light" | "dark">;
2637
2637
  };
2638
2638
  visible: {
2639
- type: import("vue").PropType<boolean>;
2639
+ type: import("vue").PropType<boolean | null>;
2640
2640
  };
2641
2641
  enterable: {
2642
2642
  type: import("vue").PropType<boolean>;