vft 0.0.391 → 0.0.392

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.
Files changed (119) hide show
  1. package/es/components/autocomplete/autocomplete.vue.d.ts +3 -3
  2. package/es/components/autocomplete/index.d.ts +7 -7
  3. package/es/components/button/button.vue.d.ts +1 -1
  4. package/es/components/button/index.d.ts +12 -12
  5. package/es/components/button/use-button.d.ts +1 -1
  6. package/es/components/carousel/use-carousel.js +1 -1
  7. package/es/components/cascader/cascader.vue.d.ts +2 -2
  8. package/es/components/checkbox/index.d.ts +27 -27
  9. package/es/components/color-picker/index.d.ts +6 -6
  10. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
  11. package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
  12. package/es/components/date-picker/date-picker.d.ts +3 -3
  13. package/es/components/date-picker/index.d.ts +6 -6
  14. package/es/components/date-picker/panel-utils.d.ts +6 -6
  15. package/es/components/date-picker/props/date-picker.d.ts +1 -1
  16. package/es/components/date-picker/props/panel-date-pick.d.ts +1 -1
  17. package/es/components/date-picker/props/panel-date-range.d.ts +1 -1
  18. package/es/components/date-picker/props/shared.d.ts +1 -1
  19. package/es/components/dropdown/index.d.ts +9 -9
  20. package/es/components/form/index.d.ts +18 -18
  21. package/es/components/index.js +163 -155
  22. package/es/components/input/index.d.ts +5 -5
  23. package/es/components/input/input.vue.d.ts +2 -2
  24. package/es/components/input/input.vue2.js +4 -4
  25. package/es/components/input-number/index.d.ts +1 -1
  26. package/es/components/input-number/input-number.vue.d.ts +1 -1
  27. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  28. package/es/components/input-tag/input-tag.vue.d.ts +4 -4
  29. package/es/components/radio/index.d.ts +18 -18
  30. package/es/components/search/index.d.ts +3 -3
  31. package/es/components/search/search.vue.d.ts +1 -1
  32. package/es/components/select/index.d.ts +2 -2
  33. package/es/components/select/select.vue.d.ts +2 -2
  34. package/es/components/slider/index.d.ts +1 -1
  35. package/es/components/slider/slider.vue.d.ts +1 -1
  36. package/es/components/super-form/component-map.d.ts +45 -4
  37. package/es/components/super-form/component-map.js +60 -30
  38. package/es/components/super-form/index.js +20 -12
  39. package/es/components/super-form/super-form-item.vue2.js +6 -7
  40. package/es/components/super-form/types.d.ts +3 -3
  41. package/es/components/super-form/types.js +1 -5
  42. package/es/components/super-form/use/helper.d.ts +3 -3
  43. package/es/components/super-form/use/helper.js +32 -37
  44. package/es/components/super-form/use/use-auto-focus.js +15 -19
  45. package/es/components/super-form/use/use-form-events.js +67 -70
  46. package/es/components/switch/index.d.ts +6 -6
  47. package/es/components/table/index.d.ts +9 -9
  48. package/es/components/table/table.vue2.js +22 -22
  49. package/es/components/tabs/index.d.ts +2 -2
  50. package/es/components/tabs/tabs.vue.d.ts +2 -2
  51. package/es/components/time-picker/common/picker.vue.d.ts +2 -2
  52. package/es/components/tree/tree-node.vue.d.ts +18 -18
  53. package/es/index.js +1 -2
  54. package/es/package.json.d.ts +1 -1
  55. package/es/package.json.js +1 -1
  56. package/es/utils/index.d.ts +0 -1
  57. package/es/utils/index.js +71 -80
  58. package/es/utils/vue/vnode.js +1 -1
  59. package/lib/components/autocomplete/autocomplete.vue.d.ts +3 -3
  60. package/lib/components/autocomplete/index.d.ts +7 -7
  61. package/lib/components/button/button.vue.d.ts +1 -1
  62. package/lib/components/button/index.d.ts +12 -12
  63. package/lib/components/button/use-button.d.ts +1 -1
  64. package/lib/components/cascader/cascader.vue.d.ts +2 -2
  65. package/lib/components/checkbox/index.d.ts +27 -27
  66. package/lib/components/color-picker/index.d.ts +6 -6
  67. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +2 -2
  68. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +2 -2
  69. package/lib/components/date-picker/date-picker.d.ts +3 -3
  70. package/lib/components/date-picker/index.d.ts +6 -6
  71. package/lib/components/date-picker/panel-utils.d.ts +6 -6
  72. package/lib/components/date-picker/props/date-picker.d.ts +1 -1
  73. package/lib/components/date-picker/props/panel-date-pick.d.ts +1 -1
  74. package/lib/components/date-picker/props/panel-date-range.d.ts +1 -1
  75. package/lib/components/date-picker/props/shared.d.ts +1 -1
  76. package/lib/components/dropdown/index.d.ts +9 -9
  77. package/lib/components/form/index.d.ts +18 -18
  78. package/lib/components/index.cjs +1 -1
  79. package/lib/components/input/index.d.ts +5 -5
  80. package/lib/components/input/input.vue.d.ts +2 -2
  81. package/lib/components/input/input.vue2.cjs +1 -1
  82. package/lib/components/input-number/index.d.ts +1 -1
  83. package/lib/components/input-number/input-number.vue.d.ts +1 -1
  84. package/lib/components/input-tag/input-tag.vue.d.ts +4 -4
  85. package/lib/components/radio/index.d.ts +18 -18
  86. package/lib/components/search/index.d.ts +3 -3
  87. package/lib/components/search/search.vue.d.ts +1 -1
  88. package/lib/components/select/index.d.ts +2 -2
  89. package/lib/components/select/select.vue.d.ts +2 -2
  90. package/lib/components/slider/index.d.ts +1 -1
  91. package/lib/components/slider/slider.vue.d.ts +1 -1
  92. package/lib/components/super-form/component-map.cjs +1 -1
  93. package/lib/components/super-form/component-map.d.ts +45 -4
  94. package/lib/components/super-form/index.cjs +1 -1
  95. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  96. package/lib/components/super-form/types.cjs +1 -1
  97. package/lib/components/super-form/types.d.ts +3 -3
  98. package/lib/components/super-form/use/helper.cjs +1 -1
  99. package/lib/components/super-form/use/helper.d.ts +3 -3
  100. package/lib/components/super-form/use/use-auto-focus.cjs +1 -1
  101. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  102. package/lib/components/switch/index.d.ts +6 -6
  103. package/lib/components/table/index.d.ts +9 -9
  104. package/lib/components/table/table.vue2.cjs +1 -1
  105. package/lib/components/tabs/index.d.ts +2 -2
  106. package/lib/components/tabs/tabs.vue.d.ts +2 -2
  107. package/lib/components/time-picker/common/picker.vue.d.ts +2 -2
  108. package/lib/components/tree/tree-node.vue.d.ts +18 -18
  109. package/lib/index.cjs +1 -1
  110. package/lib/package.json.cjs +1 -1
  111. package/lib/package.json.d.ts +1 -1
  112. package/lib/utils/index.cjs +1 -1
  113. package/lib/utils/index.d.ts +0 -1
  114. package/package.json +3 -3
  115. package/web-types.json +1 -1
  116. package/es/utils/form-register.d.ts +0 -43
  117. package/es/utils/form-register.js +0 -68
  118. package/lib/utils/form-register.cjs +0 -1
  119. package/lib/utils/form-register.d.ts +0 -43
@@ -1,42 +1,37 @@
1
- import { isNumber as i } from "@vft/utils";
2
- import { isInput as n } from "../component-map.js";
3
- import { FormCompEnum as r } from "../../../utils/form-register.js";
4
- import "@vueuse/core";
5
- import "../../config-provider/hooks/use-global-config.js";
6
- import "vue";
7
- import "lodash-es";
8
- function A(e, E = "") {
1
+ import { isNumber as n } from "@vft/utils";
2
+ import { FormCompEnum as e, isInput as u } from "../component-map.js";
3
+ function T(r, E = "") {
9
4
  return E = (E || "").replace(":", "") || "", [
10
- r.INPUT,
11
- r.INPUT_NUMBER,
12
- r.TEXTAREA,
13
- r.AUTOCOMPLETE
14
- ].includes(e) ? "请输入" + E : [r.PASSWORD].includes(e) ? "请输入密码" : [
15
- r.SELECT,
16
- r.RADIO,
17
- r.RADIO_SINGLE,
18
- r.RADIO_BUTTON,
19
- r.Cascader,
20
- r.ColorPicker,
21
- r.CHECKBOX,
22
- r.CHECKBOX_BUTTON
23
- ].includes(e) ? "请选择" + E : [r.CHECKBOX_SINGLE].includes(e) ? "请勾选" + E : [r.SEARCH].includes(e) ? "请输入要搜索的内容" : [r.INPUT_TAG].includes(e) ? "请输入标签内容" : [r.Upload].includes(e) ? "请选择上传文件" : [r.Slider].includes(e) ? "请拖动滑块" : [
24
- r.TIME_PICKER,
25
- r.YEAR_PICKER,
26
- r.MONTH_PICKER,
27
- r.DATE_PICKER,
28
- r.DATES_PICKER,
29
- r.DATETIME_PICKER,
30
- r.WEEK_PICKER,
31
- r.DATETIMERANGE_PICKER,
32
- r.DATERANGE_PICKER,
33
- r.MONTHRANGE_PICKER
34
- ].includes(e) ? "请选择时间" : "";
5
+ e.INPUT,
6
+ e.INPUT_NUMBER,
7
+ e.TEXTAREA,
8
+ e.AUTOCOMPLETE
9
+ ].includes(r) ? "请输入" + E : [e.PASSWORD].includes(r) ? "请输入密码" : [
10
+ e.SELECT,
11
+ e.RADIO,
12
+ e.RADIO_SINGLE,
13
+ e.RADIO_BUTTON,
14
+ e.Cascader,
15
+ e.ColorPicker,
16
+ e.CHECKBOX,
17
+ e.CHECKBOX_BUTTON
18
+ ].includes(r) ? "请选择" + E : [e.CHECKBOX_SINGLE].includes(r) ? "请勾选" + E : [e.SEARCH].includes(r) ? "请输入要搜索的内容" : [e.INPUT_TAG].includes(r) ? "请输入标签内容" : [e.Upload].includes(r) ? "请选择上传文件" : [e.Slider].includes(r) ? "请拖动滑块" : [
19
+ e.TIME_PICKER,
20
+ e.YEAR_PICKER,
21
+ e.MONTH_PICKER,
22
+ e.DATE_PICKER,
23
+ e.DATES_PICKER,
24
+ e.DATETIME_PICKER,
25
+ e.WEEK_PICKER,
26
+ e.DATETIMERANGE_PICKER,
27
+ e.DATERANGE_PICKER,
28
+ e.MONTHRANGE_PICKER
29
+ ].includes(r) ? "请选择时间" : "";
35
30
  }
36
- function t(e, E) {
37
- return e && n(e) && E && i(E) ? `${E}` : E;
31
+ function s(r, E) {
32
+ return r && u(r) && E && n(E) ? `${E}` : E;
38
33
  }
39
34
  export {
40
- A as createPlaceholderMessage,
41
- t as handleInputNumberValue
35
+ T as createPlaceholderMessage,
36
+ s as handleInputNumberValue
42
37
  };
@@ -1,28 +1,24 @@
1
- import { watchEffect as m, unref as t, nextTick as u } from "vue";
2
- import { FormCompEnum as p } from "../../../utils/form-register.js";
3
- import "@vueuse/core";
4
- import "@vft/utils";
5
- import "../../config-provider/hooks/use-global-config.js";
6
- import "lodash-es";
7
- async function w({
8
- getSchema: n,
9
- getProps: c,
10
- formElRef: s,
11
- isInitedDefault: f
1
+ import { watchEffect as u, unref as t, nextTick as m } from "vue";
2
+ import { FormCompEnum as a } from "../component-map.js";
3
+ async function y({
4
+ getSchema: c,
5
+ getProps: s,
6
+ formElRef: f,
7
+ isInitedDefault: i
12
8
  }) {
13
- m(async () => {
14
- if (t(f) || !t(c).autoFocusFirstItem)
9
+ u(async () => {
10
+ if (t(i) || !t(s).autoFocusFirstItem)
15
11
  return;
16
- await u();
17
- const r = t(n), o = t(s), e = o?.$el;
18
- if (!o || !e || !r || r.length === 0 || r[0].type !== p.INPUT)
12
+ await m();
13
+ const r = t(c), o = t(f), e = o?.$el;
14
+ if (!o || !e || !r || r.length === 0 || r[0].type !== a.INPUT)
19
15
  return;
20
- const i = e.querySelector(
16
+ const n = e.querySelector(
21
17
  ".vft-row:first-child input"
22
18
  );
23
- i && i?.focus();
19
+ n && n?.focus();
24
20
  });
25
21
  }
26
22
  export {
27
- w as useAutoFocus
23
+ y as useAutoFocus
28
24
  };
@@ -1,68 +1,65 @@
1
- import { isDef as H, isFunction as j, isString as A, isObject as V, isArray as m, deepMerge as nt, findDifferentValuesForObj as rt, isNullOrUndefined as J, isEmpty as st, isEmptyObject as lt } from "@vft/utils";
1
+ import { isDef as H, isFunction as j, isString as A, isObject as V, isArray as I, deepMerge as nt, findDifferentValuesForObj as rt, isNullOrUndefined as J, isEmpty as st, isEmptyObject as lt } from "@vft/utils";
2
2
  import { formatToDate as Q } from "@vft/utils/date";
3
- import { get as ot, cloneDeep as I, uniqBy as at, isEqual as ft, set as X } from "lodash-es";
3
+ import { get as ot, cloneDeep as m, uniqBy as at, isEqual as ct, set as X } from "lodash-es";
4
4
  import { unref as n, toRaw as x, nextTick as W } from "vue";
5
- import { FormCompEnum as S } from "../../../utils/form-register.js";
6
- import "@vueuse/core";
7
- import "../../config-provider/hooks/use-global-config.js";
8
- import { isInput as ct, isDatePicker as ut } from "../component-map.js";
5
+ import { isInput as ft, FormCompEnum as S, isDatePicker as ut } from "../component-map.js";
9
6
  import { handleInputNumberValue as dt } from "./helper.js";
10
- function _(p, y) {
11
- const { show: o, ifShow: f } = p;
12
- let h = !0, c = !0;
13
- return typeof o == "boolean" ? h = o : typeof o == "function" && (h = o({
14
- field: p.field,
7
+ function _(h, y) {
8
+ const { show: o, ifShow: c } = h;
9
+ let p = !0, f = !0;
10
+ return typeof o == "boolean" ? p = o : typeof o == "function" && (p = o({
11
+ field: h.field,
15
12
  model: y,
16
13
  values: {
17
14
  ...y
18
15
  },
19
- schema: p
20
- })), typeof f == "boolean" ? c = f : typeof f == "function" && (c = f({
21
- field: p.field,
16
+ schema: h
17
+ })), typeof c == "boolean" ? f = c : typeof c == "function" && (f = c({
18
+ field: h.field,
22
19
  model: y,
23
20
  values: {
24
21
  ...y
25
22
  },
26
- schema: p
27
- })), h && c;
23
+ schema: h
24
+ })), p && f;
28
25
  }
29
- function pt(p, y = {}) {
26
+ function ht(h, y = {}) {
30
27
  const o = /^\[(.+)\]$/;
31
- if (o.test(p)) {
32
- const f = p.match(o);
33
- if (f && f[1]) {
34
- const h = f[1].split(",");
35
- if (!h.length)
28
+ if (o.test(h)) {
29
+ const c = h.match(o);
30
+ if (c && c[1]) {
31
+ const p = c[1].split(",");
32
+ if (!p.length)
36
33
  return;
37
- const c = [];
38
- return h.forEach((F, B) => {
39
- X(c, B, y[F.trim()]);
40
- }), c.filter(Boolean).length ? c : void 0;
34
+ const f = [];
35
+ return p.forEach((F, B) => {
36
+ X(f, B, y[F.trim()]);
37
+ }), f.filter(Boolean).length ? f : void 0;
41
38
  }
42
39
  }
43
40
  }
44
- function ht(p, y = {}) {
41
+ function pt(h, y = {}) {
45
42
  const o = /^\{(.+)\}$/;
46
- if (o.test(p)) {
47
- const f = p.match(o);
48
- if (f && f[1]) {
49
- const h = f[1].split(",");
50
- if (!h.length)
43
+ if (o.test(h)) {
44
+ const c = h.match(o);
45
+ if (c && c[1]) {
46
+ const p = c[1].split(",");
47
+ if (!p.length)
51
48
  return;
52
- const c = {};
53
- return h.forEach((F) => {
54
- X(c, F.trim(), y[F.trim()]);
55
- }), Object.values(c).filter(Boolean).length ? c : void 0;
49
+ const f = {};
50
+ return p.forEach((F) => {
51
+ X(f, F.trim(), y[F.trim()]);
52
+ }), Object.values(f).filter(Boolean).length ? f : void 0;
56
53
  }
57
54
  }
58
55
  }
59
- function It({
60
- emit: p,
56
+ function Et({
57
+ emit: h,
61
58
  getProps: y,
62
59
  formModel: o,
63
- getSchema: f,
64
- defaultValueRef: h,
65
- formElRef: c,
60
+ getSchema: c,
61
+ defaultValueRef: p,
62
+ formElRef: f,
66
63
  schemaRef: F,
67
64
  handleFormValues: B,
68
65
  initValues: T
@@ -70,29 +67,29 @@ function It({
70
67
  async function Y(t) {
71
68
  const { resetFunc: e, submitOnReset: s } = n(y);
72
69
  e && j(e) && await e();
73
- const r = n(c);
70
+ const r = n(f);
74
71
  if (r) {
75
72
  if (t?.length)
76
73
  return r.resetFields(t);
77
74
  Object.keys(o).forEach((a) => {
78
- const l = n(f).find((u) => u.field === a), i = I(h.value[a]);
79
- o[a] = ct(l?.type) ? i || "" : i;
80
- }), W(() => D()), p("reset", x(o)), s && await U();
75
+ const l = n(c).find((u) => u.field === a), i = m(p.value[a]);
76
+ o[a] = ft(l?.type) ? i || "" : i;
77
+ }), W(() => D()), h("reset", x(o)), s && await U();
81
78
  }
82
79
  }
83
80
  async function q(t, e = !0) {
84
- const s = n(f).map((i) => i.field).filter(Boolean), r = ".", a = s.filter(
81
+ const s = n(c).map((i) => i.field).filter(Boolean), r = ".", a = s.filter(
85
82
  (i) => String(i).indexOf(r) >= 0
86
83
  ), l = [];
87
84
  s.forEach((i) => {
88
- const u = n(f).find((d) => d.field === i);
85
+ const u = n(c).find((d) => d.field === i);
89
86
  let b = ot(t, i);
90
87
  const C = Reflect.has(t, i);
91
88
  b = dt(u?.type, b);
92
89
  const { componentProps: z } = u || {};
93
90
  let w = z;
94
91
  typeof z == "function" && (w = w({ formModel: n(o) }));
95
- const G = pt(i, t) || ht(i, t);
92
+ const G = ht(i, t) || pt(i, t);
96
93
  if (C || G) {
97
94
  const d = G || b;
98
95
  if (M(i))
@@ -112,8 +109,8 @@ function It({
112
109
  const v = d.split(".").reduce((E, it) => E[it], t);
113
110
  H(v) && (n(o)[d] = n(v), l.push(d));
114
111
  } catch {
115
- H(h.value[d]) && (n(o)[d] = I(
116
- n(h.value[d])
112
+ H(p.value[d]) && (n(o)[d] = m(
113
+ n(p.value[d])
117
114
  ));
118
115
  }
119
116
  });
@@ -123,7 +120,7 @@ function It({
123
120
  });
124
121
  }
125
122
  async function Z(t) {
126
- const e = I(n(f));
123
+ const e = m(n(c));
127
124
  if (!t)
128
125
  return;
129
126
  let s = A(t) ? [t] : t;
@@ -139,7 +136,7 @@ function It({
139
136
  }
140
137
  }
141
138
  async function K(t, e, s = !1) {
142
- const r = I(n(f)), a = r.findIndex((i) => i.field === e), l = V(t) ? [t] : t;
139
+ const r = m(n(c)), a = r.findIndex((i) => i.field === e), l = V(t) ? [t] : t;
143
140
  if (!e || a === -1 || s) {
144
141
  s ? r.unshift(...l) : r.push(...l), F.value = r, O(t);
145
142
  return;
@@ -148,7 +145,7 @@ function It({
148
145
  }
149
146
  async function R(t) {
150
147
  let e = [];
151
- if (V(t) && e.push(t), m(t) && (e = [...t]), !e.every(
148
+ if (V(t) && e.push(t), I(t) && (e = [...t]), !e.every(
152
149
  (r) => r.type === S.DIVIDER || Reflect.has(r, "field") && r.field
153
150
  )) {
154
151
  console.error(
@@ -160,7 +157,7 @@ function It({
160
157
  }
161
158
  async function N(t) {
162
159
  let e = [];
163
- if (V(t) && e.push(t), m(t) && (e = [...t]), !e.every(
160
+ if (V(t) && e.push(t), I(t) && (e = [...t]), !e.every(
164
161
  (l) => l.type === S.DIVIDER || Reflect.has(l, "field") && l.field
165
162
  )) {
166
163
  console.error(
@@ -169,7 +166,7 @@ function It({
169
166
  return;
170
167
  }
171
168
  const r = [], a = [];
172
- n(f).forEach((l) => {
169
+ n(c).forEach((l) => {
173
170
  let i;
174
171
  if (e.forEach((u) => {
175
172
  l.field === u.field && (i = u), u.defaultValue && u.field && r.push(u.field);
@@ -181,46 +178,46 @@ function It({
181
178
  }), O(a, r), F.value = at(a, "field");
182
179
  }
183
180
  function O(t, e, s = !0) {
184
- if (m(e) && e?.length === 0)
181
+ if (I(e) && e?.length === 0)
185
182
  return;
186
183
  let r = [];
187
- V(t) && r.push(t), m(t) && (r = [...t]);
184
+ V(t) && r.push(t), I(t) && (r = [...t]);
188
185
  const a = {}, l = g();
189
186
  r.forEach((i) => {
190
187
  i.type !== S.DIVIDER && Reflect.has(i, "field") && i.field && !J(i.defaultValue) && (!(i.field in l) || J(l[i.field]) || st(l[i.field])) && (a[i.field] = i.defaultValue);
191
188
  }), lt(a) || q(a, s);
192
189
  }
193
190
  function g(t = !1) {
194
- if (!n(c)) return {};
191
+ if (!n(f)) return {};
195
192
  const s = B(x(n(o)));
196
193
  if (t)
197
194
  return s;
198
- const r = n(f).filter((l) => _(l, n(o))).map((l) => l.field).filter(Boolean), a = {};
195
+ const r = n(c).filter((l) => _(l, n(o))).map((l) => l.field).filter(Boolean), a = {};
199
196
  return r.forEach((l) => {
200
197
  l in s && (a[l] = s[l]);
201
198
  }), a;
202
199
  }
203
200
  function k(t) {
204
- return n(c) ? x(n(o))[t] : {};
201
+ return n(f) ? x(n(o))[t] : {};
205
202
  }
206
203
  function M(t) {
207
- return n(f).some((e) => e.field === t ? ut(e.type) : !1);
204
+ return n(c).some((e) => e.field === t ? ut(e.type) : !1);
208
205
  }
209
206
  async function $(t) {
210
- return t || (t = n(f).filter((s) => _(s, n(o))).map((s) => s.field).filter(Boolean)), n(c)?.validateField(t);
207
+ return t || (t = n(c).filter((s) => _(s, n(o))).map((s) => s.field).filter(Boolean)), n(f)?.validateField(t);
211
208
  }
212
209
  async function P(t) {
213
- return t || (t = n(f).filter((s) => _(s, n(o))).map((s) => s.field).filter(Boolean)), await n(c)?.validate(t, () => {
210
+ return t || (t = n(c).filter((s) => _(s, n(o))).map((s) => s.field).filter(Boolean)), await n(f)?.validate(t, () => {
214
211
  });
215
212
  }
216
213
  async function D(t) {
217
- await n(c)?.clearValidate(t);
214
+ await n(f)?.clearValidate(t);
218
215
  }
219
216
  async function tt(t, e) {
220
217
  await D(t), await N([{ field: t, itemProps: { error: e } }]);
221
218
  }
222
219
  async function et(t, e) {
223
- await n(c)?.scrollToField(t, e);
220
+ await n(f)?.scrollToField(t, e);
224
221
  }
225
222
  async function U(t) {
226
223
  const { autoCleanErrorMessage: e, watchDataIsChange: s } = n(y);
@@ -230,16 +227,16 @@ function It({
230
227
  await r();
231
228
  return;
232
229
  }
233
- if (n(c))
230
+ if (n(f))
234
231
  try {
235
232
  if (!await P())
236
233
  return;
237
234
  const u = g();
238
235
  if (s) {
239
- const b = ft(T.value, u), C = rt(T.value, u);
240
- p("submit", u, !b, C);
236
+ const b = ct(T.value, u), C = rt(T.value, u);
237
+ h("submit", u, !b, C);
241
238
  } else
242
- p("submit", u);
239
+ h("submit", u);
243
240
  } catch (i) {
244
241
  if (i?.outOfDate === !1 && i?.errorFields)
245
242
  return;
@@ -264,5 +261,5 @@ function It({
264
261
  };
265
262
  }
266
263
  export {
267
- It as useFormEvents
264
+ Et as useFormEvents
268
265
  };
@@ -1,7 +1,4 @@
1
1
  export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- size: {
3
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
4
- };
5
2
  disabled: {
6
3
  type: import("vue").PropType<boolean>;
7
4
  default: boolean;
@@ -22,6 +19,9 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
22
19
  id: {
23
20
  type: import("vue").PropType<string>;
24
21
  };
22
+ size: {
23
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
24
+ };
25
25
  modelValue: {
26
26
  type: import("vue").PropType<string | number | boolean>;
27
27
  default: boolean;
@@ -78,9 +78,6 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
78
78
  "update:modelValue": (...args: any[]) => void;
79
79
  change: (...args: any[]) => void;
80
80
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
- size: {
82
- type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
83
- };
84
81
  disabled: {
85
82
  type: import("vue").PropType<boolean>;
86
83
  default: boolean;
@@ -101,6 +98,9 @@ export declare const VftSwitch: import("vft/es/utils").SFCWithInstall<import("vu
101
98
  id: {
102
99
  type: import("vue").PropType<string>;
103
100
  };
101
+ size: {
102
+ type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
103
+ };
104
104
  modelValue: {
105
105
  type: import("vue").PropType<string | number | boolean>;
106
106
  default: boolean;
@@ -1,8 +1,5 @@
1
1
  export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
2
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
3
- size: {
4
- type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
5
- };
6
3
  data: {
7
4
  type: import("vue").PropType<import("vxe-table").VxeTablePropTypes.Data<any>>;
8
5
  };
@@ -32,6 +29,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
32
29
  params: {
33
30
  type: import("vue").PropType<any>;
34
31
  };
32
+ size: {
33
+ type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
34
+ };
35
35
  immediate: {
36
36
  type: import("vue").PropType<boolean>;
37
37
  default: boolean;
@@ -686,9 +686,6 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
686
686
  M: {};
687
687
  Defaults: {};
688
688
  }, Readonly<import("vue").ExtractPropTypes<{
689
- size: {
690
- type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
691
- };
692
689
  data: {
693
690
  type: import("vue").PropType<import("vxe-table").VxeTablePropTypes.Data<any>>;
694
691
  };
@@ -718,6 +715,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
718
715
  params: {
719
716
  type: import("vue").PropType<any>;
720
717
  };
718
+ size: {
719
+ type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
720
+ };
721
721
  immediate: {
722
722
  type: import("vue").PropType<boolean>;
723
723
  default: boolean;
@@ -1256,9 +1256,6 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1256
1256
  __isTeleport?: never;
1257
1257
  __isSuspense?: never;
1258
1258
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
1259
- size: {
1260
- type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
1261
- };
1262
1259
  data: {
1263
1260
  type: import("vue").PropType<import("vxe-table").VxeTablePropTypes.Data<any>>;
1264
1261
  };
@@ -1288,6 +1285,9 @@ export declare const VftTable: import("vft/es/utils").SFCWithInstall<{
1288
1285
  params: {
1289
1286
  type: import("vue").PropType<any>;
1290
1287
  };
1288
+ size: {
1289
+ type: import("vue").PropType<import("vxe-table").VxeComponentSizeType>;
1290
+ };
1291
1291
  immediate: {
1292
1292
  type: import("vue").PropType<boolean>;
1293
1293
  default: boolean;
@@ -2,24 +2,24 @@ import { defineComponent as T, useAttrs as ee, ref as d, getCurrentInstance as a
2
2
  import { VftEmpty as se } from "../empty/index.js";
3
3
  import { vLoading as ge } from "../loading/directive.js";
4
4
  import { deepMerge as _, omit as de, isFunction as ue } from "@vft/utils";
5
- import { FormCompEnum as fe } from "../../utils/form-register.js";
6
5
  import "@vueuse/core";
7
6
  import "../config-provider/hooks/use-global-config.js";
8
7
  import "lodash-es";
9
- import { useNamespace as me } from "../../hooks/use-namespace/index.js";
8
+ import { useNamespace as fe } from "../../hooks/use-namespace/index.js";
10
9
  import "../../hooks/use-model-toggle/index.js";
11
10
  import "@popperjs/core";
12
11
  import "../../hooks/use-z-index/index.js";
13
12
  import "../icon/index.js";
14
- import { VftPagination as pe } from "../pagination/index.js";
15
- import { VftSuperForm as he } from "../super-form/index.js";
16
- import { VxeGrid as be } from "vxe-table";
17
- import Ce from "xe-utils";
18
- import { PAGE_SIZE as ye } from "./constants.js";
19
- import { useColumns as we } from "./use/use-columns.js";
20
- import { useDataSource as ve } from "./use/use-data-source.js";
21
- import { useLoading as xe } from "./use/use-loading.js";
22
- import { usePagination as ke } from "./use/use-pagination.js";
13
+ import { VftPagination as me } from "../pagination/index.js";
14
+ import { VftSuperForm as pe } from "../super-form/index.js";
15
+ import { VxeGrid as he } from "vxe-table";
16
+ import be from "xe-utils";
17
+ import { PAGE_SIZE as Ce } from "./constants.js";
18
+ import { useColumns as ye } from "./use/use-columns.js";
19
+ import { useDataSource as we } from "./use/use-data-source.js";
20
+ import { useLoading as ve } from "./use/use-loading.js";
21
+ import { usePagination as xe } from "./use/use-pagination.js";
22
+ import { FormCompEnum as ke } from "../super-form/component-map.js";
23
23
  import { useForm as Se } from "../super-form/use/use-form.js";
24
24
  import { EmptyEnum as Be } from "../empty/constants.js";
25
25
  const ze = {
@@ -34,7 +34,7 @@ const ze = {
34
34
  },
35
35
  api: {},
36
36
  pageSize: {
37
- default: ye
37
+ default: Ce
38
38
  },
39
39
  total: {},
40
40
  rowkey: {
@@ -387,18 +387,18 @@ const ze = {
387
387
  expose: F,
388
388
  emit: A
389
389
  }) {
390
- const i = me("table"), l = A, E = ee(), p = d(), N = d([]), s = d(), O = ae(), t = u(() => _(O.props, e(s))), {
390
+ const i = fe("table"), l = A, E = ee(), p = d(), N = d([]), s = d(), O = ae(), t = u(() => _(O.props, e(s))), {
391
391
  getLoading: V,
392
392
  setLoading: I
393
- } = xe(t), {
393
+ } = ve(t), {
394
394
  getPaginationInfo: c,
395
395
  setPagination: g,
396
396
  getShowPagination: h,
397
397
  getCurrentPage: q
398
- } = ke(t), {
398
+ } = xe(t), {
399
399
  getViewColumns: G,
400
400
  setColumns: K
401
- } = we(t);
401
+ } = ye(t);
402
402
  te(() => q(), (a) => {
403
403
  oe(() => {
404
404
  b({
@@ -428,7 +428,7 @@ const ze = {
428
428
  getDataSource: W,
429
429
  getRawDataSource: w,
430
430
  tableSearch: v
431
- } = ve(t, {
431
+ } = we(t, {
432
432
  tableData: N,
433
433
  setLoading: I,
434
434
  getPaginationInfo: c,
@@ -565,7 +565,7 @@ const ze = {
565
565
  "toolbar-tool-click",
566
566
  "zoom"
567
567
  ].forEach((a) => {
568
- const o = Ce.camelCase(`on-${a}`);
568
+ const o = be.camelCase(`on-${a}`);
569
569
  k[o] = (...n) => l(a, ...n);
570
570
  });
571
571
  const r = u(() => {
@@ -600,7 +600,7 @@ const ze = {
600
600
  const Z = {
601
601
  field: "_filterTableData",
602
602
  label: "",
603
- type: fe.SEARCH,
603
+ type: ke.SEARCH,
604
604
  componentProps: ({}) => ({
605
605
  onChange: (a) => {
606
606
  B({
@@ -637,11 +637,11 @@ const ze = {
637
637
  ...S
638
638
  }), (a, o) => (f(), re("div", {
639
639
  class: ne(e(i).b())
640
- }, [z(e(be), D({
640
+ }, [z(e(he), D({
641
641
  ref_key: "xGrid",
642
642
  ref: p
643
643
  }, r.value), {
644
- toolbarButtons: m(() => [H(a.$slots, "toolbar-left"), r.value?.formOptions?.showActionForm ? (f(), R(e(he), {
644
+ toolbarButtons: m(() => [H(a.$slots, "toolbar-left"), r.value?.formOptions?.showActionForm ? (f(), R(e(pe), {
645
645
  key: 0,
646
646
  onRegister: e(J),
647
647
  onSubmit: B,
@@ -652,7 +652,7 @@ const ze = {
652
652
  }, null, 8, ["type"])]),
653
653
  loading: m(() => [ce(ie("div", ze, null, 512), [[e(ge), r.value.loading]])]),
654
654
  _: 3
655
- }, 16), r.value.showPager && e(h) ? (f(), R(e(pe), D({
655
+ }, 16), r.value.showPager && e(h) ? (f(), R(e(me), D({
656
656
  key: 0
657
657
  }, e(c), {
658
658
  class: [e(i).e("pager"), e(i).m("pager-" + e(c).pagePlacement)],
@@ -89,7 +89,7 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
89
89
  tabChange: (name: string | number) => void;
90
90
  tabRemove: (name: string | number) => void;
91
91
  tabAdd: () => void;
92
- edit: (paneName: string | number | undefined, action: "add" | "remove") => void;
92
+ edit: (paneName: string | number | undefined, action: "remove" | "add") => void;
93
93
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
94
94
  closable: {
95
95
  type: import("vue").PropType<boolean>;
@@ -178,7 +178,7 @@ export declare const VftTabs: import("vft/es/utils").SFCWithInstall<import("vue"
178
178
  isFocusInsidePane: () => boolean | undefined;
179
179
  }, index: number, ev: Event) => any) | undefined;
180
180
  onTabChange?: ((name: string | number) => any) | undefined;
181
- onEdit?: ((paneName: string | number | undefined, action: "add" | "remove") => any) | undefined;
181
+ onEdit?: ((paneName: string | number | undefined, action: "remove" | "add") => any) | undefined;
182
182
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & {
183
183
  TabPane: {
184
184
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
70
70
  tabChange: (name: string | number) => void;
71
71
  tabRemove: (name: string | number) => void;
72
72
  tabAdd: () => void;
73
- edit: (paneName: string | number | undefined, action: "add" | "remove") => void;
73
+ edit: (paneName: string | number | undefined, action: "remove" | "add") => void;
74
74
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TabsProps>>> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((name: string | number) => any) | undefined;
76
76
  onTabClick?: ((pane: {
@@ -110,7 +110,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
110
110
  isFocusInsidePane: () => boolean | undefined;
111
111
  }, index: number, ev: Event) => any) | undefined;
112
112
  onTabChange?: ((name: string | number) => any) | undefined;
113
- onEdit?: ((paneName: string | number | undefined, action: "add" | "remove") => any) | undefined;
113
+ onEdit?: ((paneName: string | number | undefined, action: "remove" | "add") => any) | undefined;
114
114
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
115
115
  export default _default;
116
116
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;