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.
@@ -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 { useFormItem as T } from "../form/hooks/use-form-item.js";
7
- import { useGlobalConfig as z } from "../config-provider/hooks/use-global-config.js";
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 = z("button"), { form: s } = T(), 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(
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 o, computed as d, onActivated as f, onDeactivated as u, onBeforeUnmount as l, 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 B } from "@vft/utils";
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 D } from "../../hooks/use-namespace/index.js";
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 E } from "./constants.js";
10
- import { provideGlobalConfig as L } from "./hooks/use-global-config.js";
11
- const S = (
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
- D("config-provider")
14
- ), T = r({
13
+ B("config-provider")
14
+ ), S = r({
15
15
  name: "vft-config-provider"
16
16
  }), N = /* @__PURE__ */ r({
17
- ...T,
17
+ ...S,
18
18
  props: {
19
19
  theme: { default: "light" },
20
20
  themeVars: {},
21
21
  themeVarsDark: {},
22
22
  themeVarsLight: {},
23
- iconPrefix: {},
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
- o(
32
+ m(
32
33
  () => t.message,
33
34
  (e) => {
34
- Object.assign(E, e ?? {});
35
+ Object.assign(D, e ?? {});
35
36
  },
36
37
  { immediate: !0, deep: !0 }
37
38
  );
38
- const s = d(() => {
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
- }, m = (n = t.theme) => {
49
+ }, a = (n = t.theme) => {
49
50
  document.documentElement.classList.remove(n);
50
51
  };
51
- o(
52
+ m(
52
53
  () => t.theme,
53
- (n, a) => {
54
- a && m(a), e();
54
+ (n, o) => {
55
+ o && a(o), e();
55
56
  },
56
57
  { immediate: !0 }
57
- ), f(e), u(m), l(m);
58
+ ), d(e), l(a), u(a);
58
59
  }
59
60
  function i(e) {
60
- const m = {};
61
+ const a = {};
61
62
  return Object.keys(e).forEach((n) => {
62
- m[`--${t.namespace}-${B(n)}`] = e[n];
63
- }), m;
63
+ a[`--${t.namespace}-${y(n)}`] = e[n];
64
+ }), a;
64
65
  }
65
66
  const c = h();
66
- return L(c.props), (e, m) => (g(), p("div", {
67
- class: v(C(S).b()),
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 m, computed as i, openBlock as n, createElementBlock as r, normalizeClass as l, unref as a, normalizeStyle as s } from "vue";
2
- import { addUnit as d } from "@vft/utils";
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 v } from "../../utils/ns-cover.js";
5
+ import { generateCssVars as C } from "../../utils/ns-cover.js";
6
6
  import "lodash";
7
- import { useNamespace as y } from "../../hooks/use-namespace/index.js";
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 g } from "../config-provider/hooks/use-global-config.js";
11
- const C = ["src"], c = (
10
+ import { useGlobalConfig as h } from "../config-provider/hooks/use-global-config.js";
11
+ const z = ["src"], f = (
12
12
  /* hoist-static*/
13
- y("icon")
14
- ), h = m({
13
+ g("icon")
14
+ ), k = u({
15
15
  name: "vft-icon"
16
- }), V = /* @__PURE__ */ m({
17
- ...h,
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
- const u = g(), t = i(() => v({
29
- size: d(o.size),
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 ? `${u.value.namespace}-rotate ${o.rotateSpeed}s linear 0s infinite` : void 0
34
- }, "icon")), f = (e) => e == null ? void 0 : e.includes("/"), p = i(() => f(o.icon));
35
- return (e, z) => p.value ? (n(), r("img", {
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(a(c).e("image")),
38
+ class: l(t(f).e("image")),
38
39
  src: e.icon,
39
40
  alt: "",
40
- style: s(t.value)
41
- }, null, 14, C)) : (n(), r("i", {
41
+ style: m(n.value)
42
+ }, null, 14, z)) : (a(), c("i", {
42
43
  key: 1,
43
- class: l([a(c).b(), e.icon]),
44
- style: s({
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
  });
@@ -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 { default as Oe } from "./time-picker/common/picker.vue2.js";
88
- import { default as ze } from "./time-picker/time-picker-com/panel-time-pick.vue2.js";
89
- import { buttonGroupContextKey as he } from "./button/constants.js";
90
- import { checkboxGroupContextKey as Be } from "./checkbox/constants.js";
91
- import { configProviderContextKey as qe, messageConfig as Je } from "./config-provider/constants.js";
92
- import { provideGlobalConfig as je, useGlobalComponentSettings as Qe, useGlobalConfig as We } from "./config-provider/hooks/use-global-config.js";
93
- import { ROOT_PICKER_INJECTION_KEY as Ze, datePickerConfig as $e } from "./date-picker/constants.js";
94
- import { datePickerProps as rt } from "./date-picker/props/date-picker.js";
95
- import { dialogInjectionKey as tt } from "./dialog/constants.js";
96
- import { useDialog as mt } from "./dialog/hooks/use-dialog.js";
97
- import { DROPDOWN_INJECTION_KEY as xt } from "./dropdown/tokens.js";
98
- import { EmptyEnum as it } from "./empty/constants.js";
99
- import { formContextKey as Vt, formItemContextKey as st } from "./form/constants.js";
100
- import { useDisabled as dt, useFormDisabled as lt, useFormSize as ct, useSize as Tt } from "./form/hooks/use-form-common-props.js";
101
- import { useFormItem as Ct, useFormItemInputId as Dt } from "./form/hooks/use-form-item.js";
102
- import { formItemValidateStates as Et } from "./form/types.js";
103
- import { MenuTypeEnum as Mt } from "./horizontal-menu/constants.js";
104
- import { initAffixTabs as Lt, useTabsDrag as St } from "./multiple-tabs/use/use-multiple-tabs.js";
105
- import { useTabDropdown as bt } from "./multiple-tabs/use/use-tab-dropdown.js";
106
- import { usePagination as At, vftPaginationKey as Kt } from "./pagination/usePagination.js";
107
- import { default as vt } from "./popper/arrow.vue2.js";
108
- import { default as Gt } from "./popper/content.vue2.js";
109
- import { default as wt } from "./popper/trigger.vue2.js";
110
- import { radioGroupKey as Nt } from "./radio/constants.js";
111
- import { rowContextKey as Ut } from "./row/constants.js";
112
- import { scrollbarContextKey as Ht } from "./scrollbar/constants.js";
113
- import { BAR_MAP as Jt, GAP as Yt, renderThumbStyle as jt } from "./scrollbar/util.js";
114
- import { selectInjectionKey as Wt } from "./select/token.js";
115
- import { sliderContextKey as Zt } from "./slider/constants.js";
116
- import { sliderEmits as of } from "./slider/slider.js";
117
- import { spaceProps as ef } from "./space/space.js";
118
- import { useSpace as ff } from "./space/use-space.js";
119
- import { ACTION_FIELD as pf, CHECKED_FIELD as xf, CREATE_TIME_FIELD as af, DATE_FIELD as nf, DATE_TIME_FIELD as Vf, ID_FIELD as sf, NAME_FIELD as uf, SEQ_FIELD as df, STATUS_FIELD as lf, UPDATE_TIME_FIELD as cf } from "./table/field.js";
120
- import { useTable as If } from "./table/use/use-table.js";
121
- import { addRequire as Df, removeRequire as gf, selectMapping as Ef } from "./table/utils.js";
122
- import { TabsRootContextKey as Mf } from "./tabs/types.js";
123
- import { timePickerDefaultProps as Lf } from "./time-picker/common/props.js";
124
- import { DEFAULT_FORMATS_DATE as yf, DEFAULT_FORMATS_DATEPICKER as bf, DEFAULT_FORMATS_TIME as _f, timeUnits as Af } from "./time-picker/constants.js";
125
- import { buildTimeList as kf, dateEquals as vf, extractDateFormat as Rf, extractTimeFormat as Gf, formatter as Of, makeList as wf, parseDate as zf, rangeArr as Nf, valueEquals as hf } from "./time-picker/utils.js";
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
- pf as ACTION_FIELD,
138
- Jt as BAR_MAP,
139
- xf as CHECKED_FIELD,
140
- af as CREATE_TIME_FIELD,
141
- Oe as CommonPicker,
142
- nf as DATE_FIELD,
143
- Vf as DATE_TIME_FIELD,
144
- yf as DEFAULT_FORMATS_DATE,
145
- bf as DEFAULT_FORMATS_DATEPICKER,
146
- _f as DEFAULT_FORMATS_TIME,
147
- xt as DROPDOWN_INJECTION_KEY,
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
- it as EmptyEnum,
150
+ mt as EmptyEnum,
151
151
  re as FixedSizeGrid,
152
152
  te as FixedSizeList,
153
153
  $f as FormCompEnum,
154
- Yt as GAP,
155
- sf as ID_FIELD,
154
+ Bt as GAP,
155
+ xf as ID_FIELD,
156
156
  go as Icon,
157
- Mt as MenuTypeEnum,
157
+ Dt as MenuTypeEnum,
158
158
  ve as Message,
159
- uf as NAME_FIELD,
160
- Ze as ROOT_PICKER_INJECTION_KEY,
161
- df as SEQ_FIELD,
162
- lf as STATUS_FIELD,
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
- Mf as TabsRootContextKey,
165
- ze as TimePickPanel,
166
- cf as UPDATE_TIME_FIELD,
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
- vt as VftPopperArrow,
239
- Gt as VftPopperContent,
240
- wt as VftPopperTrigger,
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
- Df as addRequire,
271
- kf as buildTimeList,
272
- he as buttonGroupContextKey,
273
- Be as checkboxGroupContextKey,
270
+ cf as addRequire,
271
+ bf as buildTimeList,
272
+ Oe as buttonGroupContextKey,
273
+ ze as checkboxGroupContextKey,
274
274
  rm as componentMap,
275
- qe as configProviderContextKey,
275
+ he as configProviderContextKey,
276
276
  O as createContextMenu,
277
277
  dm as createLoadingDirective,
278
- vf as dateEquals,
279
- $e as datePickerConfig,
280
- rt as datePickerProps,
278
+ _f as dateEquals,
279
+ Qe as datePickerConfig,
280
+ Xe as datePickerProps,
281
281
  em as del,
282
282
  w as destroyContextMenu,
283
- tt as dialogInjectionKey,
283
+ $e as dialogInjectionKey,
284
284
  Yf as dragEventsKey,
285
- Rf as extractDateFormat,
286
- Gf as extractTimeFormat,
287
- Vt as formContextKey,
288
- st as formItemContextKey,
289
- Et as formItemValidateStates,
290
- Of as formatter,
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
- Lt as initAffixTabs,
294
+ Et as initAffixTabs,
295
295
  tm as isDatePicker,
296
296
  fm as isInput,
297
297
  mm as isRangePicker,
298
- wf as makeList,
299
- Je as messageConfig,
298
+ vf as makeList,
299
+ Ue as messageConfig,
300
300
  Cm as messageDefaults,
301
301
  Dm as messageTypes,
302
- zf as parseDate,
303
- je as provideGlobalConfig,
304
- Nt as radioGroupKey,
305
- Nf as rangeArr,
306
- gf as removeRequire,
307
- jt as renderThumbStyle,
308
- Ut as rowContextKey,
309
- Ht as scrollbarContextKey,
310
- Wt as selectInjectionKey,
311
- Ef as selectMapping,
312
- Zt as sliderContextKey,
313
- of as sliderEmits,
314
- ef as spaceProps,
315
- Lf as timePickerDefaultProps,
316
- Af as timeUnits,
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
- mt as useDialog,
320
- dt as useDisabled,
319
+ rt as useDialog,
320
+ nt as useDisabled,
321
321
  jf as useDragNodeHandler,
322
322
  am as useForm,
323
- lt as useFormDisabled,
324
- Ct as useFormItem,
325
- Dt as useFormItemInputId,
326
- ct as useFormSize,
327
- Qe as useGlobalComponentSettings,
328
- We as useGlobalConfig,
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
- At as usePagination,
332
- Tt as useSize,
333
- ff as useSpace,
334
- bt as useTabDropdown,
335
- If as useTable,
336
- St as useTabsDrag,
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
- hf as valueEquals,
339
- Kt as vftPaginationKey,
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 s } from "@vft/utils";
2
- import { tryOnBeforeUnmount as d } from "@vueuse/core";
3
- function f(r) {
4
- const o = ref(null), l = ref(!1), u = ref(null);
5
- let n;
6
- function i(e, a) {
7
- d(() => {
8
- o.value = null, l.value = null;
9
- }), !(unref(l) && e === unref(o)) && (o.value = e, u.value = a, r && e.setProps(s(r)), l.value = !0, n == null || n(), n = watch(
10
- () => r,
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
- r && e.setProps(s(r));
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 = unref(o);
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 [i, {
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) => toRaw(t().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 toRaw(a);
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: () => toRaw(t().getSelectRowKeys()),
51
- getSelectRows: () => toRaw(t().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: () => toRaw(t().getSize()),
60
- updateTableData: (e, a, c) => t().updateTableData(e, a, c),
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: () => toRaw(t().getShowPagination())
69
+ getShowPagination: () => r(t().getShowPagination())
69
70
  }];
70
71
  }
71
72
  export {
72
- f as useTable
73
+ y as useTable
73
74
  };