vft 0.0.129 → 0.0.130
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/es/components/button/use-button.js +3 -3
- package/es/components/config-provider/config-provider.vue2.js +24 -23
- package/es/components/icon/icon.vue2.js +21 -22
- package/es/components/index.js +113 -113
- package/es/components/table/use/use-table.js +22 -21
- package/es/index.js +113 -113
- package/es/package.json.js +1 -1
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +4 -4
- package/theme-style/src/multiple-tabs.scss +21 -21
- package/theme-style/vft-multiple-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -3,11 +3,11 @@ import "../form/index.js";
|
|
|
3
3
|
import { useThrottleFn as b } from "@vueuse/core";
|
|
4
4
|
import { inject as _, computed as i, ref as F, useSlots as I, Text as S } from "vue";
|
|
5
5
|
import { buttonGroupContextKey as k } from "./constants.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useGlobalConfig as T } from "../config-provider/hooks/use-global-config.js";
|
|
7
|
+
import { useFormItem as z } from "../form/hooks/use-form-item.js";
|
|
8
8
|
import { useFormSize as C, useFormDisabled as D } from "../form/hooks/use-form-common-props.js";
|
|
9
9
|
const E = (t, l) => {
|
|
10
|
-
const o = _(k, void 0), u =
|
|
10
|
+
const o = _(k, void 0), u = T("button"), { form: s } = z(), d = C(i(() => o == null ? void 0 : o.size)), r = D(), m = F(), a = I(), f = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(
|
|
11
11
|
() => {
|
|
12
12
|
var e;
|
|
13
13
|
return t.autoInsertSpace ?? ((e = u.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { defineComponent as r, watch as
|
|
2
|
-
import { inBrowser as k, kebabCase as
|
|
1
|
+
import { defineComponent as r, watch as m, computed as f, onActivated as d, onDeactivated as l, onBeforeUnmount as u, getCurrentInstance as h, openBlock as g, createElementBlock as p, normalizeClass as v, unref as C, normalizeStyle as V, renderSlot as b } from "vue";
|
|
2
|
+
import { inBrowser as k, kebabCase as y } from "@vft/utils";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "../../utils/ns-cover.js";
|
|
5
5
|
import "lodash";
|
|
6
|
-
import { useNamespace as
|
|
6
|
+
import { useNamespace as B } from "../../hooks/use-namespace/index.js";
|
|
7
7
|
import "@popperjs/core";
|
|
8
8
|
import "../../hooks/use-z-index/index.js";
|
|
9
|
-
import { messageConfig as
|
|
10
|
-
import { provideGlobalConfig as
|
|
11
|
-
const
|
|
9
|
+
import { messageConfig as D } from "./constants.js";
|
|
10
|
+
import { provideGlobalConfig as E } from "./hooks/use-global-config.js";
|
|
11
|
+
const L = (
|
|
12
12
|
/* hoist-static*/
|
|
13
|
-
|
|
14
|
-
),
|
|
13
|
+
B("config-provider")
|
|
14
|
+
), S = r({
|
|
15
15
|
name: "vft-config-provider"
|
|
16
16
|
}), N = /* @__PURE__ */ r({
|
|
17
|
-
...
|
|
17
|
+
...S,
|
|
18
18
|
props: {
|
|
19
19
|
theme: { default: "light" },
|
|
20
20
|
themeVars: {},
|
|
21
21
|
themeVarsDark: {},
|
|
22
22
|
themeVarsLight: {},
|
|
23
|
-
|
|
23
|
+
iconfontClass: {},
|
|
24
|
+
iconifyPrefixClass: { default: "ico-" },
|
|
24
25
|
namespace: { default: "vft" },
|
|
25
26
|
zIndex: {},
|
|
26
27
|
message: {},
|
|
@@ -28,14 +29,14 @@ const S = (
|
|
|
28
29
|
button: {}
|
|
29
30
|
},
|
|
30
31
|
setup(t) {
|
|
31
|
-
|
|
32
|
+
m(
|
|
32
33
|
() => t.message,
|
|
33
34
|
(e) => {
|
|
34
|
-
Object.assign(
|
|
35
|
+
Object.assign(D, e ?? {});
|
|
35
36
|
},
|
|
36
37
|
{ immediate: !0, deep: !0 }
|
|
37
38
|
);
|
|
38
|
-
const s =
|
|
39
|
+
const s = f(() => {
|
|
39
40
|
const e = t.theme === "dark";
|
|
40
41
|
return i({
|
|
41
42
|
...t.themeVars,
|
|
@@ -45,26 +46,26 @@ const S = (
|
|
|
45
46
|
if (k) {
|
|
46
47
|
const e = () => {
|
|
47
48
|
document.documentElement.classList.add(t.theme);
|
|
48
|
-
},
|
|
49
|
+
}, a = (n = t.theme) => {
|
|
49
50
|
document.documentElement.classList.remove(n);
|
|
50
51
|
};
|
|
51
|
-
|
|
52
|
+
m(
|
|
52
53
|
() => t.theme,
|
|
53
|
-
(n,
|
|
54
|
-
|
|
54
|
+
(n, o) => {
|
|
55
|
+
o && a(o), e();
|
|
55
56
|
},
|
|
56
57
|
{ immediate: !0 }
|
|
57
|
-
),
|
|
58
|
+
), d(e), l(a), u(a);
|
|
58
59
|
}
|
|
59
60
|
function i(e) {
|
|
60
|
-
const
|
|
61
|
+
const a = {};
|
|
61
62
|
return Object.keys(e).forEach((n) => {
|
|
62
|
-
|
|
63
|
-
}),
|
|
63
|
+
a[`--${t.namespace}-${y(n)}`] = e[n];
|
|
64
|
+
}), a;
|
|
64
65
|
}
|
|
65
66
|
const c = h();
|
|
66
|
-
return
|
|
67
|
-
class: v(C(
|
|
67
|
+
return E(c.props), (e, a) => (g(), p("div", {
|
|
68
|
+
class: v(C(L).b()),
|
|
68
69
|
style: V(s.value)
|
|
69
70
|
}, [
|
|
70
71
|
b(e.$slots, "default")
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { addUnit as
|
|
1
|
+
import { defineComponent as u, computed as s, openBlock as a, createElementBlock as c, normalizeClass as l, unref as t, normalizeStyle as m } from "vue";
|
|
2
|
+
import { addUnit as y } from "@vft/utils";
|
|
3
3
|
import "../config-provider/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
|
-
import { generateCssVars as
|
|
5
|
+
import { generateCssVars as C } from "../../utils/ns-cover.js";
|
|
6
6
|
import "lodash";
|
|
7
|
-
import { useNamespace as
|
|
7
|
+
import { useNamespace as g } from "../../hooks/use-namespace/index.js";
|
|
8
8
|
import "@popperjs/core";
|
|
9
9
|
import "../../hooks/use-z-index/index.js";
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
const
|
|
10
|
+
import { useGlobalConfig as h } from "../config-provider/hooks/use-global-config.js";
|
|
11
|
+
const z = ["src"], f = (
|
|
12
12
|
/* hoist-static*/
|
|
13
|
-
|
|
14
|
-
),
|
|
13
|
+
g("icon")
|
|
14
|
+
), k = u({
|
|
15
15
|
name: "vft-icon"
|
|
16
|
-
}), V = /* @__PURE__ */
|
|
17
|
-
...
|
|
16
|
+
}), V = /* @__PURE__ */ u({
|
|
17
|
+
...k,
|
|
18
18
|
props: {
|
|
19
19
|
icon: {},
|
|
20
20
|
size: {},
|
|
@@ -25,25 +25,24 @@ const C = ["src"], c = (
|
|
|
25
25
|
hoverColor: {}
|
|
26
26
|
},
|
|
27
27
|
setup(o) {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
var r;
|
|
29
|
+
const i = h(), n = s(() => C({
|
|
30
|
+
size: y(o.size),
|
|
30
31
|
color: o.color,
|
|
31
32
|
hoverColor: o.hoverColor,
|
|
32
33
|
cursor: o.pointer ? "pointer" : void 0,
|
|
33
|
-
animation: o.rotate ? `${
|
|
34
|
-
}, "icon")),
|
|
35
|
-
return (e,
|
|
34
|
+
animation: o.rotate ? `${i.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
|
|
35
|
+
}, "icon")), d = (e) => e == null ? void 0 : e.includes("/"), p = s(() => d(o.icon)), v = o.icon.startsWith((r = i.value) == null ? void 0 : r.iconifyPrefixClass);
|
|
36
|
+
return (e, B) => p.value ? (a(), c("img", {
|
|
36
37
|
key: 0,
|
|
37
|
-
class: l(
|
|
38
|
+
class: l(t(f).e("image")),
|
|
38
39
|
src: e.icon,
|
|
39
40
|
alt: "",
|
|
40
|
-
style:
|
|
41
|
-
}, null, 14,
|
|
41
|
+
style: m(n.value)
|
|
42
|
+
}, null, 14, z)) : (a(), c("i", {
|
|
42
43
|
key: 1,
|
|
43
|
-
class: l([
|
|
44
|
-
style:
|
|
45
|
-
...t.value
|
|
46
|
-
})
|
|
44
|
+
class: l([t(f).b(), e.icon, { [t(i).iconfontClass]: !t(v) }]),
|
|
45
|
+
style: m(n.value)
|
|
47
46
|
}, null, 6));
|
|
48
47
|
}
|
|
49
48
|
});
|
package/es/components/index.js
CHANGED
|
@@ -84,45 +84,45 @@ import { VftMdTabs as ye } from "./md-tabs/index.js";
|
|
|
84
84
|
import { VftMdVuePlayground as _e } from "./md-vue-playground/index.js";
|
|
85
85
|
import { VftLoading as Ke } from "./loading/index.js";
|
|
86
86
|
import { VftMessage as ve, VftMessage as Re } from "./message/index.js";
|
|
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 { default as vt } from "./popper/
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
87
|
+
import { buttonGroupContextKey as Oe } from "./button/constants.js";
|
|
88
|
+
import { checkboxGroupContextKey as ze } from "./checkbox/constants.js";
|
|
89
|
+
import { configProviderContextKey as he, messageConfig as Ue } from "./config-provider/constants.js";
|
|
90
|
+
import { provideGlobalConfig as He, useGlobalComponentSettings as qe, useGlobalConfig as Je } from "./config-provider/hooks/use-global-config.js";
|
|
91
|
+
import { ROOT_PICKER_INJECTION_KEY as je, datePickerConfig as Qe } from "./date-picker/constants.js";
|
|
92
|
+
import { datePickerProps as Xe } from "./date-picker/props/date-picker.js";
|
|
93
|
+
import { dialogInjectionKey as $e } from "./dialog/constants.js";
|
|
94
|
+
import { useDialog as rt } from "./dialog/hooks/use-dialog.js";
|
|
95
|
+
import { DROPDOWN_INJECTION_KEY as tt } from "./dropdown/tokens.js";
|
|
96
|
+
import { EmptyEnum as mt } from "./empty/constants.js";
|
|
97
|
+
import { formContextKey as xt, formItemContextKey as at } from "./form/constants.js";
|
|
98
|
+
import { useDisabled as nt, useFormDisabled as Vt, useFormSize as st, useSize as ut } from "./form/hooks/use-form-common-props.js";
|
|
99
|
+
import { useFormItem as lt, useFormItemInputId as ct } from "./form/hooks/use-form-item.js";
|
|
100
|
+
import { formItemValidateStates as It } from "./form/types.js";
|
|
101
|
+
import { MenuTypeEnum as Dt } from "./horizontal-menu/constants.js";
|
|
102
|
+
import { initAffixTabs as Et, useTabsDrag as Pt } from "./multiple-tabs/use/use-multiple-tabs.js";
|
|
103
|
+
import { useTabDropdown as Ft } from "./multiple-tabs/use/use-tab-dropdown.js";
|
|
104
|
+
import { usePagination as St, vftPaginationKey as yt } from "./pagination/usePagination.js";
|
|
105
|
+
import { default as _t } from "./popper/arrow.vue2.js";
|
|
106
|
+
import { default as Kt } from "./popper/content.vue2.js";
|
|
107
|
+
import { default as vt } from "./popper/trigger.vue2.js";
|
|
108
|
+
import { radioGroupKey as Gt } from "./radio/constants.js";
|
|
109
|
+
import { rowContextKey as wt } from "./row/constants.js";
|
|
110
|
+
import { scrollbarContextKey as Nt } from "./scrollbar/constants.js";
|
|
111
|
+
import { BAR_MAP as Ut, GAP as Bt, renderThumbStyle as Ht } from "./scrollbar/util.js";
|
|
112
|
+
import { selectInjectionKey as Jt } from "./select/token.js";
|
|
113
|
+
import { sliderContextKey as jt } from "./slider/constants.js";
|
|
114
|
+
import { sliderEmits as Wt } from "./slider/slider.js";
|
|
115
|
+
import { spaceProps as Zt } from "./space/space.js";
|
|
116
|
+
import { useSpace as of } from "./space/use-space.js";
|
|
117
|
+
import { ACTION_FIELD as ef, CHECKED_FIELD as tf, CREATE_TIME_FIELD as ff, DATE_FIELD as mf, DATE_TIME_FIELD as pf, ID_FIELD as xf, NAME_FIELD as af, SEQ_FIELD as nf, STATUS_FIELD as Vf, UPDATE_TIME_FIELD as sf } from "./table/field.js";
|
|
118
|
+
import { useTable as df } from "./table/use/use-table.js";
|
|
119
|
+
import { addRequire as cf, removeRequire as Tf, selectMapping as If } from "./table/utils.js";
|
|
120
|
+
import { TabsRootContextKey as Df } from "./tabs/types.js";
|
|
121
|
+
import { timePickerDefaultProps as Ef } from "./time-picker/common/props.js";
|
|
122
|
+
import { DEFAULT_FORMATS_DATE as Mf, DEFAULT_FORMATS_DATEPICKER as Ff, DEFAULT_FORMATS_TIME as Lf, timeUnits as Sf } from "./time-picker/constants.js";
|
|
123
|
+
import { buildTimeList as bf, dateEquals as _f, extractDateFormat as Af, extractTimeFormat as Kf, formatter as kf, makeList as vf, parseDate as Rf, rangeArr as Gf, valueEquals as Of } from "./time-picker/utils.js";
|
|
124
|
+
import { default as zf } from "./time-picker/common/picker.vue2.js";
|
|
125
|
+
import { default as hf } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
126
126
|
import { TOOLTIP_INJECTION_KEY as Bf } from "./tooltip/constants.js";
|
|
127
127
|
import { getChildState as qf } from "./tree/model/node.js";
|
|
128
128
|
import { dragEventsKey as Yf, useDragNodeHandler as jf } from "./tree/model/useDragNode.js";
|
|
@@ -134,36 +134,36 @@ import { vLoading as um, createLoadingDirective as dm, vLoading as lm } from "./
|
|
|
134
134
|
import { Loading as Tm } from "./loading/service.js";
|
|
135
135
|
import { messageDefaults as Cm, messageTypes as Dm } from "./message/types.js";
|
|
136
136
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
137
|
+
ef as ACTION_FIELD,
|
|
138
|
+
Ut as BAR_MAP,
|
|
139
|
+
tf as CHECKED_FIELD,
|
|
140
|
+
ff as CREATE_TIME_FIELD,
|
|
141
|
+
zf as CommonPicker,
|
|
142
|
+
mf as DATE_FIELD,
|
|
143
|
+
pf as DATE_TIME_FIELD,
|
|
144
|
+
Mf as DEFAULT_FORMATS_DATE,
|
|
145
|
+
Ff as DEFAULT_FORMATS_DATEPICKER,
|
|
146
|
+
Lf as DEFAULT_FORMATS_TIME,
|
|
147
|
+
tt as DROPDOWN_INJECTION_KEY,
|
|
148
148
|
Xr as DynamicSizeGrid,
|
|
149
149
|
$r as DynamicSizeList,
|
|
150
|
-
|
|
150
|
+
mt as EmptyEnum,
|
|
151
151
|
re as FixedSizeGrid,
|
|
152
152
|
te as FixedSizeList,
|
|
153
153
|
$f as FormCompEnum,
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
Bt as GAP,
|
|
155
|
+
xf as ID_FIELD,
|
|
156
156
|
go as Icon,
|
|
157
|
-
|
|
157
|
+
Dt as MenuTypeEnum,
|
|
158
158
|
ve as Message,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
af as NAME_FIELD,
|
|
160
|
+
je as ROOT_PICKER_INJECTION_KEY,
|
|
161
|
+
nf as SEQ_FIELD,
|
|
162
|
+
Vf as STATUS_FIELD,
|
|
163
163
|
Bf as TOOLTIP_INJECTION_KEY,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
Df as TabsRootContextKey,
|
|
165
|
+
hf as TimePickPanel,
|
|
166
|
+
sf as UPDATE_TIME_FIELD,
|
|
167
167
|
e as VftAlert,
|
|
168
168
|
A as VftAside,
|
|
169
169
|
ne as VftAutocomplete,
|
|
@@ -235,9 +235,9 @@ export {
|
|
|
235
235
|
rr as VftPopconfirm,
|
|
236
236
|
tr as VftPopover,
|
|
237
237
|
mr as VftPopper,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
_t as VftPopperArrow,
|
|
239
|
+
Kt as VftPopperContent,
|
|
240
|
+
vt as VftPopperTrigger,
|
|
241
241
|
de as VftProgress,
|
|
242
242
|
xr as VftQrcode,
|
|
243
243
|
ir as VftRadio,
|
|
@@ -267,76 +267,76 @@ export {
|
|
|
267
267
|
Ie as VftUpload,
|
|
268
268
|
Qr as VftVerifyCode,
|
|
269
269
|
om as add,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
cf as addRequire,
|
|
271
|
+
bf as buildTimeList,
|
|
272
|
+
Oe as buttonGroupContextKey,
|
|
273
|
+
ze as checkboxGroupContextKey,
|
|
274
274
|
rm as componentMap,
|
|
275
|
-
|
|
275
|
+
he as configProviderContextKey,
|
|
276
276
|
O as createContextMenu,
|
|
277
277
|
dm as createLoadingDirective,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
_f as dateEquals,
|
|
279
|
+
Qe as datePickerConfig,
|
|
280
|
+
Xe as datePickerProps,
|
|
281
281
|
em as del,
|
|
282
282
|
w as destroyContextMenu,
|
|
283
|
-
|
|
283
|
+
$e as dialogInjectionKey,
|
|
284
284
|
Yf as dragEventsKey,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
285
|
+
Af as extractDateFormat,
|
|
286
|
+
Kf as extractTimeFormat,
|
|
287
|
+
xt as formContextKey,
|
|
288
|
+
at as formItemContextKey,
|
|
289
|
+
It as formItemValidateStates,
|
|
290
|
+
kf as formatter,
|
|
291
291
|
nm as genFileId,
|
|
292
292
|
qf as getChildState,
|
|
293
293
|
xm as getDynamicProps,
|
|
294
|
-
|
|
294
|
+
Et as initAffixTabs,
|
|
295
295
|
tm as isDatePicker,
|
|
296
296
|
fm as isInput,
|
|
297
297
|
mm as isRangePicker,
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
vf as makeList,
|
|
299
|
+
Ue as messageConfig,
|
|
300
300
|
Cm as messageDefaults,
|
|
301
301
|
Dm as messageTypes,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
302
|
+
Rf as parseDate,
|
|
303
|
+
He as provideGlobalConfig,
|
|
304
|
+
Gt as radioGroupKey,
|
|
305
|
+
Gf as rangeArr,
|
|
306
|
+
Tf as removeRequire,
|
|
307
|
+
Ht as renderThumbStyle,
|
|
308
|
+
wt as rowContextKey,
|
|
309
|
+
Nt as scrollbarContextKey,
|
|
310
|
+
Jt as selectInjectionKey,
|
|
311
|
+
If as selectMapping,
|
|
312
|
+
jt as sliderContextKey,
|
|
313
|
+
Wt as sliderEmits,
|
|
314
|
+
Zt as spaceProps,
|
|
315
|
+
Ef as timePickerDefaultProps,
|
|
316
|
+
Sf as timeUnits,
|
|
317
317
|
Vm as uploadContextKey,
|
|
318
318
|
N as useContextMenu,
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
rt as useDialog,
|
|
320
|
+
nt as useDisabled,
|
|
321
321
|
jf as useDragNodeHandler,
|
|
322
322
|
am as useForm,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
323
|
+
Vt as useFormDisabled,
|
|
324
|
+
lt as useFormItem,
|
|
325
|
+
ct as useFormItemInputId,
|
|
326
|
+
st as useFormSize,
|
|
327
|
+
qe as useGlobalComponentSettings,
|
|
328
|
+
Je as useGlobalConfig,
|
|
329
329
|
Wf as useModal,
|
|
330
330
|
Xf as useModalInner,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
331
|
+
St as usePagination,
|
|
332
|
+
ut as useSize,
|
|
333
|
+
of as useSpace,
|
|
334
|
+
Ft as useTabDropdown,
|
|
335
|
+
df as useTable,
|
|
336
|
+
Pt as useTabsDrag,
|
|
337
337
|
lm as vLoading,
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
Of as valueEquals,
|
|
339
|
+
yt as vftPaginationKey,
|
|
340
340
|
me as virtualizedGridProps,
|
|
341
341
|
pe as virtualizedListProps,
|
|
342
342
|
xe as virtualizedProps,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { getDynamicProps as
|
|
2
|
-
import { tryOnBeforeUnmount as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { getDynamicProps as c } from "@vft/utils";
|
|
2
|
+
import { tryOnBeforeUnmount as f } from "@vueuse/core";
|
|
3
|
+
import { ref as u, unref as i, watch as w, toRaw as r } from "vue";
|
|
4
|
+
function y(o) {
|
|
5
|
+
const n = u(null), s = u(!1), d = u(null);
|
|
6
|
+
let l;
|
|
7
|
+
function g(e, a) {
|
|
8
|
+
f(() => {
|
|
9
|
+
n.value = null, s.value = null;
|
|
10
|
+
}), !(i(s) && e === i(n)) && (n.value = e, d.value = a, o && e.setProps(c(o)), s.value = !0, l == null || l(), l = w(
|
|
11
|
+
() => o,
|
|
11
12
|
() => {
|
|
12
|
-
|
|
13
|
+
o && e.setProps(c(o));
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
immediate: !0,
|
|
@@ -18,10 +19,10 @@ function f(r) {
|
|
|
18
19
|
));
|
|
19
20
|
}
|
|
20
21
|
function t() {
|
|
21
|
-
const e =
|
|
22
|
+
const e = i(n);
|
|
22
23
|
return e || console.error("The table instance has not been obtained yet, please make sure the table is presented when performing the table operation!"), e;
|
|
23
24
|
}
|
|
24
|
-
return [
|
|
25
|
+
return [g, {
|
|
25
26
|
reload: async (e) => await t().reload(e),
|
|
26
27
|
setProps: (e) => {
|
|
27
28
|
t().setProps(e);
|
|
@@ -29,7 +30,7 @@ function f(r) {
|
|
|
29
30
|
redoHeight: () => {
|
|
30
31
|
t().redoHeight();
|
|
31
32
|
},
|
|
32
|
-
setSelectedRows: (e) =>
|
|
33
|
+
setSelectedRows: (e) => r(t().setSelectedRows(e)),
|
|
33
34
|
setLoading: (e) => {
|
|
34
35
|
t().setLoading(e);
|
|
35
36
|
},
|
|
@@ -37,7 +38,7 @@ function f(r) {
|
|
|
37
38
|
getRawDataSource: () => t().getRawDataSource(),
|
|
38
39
|
getColumns: ({ ignoreIndex: e = !1 } = {}) => {
|
|
39
40
|
const a = t().getColumns({ ignoreIndex: e }) || [];
|
|
40
|
-
return
|
|
41
|
+
return r(a);
|
|
41
42
|
},
|
|
42
43
|
setColumns: (e) => {
|
|
43
44
|
t().setColumns(e);
|
|
@@ -47,8 +48,8 @@ function f(r) {
|
|
|
47
48
|
deleteSelectRowByKey: (e) => {
|
|
48
49
|
t().deleteSelectRowByKey(e);
|
|
49
50
|
},
|
|
50
|
-
getSelectRowKeys: () =>
|
|
51
|
-
getSelectRows: () =>
|
|
51
|
+
getSelectRowKeys: () => r(t().getSelectRowKeys()),
|
|
52
|
+
getSelectRows: () => r(t().getSelectRows()),
|
|
52
53
|
clearSelectedRowKeys: () => {
|
|
53
54
|
t().clearSelectedRowKeys();
|
|
54
55
|
},
|
|
@@ -56,8 +57,8 @@ function f(r) {
|
|
|
56
57
|
t().setSelectedRowKeys(e);
|
|
57
58
|
},
|
|
58
59
|
getPaginationRef: () => t().getPaginationRef(),
|
|
59
|
-
getSize: () =>
|
|
60
|
-
updateTableData: (e, a,
|
|
60
|
+
getSize: () => r(t().getSize()),
|
|
61
|
+
updateTableData: (e, a, R) => t().updateTableData(e, a, R),
|
|
61
62
|
deleteTableDataRecord: (e, a) => t().deleteTableDataRecord(e, a),
|
|
62
63
|
insertTableDataRecord: (e, a) => t().insertTableDataRecord(e, a),
|
|
63
64
|
updateTableDataRecord: (e, a) => t().updateTableDataRecord(e, a),
|
|
@@ -65,9 +66,9 @@ function f(r) {
|
|
|
65
66
|
setShowPagination: async (e) => {
|
|
66
67
|
t().setShowPagination(e);
|
|
67
68
|
},
|
|
68
|
-
getShowPagination: () =>
|
|
69
|
+
getShowPagination: () => r(t().getShowPagination())
|
|
69
70
|
}];
|
|
70
71
|
}
|
|
71
72
|
export {
|
|
72
|
-
|
|
73
|
+
y as useTable
|
|
73
74
|
};
|