vft 0.0.93 → 0.0.97

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.
@@ -78,39 +78,39 @@ import { VftMdCodeDemo as ge } from "./md-code-demo/index.js";
78
78
  import { VftMdCodeTabs as Pe } from "./md-code-tabs/index.js";
79
79
  import { VftMessage as De, VftMessage as ye } from "./message/index.js";
80
80
  import { VftLoading as Me } from "./loading/index.js";
81
- import { EmptyEnum as Ee } from "./empty/constants.js";
82
- import { TabsRootContextKey as Ke } from "./tabs/types.js";
83
- import { default as Fe } from "./popper/arrow.vue2.js";
84
- import { default as Ae } from "./popper/trigger.vue2.js";
85
- import { default as Oe } from "./popper/content.vue2.js";
86
- import { TOOLTIP_INJECTION_KEY as _e } from "./tooltip/constants.js";
87
- import { useTabDropdown as we } from "./multiple-tabs/use/use-tab-dropdown.js";
88
- import { initAffixTabs as Ne, useTabsDrag as Be } from "./multiple-tabs/use/use-multiple-tabs.js";
89
- import { configProviderContextKey as Ue, messageConfig as Je } from "./config-provider/constants.js";
90
- import { provideGlobalConfig as je, useGlobalComponentSettings as qe, useGlobalConfig as We } from "./config-provider/hooks/use-global-config.js";
91
- import { usePagination as Xe, vftPaginationKey as Ze } from "./pagination/usePagination.js";
92
- import { formItemValidateStates as or } from "./form/types.js";
93
- import { formContextKey as er, formItemContextKey as rr } from "./form/constants.js";
94
- import { useDisabled as pr, useFormDisabled as mr, useFormSize as xr, useSize as ar } from "./form/hooks/use-form-common-props.js";
95
- import { useFormItem as Vr, useFormItemInputId as nr } from "./form/hooks/use-form-item.js";
96
- import { buttonGroupContextKey as ur } from "./button/constants.js";
97
- import { checkboxGroupContextKey as dr } from "./checkbox/constants.js";
98
- import { radioGroupKey as Cr } from "./radio/constants.js";
99
- import { BAR_MAP as Tr, GAP as Pr, renderThumbStyle as Ir } from "./scrollbar/util.js";
100
- import { scrollbarContextKey as yr } from "./scrollbar/constants.js";
101
- import { DROPDOWN_INJECTION_KEY as Mr } from "./dropdown/tokens.js";
102
- import { selectV2InjectionKey as Er } from "./select-v2/token.js";
103
- import { selectGroupKey as Kr, selectKey as vr } from "./select/token.js";
104
- import { INDEX as kr } from "./table/columns.js";
105
- import { useDialog as Gr } from "./dialog/hooks/use-dialog.js";
106
- import { dialogInjectionKey as Rr } from "./dialog/constants.js";
107
- import { rowContextKey as zr } from "./row/constants.js";
108
- import { MenuTypeEnum as hr } from "./horizontal-menu/constants.js";
109
- import { buildTimeList as Br, dateEquals as Hr, extractDateFormat as Ur, extractTimeFormat as Jr, formatter as Yr, makeList as jr, parseDate as qr, rangeArr as Wr, valueEquals as Qr } from "./time-picker/utils.js";
110
- import { DEFAULT_FORMATS_DATE as Zr, DEFAULT_FORMATS_DATEPICKER as $r, DEFAULT_FORMATS_TIME as of, timeUnits as tf } from "./time-picker/constants.js";
111
- import { timePickerDefaultProps as rf } from "./time-picker/common/props.js";
112
- import { default as pf } from "./time-picker/common/picker.vue2.js";
113
- import { default as xf } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
81
+ import { default as Ee } from "./time-picker/common/picker.vue2.js";
82
+ import { default as Ke } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
83
+ import { EmptyEnum as Fe } from "./empty/constants.js";
84
+ import { TabsRootContextKey as Ae } from "./tabs/types.js";
85
+ import { default as Oe } from "./popper/arrow.vue2.js";
86
+ import { default as _e } from "./popper/trigger.vue2.js";
87
+ import { default as we } from "./popper/content.vue2.js";
88
+ import { TOOLTIP_INJECTION_KEY as Ne } from "./tooltip/constants.js";
89
+ import { useTabDropdown as He } from "./multiple-tabs/use/use-tab-dropdown.js";
90
+ import { initAffixTabs as Je, useTabsDrag as Ye } from "./multiple-tabs/use/use-multiple-tabs.js";
91
+ import { configProviderContextKey as qe, messageConfig as We } from "./config-provider/constants.js";
92
+ import { provideGlobalConfig as Xe, useGlobalComponentSettings as Ze, useGlobalConfig as $e } from "./config-provider/hooks/use-global-config.js";
93
+ import { usePagination as tr, vftPaginationKey as er } from "./pagination/usePagination.js";
94
+ import { formItemValidateStates as fr } from "./form/types.js";
95
+ import { formContextKey as mr, formItemContextKey as xr } from "./form/constants.js";
96
+ import { useDisabled as ir, useFormDisabled as Vr, useFormSize as nr, useSize as sr } from "./form/hooks/use-form-common-props.js";
97
+ import { useFormItem as lr, useFormItemInputId as dr } from "./form/hooks/use-form-item.js";
98
+ import { buttonGroupContextKey as Cr } from "./button/constants.js";
99
+ import { checkboxGroupContextKey as Tr } from "./checkbox/constants.js";
100
+ import { radioGroupKey as Ir } from "./radio/constants.js";
101
+ import { BAR_MAP as yr, GAP as Sr, renderThumbStyle as Mr } from "./scrollbar/util.js";
102
+ import { scrollbarContextKey as Er } from "./scrollbar/constants.js";
103
+ import { DROPDOWN_INJECTION_KEY as Kr } from "./dropdown/tokens.js";
104
+ import { selectV2InjectionKey as Fr } from "./select-v2/token.js";
105
+ import { selectGroupKey as Ar, selectKey as Gr } from "./select/token.js";
106
+ import { INDEX as Rr } from "./table/columns.js";
107
+ import { useDialog as zr } from "./dialog/hooks/use-dialog.js";
108
+ import { dialogInjectionKey as hr } from "./dialog/constants.js";
109
+ import { rowContextKey as Br } from "./row/constants.js";
110
+ import { MenuTypeEnum as Ur } from "./horizontal-menu/constants.js";
111
+ import { buildTimeList as Yr, dateEquals as jr, extractDateFormat as qr, extractTimeFormat as Wr, formatter as Qr, makeList as Xr, parseDate as Zr, rangeArr as $r, valueEquals as of } from "./time-picker/utils.js";
112
+ import { DEFAULT_FORMATS_DATE as ef, DEFAULT_FORMATS_DATEPICKER as rf, DEFAULT_FORMATS_TIME as ff, timeUnits as pf } from "./time-picker/constants.js";
113
+ import { timePickerDefaultProps as xf } from "./time-picker/common/props.js";
114
114
  import { ROOT_PICKER_INJECTION_KEY as Vf, datePickerConfig as nf } from "./date-picker/constants.js";
115
115
  import { datePickerProps as uf } from "./date-picker/props/date-picker.js";
116
116
  import { dragEventsKey as df, useDragNodeHandler as cf } from "./tree/model/useDragNode.js";
@@ -121,26 +121,26 @@ import { messageDefaults as Sf, messageTypes as Mf } from "./message/types.js";
121
121
  import { vLoading as Ef, createLoadingDirective as Lf, vLoading as Kf } from "./loading/directive.js";
122
122
  import { Loading as Ff } from "./loading/service.js";
123
123
  export {
124
- Tr as BAR_MAP,
125
- pf as CommonPicker,
126
- Zr as DEFAULT_FORMATS_DATE,
127
- $r as DEFAULT_FORMATS_DATEPICKER,
128
- of as DEFAULT_FORMATS_TIME,
129
- Mr as DROPDOWN_INJECTION_KEY,
124
+ yr as BAR_MAP,
125
+ Ee as CommonPicker,
126
+ ef as DEFAULT_FORMATS_DATE,
127
+ rf as DEFAULT_FORMATS_DATEPICKER,
128
+ ff as DEFAULT_FORMATS_TIME,
129
+ Kr as DROPDOWN_INJECTION_KEY,
130
130
  st as DynamicSizeGrid,
131
131
  at as DynamicSizeList,
132
- Ee as EmptyEnum,
132
+ Fe as EmptyEnum,
133
133
  Vt as FixedSizeGrid,
134
134
  mt as FixedSizeList,
135
- Pr as GAP,
136
- kr as INDEX,
135
+ Sr as GAP,
136
+ Rr as INDEX,
137
137
  f as Icon,
138
- hr as MenuTypeEnum,
138
+ Ur as MenuTypeEnum,
139
139
  De as Message,
140
140
  Vf as ROOT_PICKER_INJECTION_KEY,
141
- _e as TOOLTIP_INJECTION_KEY,
142
- Ke as TabsRootContextKey,
143
- xf as TimePickPanel,
141
+ Ne as TOOLTIP_INJECTION_KEY,
142
+ Ae as TabsRootContextKey,
143
+ Ke as TimePickPanel,
144
144
  ae as VftAlert,
145
145
  q as VftAside,
146
146
  x as VftAvatar,
@@ -210,9 +210,9 @@ export {
210
210
  me as VftPopconfirm,
211
211
  D as VftPopover,
212
212
  c as VftPopper,
213
- Fe as VftPopperArrow,
214
- Oe as VftPopperContent,
215
- Ae as VftPopperTrigger,
213
+ Oe as VftPopperArrow,
214
+ we as VftPopperContent,
215
+ _e as VftPopperTrigger,
216
216
  Do as VftQrcode,
217
217
  Yo as VftRadio,
218
218
  jo as VftRadioButton,
@@ -239,61 +239,61 @@ export {
239
239
  Xt as VftTree,
240
240
  Mt as VftTreeSelect,
241
241
  Et as VftVerifyCode,
242
- Br as buildTimeList,
243
- ur as buttonGroupContextKey,
244
- dr as checkboxGroupContextKey,
245
- Ue as configProviderContextKey,
242
+ Yr as buildTimeList,
243
+ Cr as buttonGroupContextKey,
244
+ Tr as checkboxGroupContextKey,
245
+ qe as configProviderContextKey,
246
246
  K as createContextMenu,
247
247
  Lf as createLoadingDirective,
248
- Hr as dateEquals,
248
+ jr as dateEquals,
249
249
  nf as datePickerConfig,
250
250
  uf as datePickerProps,
251
251
  v as destroyContextMenu,
252
- Rr as dialogInjectionKey,
252
+ hr as dialogInjectionKey,
253
253
  df as dragEventsKey,
254
- Ur as extractDateFormat,
255
- Jr as extractTimeFormat,
256
- er as formContextKey,
257
- rr as formItemContextKey,
258
- or as formItemValidateStates,
259
- Yr as formatter,
254
+ qr as extractDateFormat,
255
+ Wr as extractTimeFormat,
256
+ mr as formContextKey,
257
+ xr as formItemContextKey,
258
+ fr as formItemValidateStates,
259
+ Qr as formatter,
260
260
  gf as getChildState,
261
- Ne as initAffixTabs,
262
- jr as makeList,
263
- Je as messageConfig,
261
+ Je as initAffixTabs,
262
+ Xr as makeList,
263
+ We as messageConfig,
264
264
  Sf as messageDefaults,
265
265
  Mf as messageTypes,
266
- qr as parseDate,
267
- je as provideGlobalConfig,
268
- Cr as radioGroupKey,
269
- Wr as rangeArr,
270
- Ir as renderThumbStyle,
271
- zr as rowContextKey,
272
- yr as scrollbarContextKey,
273
- Kr as selectGroupKey,
274
- vr as selectKey,
275
- Er as selectV2InjectionKey,
266
+ Zr as parseDate,
267
+ Xe as provideGlobalConfig,
268
+ Ir as radioGroupKey,
269
+ $r as rangeArr,
270
+ Mr as renderThumbStyle,
271
+ Br as rowContextKey,
272
+ Er as scrollbarContextKey,
273
+ Ar as selectGroupKey,
274
+ Gr as selectKey,
275
+ Fr as selectV2InjectionKey,
276
276
  Pf as spaceProps,
277
- rf as timePickerDefaultProps,
278
- tf as timeUnits,
277
+ xf as timePickerDefaultProps,
278
+ pf as timeUnits,
279
279
  k as useContextMenu,
280
- Gr as useDialog,
281
- pr as useDisabled,
280
+ zr as useDialog,
281
+ ir as useDisabled,
282
282
  cf as useDragNodeHandler,
283
- mr as useFormDisabled,
284
- Vr as useFormItem,
285
- nr as useFormItemInputId,
286
- xr as useFormSize,
287
- qe as useGlobalComponentSettings,
288
- We as useGlobalConfig,
289
- Xe as usePagination,
290
- ar as useSize,
283
+ Vr as useFormDisabled,
284
+ lr as useFormItem,
285
+ dr as useFormItemInputId,
286
+ nr as useFormSize,
287
+ Ze as useGlobalComponentSettings,
288
+ $e as useGlobalConfig,
289
+ tr as usePagination,
290
+ sr as useSize,
291
291
  Df as useSpace,
292
- we as useTabDropdown,
293
- Be as useTabsDrag,
292
+ He as useTabDropdown,
293
+ Ye as useTabsDrag,
294
294
  Kf as vLoading,
295
- Qr as valueEquals,
296
- Ze as vftPaginationKey,
295
+ of as valueEquals,
296
+ er as vftPaginationKey,
297
297
  lt as virtualizedGridProps,
298
298
  dt as virtualizedListProps,
299
299
  ct as virtualizedProps,
@@ -106,7 +106,9 @@ const M = (
106
106
  setup(d) {
107
107
  const i = et();
108
108
  d.canDrag && ot(i);
109
- const u = J(), m = b(""), a = b(0), v = b(), s = E().appContext.config.globalProperties.$router, { go: g } = q(s), c = h(() => u.getTabList.filter((t) => {
109
+ const u = J(), m = b(""), a = b(0), v = b(), p = E().appContext.config.globalProperties.$router;
110
+ console.log(p, "===---");
111
+ const { go: g } = q(p), c = h(() => u.getTabList.filter((t) => {
110
112
  var e;
111
113
  return !((e = t.meta) != null && e.hideTab);
112
114
  }));
@@ -116,30 +118,30 @@ const M = (
116
118
  const e = c.value.findIndex((o) => f(o) === m.value);
117
119
  e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
118
120
  }
119
- }), W(() => {
120
- v.value = r(s.currentRoute);
121
+ }), console.log(p, "===---"), W(() => {
122
+ console.log(p, "===---"), v.value = r(p.currentRoute);
121
123
  }), G((t) => {
122
124
  var T;
123
125
  if (!t || (T = t.meta) != null && T.hasTokenToRoot)
124
126
  return;
125
- const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, l = f(t);
126
- if (m.value !== l && (m.value = l), p) {
127
- let y = s.getRoutes().find((D) => D.path === o);
127
+ const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, l = n ? o : null, s = f(t);
128
+ if (m.value !== s && (m.value = s), l) {
129
+ let y = p.getRoutes().find((D) => D.path === o);
128
130
  y && u.addTab(y, r(v), a.value, t);
129
131
  } else
130
132
  u.addTab(r(t), r(v), a.value);
131
133
  });
132
134
  function k(t) {
133
- var n, p;
135
+ var n, l;
134
136
  if (m.value === t.paneName)
135
137
  return;
136
138
  const e = c.value[t.attrs.index];
137
139
  m.value = t.paneName;
138
- const o = (p = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : p.fullPath;
140
+ const o = (l = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : l.fullPath;
139
141
  g(o || e.fullPath || e.path);
140
142
  }
141
143
  function B(t) {
142
- u.closeTabByKey(t, s);
144
+ u.closeTabByKey(t, p);
143
145
  }
144
146
  const [I, N] = O();
145
147
  function w(t) {
@@ -183,19 +185,19 @@ const M = (
183
185
  }, {
184
186
  default: C(() => [
185
187
  (x(!0), R(F, null, U(c.value, (o, n) => {
186
- var p;
188
+ var l;
187
189
  return x(), j(r(Z), {
188
190
  key: r(f)(o) + n,
189
- closable: !((p = o.meta) != null && p.affix),
191
+ closable: !((l = o.meta) != null && l.affix),
190
192
  index: n,
191
193
  name: r(f)(o)
192
194
  }, {
193
195
  label: C(() => {
194
- var l;
196
+ var s;
195
197
  return [
196
198
  S(tt, {
197
199
  contextMenuStyle: z.value,
198
- affixNum: (l = r(i)) == null ? void 0 : l.length,
200
+ affixNum: (s = r(i)) == null ? void 0 : s.length,
199
201
  ref_for: !0,
200
202
  ref: r(N)(n),
201
203
  tabItem: o
@@ -22,17 +22,17 @@ const c = (
22
22
  popoverCfg: {},
23
23
  modelValue: { default: "" },
24
24
  clearable: { type: Boolean, default: !0 },
25
- placeholder: {},
25
+ placeholder: { default: "请输入你要搜索的内容" },
26
26
  suffixIcon: { default: { icon: "ico-ep:search", color: "#8B8C8C", pointer: !0 } },
27
27
  prefixIcon: {},
28
28
  clearIcon: {}
29
29
  },
30
30
  emits: ["update:modelValue", "blur", "focus", "clear", "enter", "prefixClick", "suffixClick", "mouseenter", "mouseleave", "keydown", "change"],
31
31
  setup(o, { expose: B, emit: t }) {
32
- const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), n = a(!1), R = f(
32
+ const k = a(), C = a(), y = a(), v = a(!1), p = a(!1), l = a(!1), R = f(
33
33
  () => $(
34
34
  {
35
- width: o.activeWidth && (n.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
35
+ width: o.activeWidth && (l.value || o.modelValue) ? d(o.activeWidth) : d(o.width)
36
36
  },
37
37
  "input"
38
38
  )
@@ -57,13 +57,13 @@ const c = (
57
57
  m();
58
58
  };
59
59
  function E() {
60
- n.value = !0;
60
+ l.value = !0;
61
61
  }
62
62
  function m() {
63
- n.value = !1;
63
+ l.value = !1;
64
64
  }
65
65
  const F = () => {
66
- s(), t("clear");
66
+ s(), t("update:modelValue", ""), t("clear");
67
67
  };
68
68
  function M() {
69
69
  p.value = !0, t("mouseenter", o.modelValue);
@@ -72,7 +72,7 @@ const c = (
72
72
  p.value = !1, t("mouseleave", o.modelValue);
73
73
  }
74
74
  const z = () => {
75
- n.value = !0, v.value = !0, t("focus");
75
+ l.value = !0, v.value = !0, t("focus");
76
76
  };
77
77
  function D() {
78
78
  v.value = !1, t("blur");
@@ -92,22 +92,22 @@ const c = (
92
92
  const H = (e) => {
93
93
  t("keydown", e);
94
94
  }, L = f(() => {
95
- var e, l;
96
- return (l = (e = k.value) == null ? void 0 : e.popperRef) == null ? void 0 : l.contentRef;
95
+ var e, n;
96
+ return (n = (e = k.value) == null ? void 0 : e.popperRef) == null ? void 0 : n.contentRef;
97
97
  });
98
98
  return B({
99
99
  isFocus: v,
100
100
  isHover: p,
101
- visible: n,
101
+ visible: l,
102
102
  hidePopover: m,
103
103
  showPopover: E
104
- }), (e, l) => {
104
+ }), (e, n) => {
105
105
  const O = j("click-outside");
106
106
  return h(), w(q, null, [
107
107
  G((h(), w("div", {
108
108
  ref_key: "searchRef",
109
109
  ref: C,
110
- class: g([r(c).b(), r(c).is("active", n.value || e.modelValue)]),
110
+ class: g([r(c).b(), r(c).is("active", l.value || e.modelValue)]),
111
111
  style: J(S.value)
112
112
  }, [
113
113
  Q(r(_), b({
@@ -123,7 +123,7 @@ const c = (
123
123
  onMouseleave: N,
124
124
  onPrefixClick: K,
125
125
  onSuffixClick: U,
126
- onChange: l[0] || (l[0] = (V) => {
126
+ onChange: n[0] || (n[0] = (V) => {
127
127
  t("change", e.modelValue);
128
128
  }),
129
129
  onKeydown: H,
@@ -167,8 +167,8 @@ const c = (
167
167
  ref: k
168
168
  }, x.value, {
169
169
  "virtual-ref": C.value,
170
- visible: n.value,
171
- "onUpdate:visible": l[1] || (l[1] = (V) => n.value = V),
170
+ visible: l.value,
171
+ "onUpdate:visible": n[1] || (n[1] = (V) => l.value = V),
172
172
  "virtual-triggering": ""
173
173
  }), {
174
174
  default: u(() => [