vft 0.0.92 → 0.0.96
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/components/table/table.vue2.js +68 -66
- 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/components/table/table.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/vft-select.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 { 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";
|
|
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
|
+
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,
|
|
130
130
|
st as DynamicSizeGrid,
|
|
131
131
|
at as DynamicSizeList,
|
|
132
|
-
|
|
132
|
+
Ee as EmptyEnum,
|
|
133
133
|
Vt as FixedSizeGrid,
|
|
134
134
|
mt as FixedSizeList,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
Pr as GAP,
|
|
136
|
+
kr as INDEX,
|
|
137
137
|
f as Icon,
|
|
138
|
-
|
|
138
|
+
hr as MenuTypeEnum,
|
|
139
139
|
De as Message,
|
|
140
140
|
Vf as ROOT_PICKER_INJECTION_KEY,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
_e as TOOLTIP_INJECTION_KEY,
|
|
142
|
+
Ke as TabsRootContextKey,
|
|
143
|
+
xf 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
|
+
Fe as VftPopperArrow,
|
|
214
|
+
Oe as VftPopperContent,
|
|
215
|
+
Ae 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
|
+
Br as buildTimeList,
|
|
243
|
+
ur as buttonGroupContextKey,
|
|
244
|
+
dr as checkboxGroupContextKey,
|
|
245
|
+
Ue as configProviderContextKey,
|
|
246
246
|
K as createContextMenu,
|
|
247
247
|
Lf as createLoadingDirective,
|
|
248
|
-
|
|
248
|
+
Hr as dateEquals,
|
|
249
249
|
nf as datePickerConfig,
|
|
250
250
|
uf as datePickerProps,
|
|
251
251
|
v as destroyContextMenu,
|
|
252
|
-
|
|
252
|
+
Rr as dialogInjectionKey,
|
|
253
253
|
df as dragEventsKey,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
Ur as extractDateFormat,
|
|
255
|
+
Jr as extractTimeFormat,
|
|
256
|
+
er as formContextKey,
|
|
257
|
+
rr as formItemContextKey,
|
|
258
|
+
or as formItemValidateStates,
|
|
259
|
+
Yr as formatter,
|
|
260
260
|
gf as getChildState,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
Ne as initAffixTabs,
|
|
262
|
+
jr as makeList,
|
|
263
|
+
Je as messageConfig,
|
|
264
264
|
Sf as messageDefaults,
|
|
265
265
|
Mf as messageTypes,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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,
|
|
276
276
|
Pf as spaceProps,
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
rf as timePickerDefaultProps,
|
|
278
|
+
tf as timeUnits,
|
|
279
279
|
k as useContextMenu,
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
Gr as useDialog,
|
|
281
|
+
pr as useDisabled,
|
|
282
282
|
cf as useDragNodeHandler,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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,
|
|
291
291
|
Df as useSpace,
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
we as useTabDropdown,
|
|
293
|
+
Be as useTabsDrag,
|
|
294
294
|
Kf as vLoading,
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
Qr as valueEquals,
|
|
296
|
+
Ze 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(() => [
|