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.
- package/dist/index.css +1 -1
- package/es/components/index.js +90 -90
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +15 -13
- package/es/components/search/search.vue2.js +15 -15
- package/es/index.js +90 -90
- package/es/package.json.js +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +8 -8
- package/theme-style/index.css +1 -1
- package/theme-style/src/select.scss +8 -8
- package/theme-style/src/table.scss +20 -15
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
package/es/components/index.js
CHANGED
|
@@ -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 {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import { default as Oe } from "./popper/
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
132
|
+
Fe as EmptyEnum,
|
|
133
133
|
Vt as FixedSizeGrid,
|
|
134
134
|
mt as FixedSizeList,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
Sr as GAP,
|
|
136
|
+
Rr as INDEX,
|
|
137
137
|
f as Icon,
|
|
138
|
-
|
|
138
|
+
Ur as MenuTypeEnum,
|
|
139
139
|
De as Message,
|
|
140
140
|
Vf as ROOT_PICKER_INJECTION_KEY,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
|
|
248
|
+
jr as dateEquals,
|
|
249
249
|
nf as datePickerConfig,
|
|
250
250
|
uf as datePickerProps,
|
|
251
251
|
v as destroyContextMenu,
|
|
252
|
-
|
|
252
|
+
hr as dialogInjectionKey,
|
|
253
253
|
df as dragEventsKey,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
Je as initAffixTabs,
|
|
262
|
+
Xr as makeList,
|
|
263
|
+
We as messageConfig,
|
|
264
264
|
Sf as messageDefaults,
|
|
265
265
|
Mf as messageTypes,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
278
|
-
|
|
277
|
+
xf as timePickerDefaultProps,
|
|
278
|
+
pf as timeUnits,
|
|
279
279
|
k as useContextMenu,
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
zr as useDialog,
|
|
281
|
+
ir as useDisabled,
|
|
282
282
|
cf as useDragNodeHandler,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
|
|
293
|
-
|
|
292
|
+
He as useTabDropdown,
|
|
293
|
+
Ye as useTabsDrag,
|
|
294
294
|
Kf as vLoading,
|
|
295
|
-
|
|
296
|
-
|
|
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(),
|
|
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(
|
|
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,
|
|
126
|
-
if (m.value !==
|
|
127
|
-
let y =
|
|
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,
|
|
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 = (
|
|
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,
|
|
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
|
|
188
|
+
var l;
|
|
187
189
|
return x(), j(r(Z), {
|
|
188
190
|
key: r(f)(o) + n,
|
|
189
|
-
closable: !((
|
|
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
|
|
196
|
+
var s;
|
|
195
197
|
return [
|
|
196
198
|
S(tt, {
|
|
197
199
|
contextMenuStyle: z.value,
|
|
198
|
-
affixNum: (
|
|
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),
|
|
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 && (
|
|
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
|
-
|
|
60
|
+
l.value = !0;
|
|
61
61
|
}
|
|
62
62
|
function m() {
|
|
63
|
-
|
|
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
|
-
|
|
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,
|
|
96
|
-
return (
|
|
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:
|
|
101
|
+
visible: l,
|
|
102
102
|
hidePopover: m,
|
|
103
103
|
showPopover: E
|
|
104
|
-
}), (e,
|
|
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",
|
|
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:
|
|
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:
|
|
171
|
-
"onUpdate:visible":
|
|
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(() => [
|