vft 0.0.499 → 0.0.501

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 (85) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
  3. package/es/components/autocomplete/index.d.ts +18 -18
  4. package/es/components/button/index.d.ts +9 -9
  5. package/es/components/carousel/use-carousel.js +1 -1
  6. package/es/components/config-provider/hooks/use-global-config.js +3 -3
  7. package/es/components/image-viewer/image-viewer.vue.d.ts +2 -0
  8. package/es/components/image-viewer/image-viewer.vue2.js +89 -85
  9. package/es/components/image-viewer/index.d.ts +18 -0
  10. package/es/components/input/input.vue2.js +4 -4
  11. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  12. package/es/components/popconfirm/index.d.ts +15 -15
  13. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  14. package/es/components/popper/index.d.ts +3 -3
  15. package/es/components/select/index.d.ts +15 -15
  16. package/es/components/select/select.vue.d.ts +15 -15
  17. package/es/components/select/useSelect.d.ts +12 -12
  18. package/es/components/super-form/style/css.d.ts +1 -0
  19. package/es/components/super-form/style/index.d.ts +1 -0
  20. package/es/components/super-form/super-form-item.vue2.js +360 -325
  21. package/es/components/super-form/types.d.ts +3 -1
  22. package/es/components/table/field.js +32 -33
  23. package/es/components/table/table.vue2.js +51 -49
  24. package/es/components/table/use/use-data-source.js +166 -143
  25. package/es/components/table/use/use-loading.js +11 -11
  26. package/es/components/table/use/use-table.js +7 -6
  27. package/es/components/tooltip/index.d.ts +3 -3
  28. package/es/components/tree/index.d.ts +5 -5
  29. package/es/components/tree/tree.vue.d.ts +2 -2
  30. package/es/components/tree-select/select.js +24 -24
  31. package/es/components/tree-select/tree-select-option.js +18 -7
  32. package/es/components/tree-select/tree-select.vue2.js +28 -26
  33. package/es/components/tree-select/tree.js +27 -26
  34. package/es/components/upload/index.d.ts +15 -15
  35. package/es/components/upload/upload-content.vue.d.ts +1 -1
  36. package/es/components/upload/upload.vue.d.ts +1 -1
  37. package/es/hooks/use-z-index/index.js +3 -3
  38. package/es/package.json.d.ts +1 -1
  39. package/es/package.json.js +1 -1
  40. package/es/utils/form-register.d.ts +1 -0
  41. package/es/utils/form-register.js +5 -4
  42. package/es/utils/vue/vnode.js +1 -1
  43. package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
  44. package/lib/components/autocomplete/index.d.ts +18 -18
  45. package/lib/components/button/index.d.ts +9 -9
  46. package/lib/components/image-viewer/image-viewer.vue.d.ts +2 -0
  47. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  48. package/lib/components/image-viewer/index.d.ts +18 -0
  49. package/lib/components/input/input.vue2.cjs +1 -1
  50. package/lib/components/popconfirm/index.d.ts +15 -15
  51. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  52. package/lib/components/popper/index.d.ts +3 -3
  53. package/lib/components/select/index.d.ts +15 -15
  54. package/lib/components/select/select.vue.d.ts +15 -15
  55. package/lib/components/select/useSelect.d.ts +12 -12
  56. package/lib/components/super-form/style/css.d.ts +1 -0
  57. package/lib/components/super-form/style/index.d.ts +1 -0
  58. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  59. package/lib/components/super-form/types.d.ts +3 -1
  60. package/lib/components/table/field.cjs +1 -1
  61. package/lib/components/table/table.vue2.cjs +1 -1
  62. package/lib/components/table/use/use-data-source.cjs +1 -1
  63. package/lib/components/table/use/use-loading.cjs +1 -1
  64. package/lib/components/table/use/use-table.cjs +1 -1
  65. package/lib/components/tooltip/index.d.ts +3 -3
  66. package/lib/components/tree/index.d.ts +5 -5
  67. package/lib/components/tree/tree.vue.d.ts +2 -2
  68. package/lib/components/tree-select/select.cjs +1 -1
  69. package/lib/components/tree-select/tree-select-option.cjs +1 -1
  70. package/lib/components/tree-select/tree-select.vue2.cjs +1 -1
  71. package/lib/components/tree-select/tree.cjs +1 -1
  72. package/lib/components/upload/index.d.ts +15 -15
  73. package/lib/components/upload/upload-content.vue.d.ts +1 -1
  74. package/lib/components/upload/upload.vue.d.ts +1 -1
  75. package/lib/package.json.cjs +1 -1
  76. package/lib/package.json.d.ts +1 -1
  77. package/lib/utils/form-register.cjs +1 -1
  78. package/lib/utils/form-register.d.ts +1 -0
  79. package/package.json +5 -5
  80. package/theme-style/index.css +1 -1
  81. package/theme-style/src/icon-text.scss +1 -1
  82. package/theme-style/src/tree-select.scss +8 -0
  83. package/theme-style/vft-icon-text.css +1 -1
  84. package/theme-style/vft-tree-select.css +1 -1
  85. package/web-types.json +1 -1
@@ -1,50 +1,50 @@
1
1
  import "../../pagination/index.js";
2
- import { isFunction as C, isBoolean as K, delObjAttrNotExist as tt, isString as et, isEmptyObject as at, isNullOrUndefined as M, isObject as P, isNumber as _, isPlainObject as rt } from "@vft/utils";
3
- import { merge as it, get as k } from "lodash-es";
4
- import { ref as B, watchEffect as nt, unref as n, watch as q, computed as st, onMounted as ot, nextTick as ct } from "vue";
5
- import { PageSize as lt } from "../constants.js";
6
- function ht(u, {
7
- tableData: U,
8
- setLoading: E,
9
- getPaginationInfo: v,
10
- setPagination: m,
11
- getGridRef: y
12
- }, O) {
13
- const c = B([]), j = B({});
14
- nt(() => {
15
- U.value = n(c);
16
- }), q(
17
- () => n(u).data,
2
+ import { isFunction as B, isBoolean as ee, delObjAttrNotExist as te, isString as ae, isEmptyObject as re, isNullOrUndefined as M, isObject as k, isNumber as q, isPlainObject as ne } from "@vft/utils";
3
+ import { merge as ie, get as H } from "lodash-es";
4
+ import { ref as O, watchEffect as oe, unref as i, watch as L, computed as se, onMounted as le, nextTick as U } from "vue";
5
+ import { PageSize as ce } from "../constants.js";
6
+ function he(m, {
7
+ tableData: V,
8
+ setLoading: P,
9
+ getPaginationInfo: D,
10
+ setPagination: h,
11
+ getGridRef: C
12
+ }, x) {
13
+ const f = O([]), z = O({});
14
+ oe(() => {
15
+ V.value = i(f);
16
+ }), L(
17
+ () => i(m).data,
18
18
  () => {
19
- const { data: t, api: e } = n(u);
20
- !e && t && (c.value = t);
19
+ const { data: e, api: t } = i(m);
20
+ !t && e && (f.value = e);
21
21
  },
22
22
  {
23
23
  immediate: !0
24
24
  }
25
25
  );
26
- function V(t) {
27
- m(t), p({});
26
+ function W(e) {
27
+ h(e), T({});
28
28
  }
29
- const x = st(() => {
30
- const t = n(c);
31
- return !t || t.length === 0 ? n(c) : n(c);
29
+ const E = se(() => {
30
+ const e = i(f);
31
+ return !e || e.length === 0 ? i(f) : i(f);
32
32
  });
33
- async function p(t) {
33
+ async function T(e) {
34
34
  const {
35
- api: e,
36
- fetchSetting: i = {},
35
+ api: t,
36
+ fetchSetting: r = {},
37
37
  beforeFetch: a,
38
- afterFetch: s,
39
- pagination: f,
40
- delEmptyParams: o,
38
+ afterFetch: o,
39
+ pagination: s,
40
+ delEmptyParams: c,
41
41
  transformParams: w,
42
- extraParams: g
43
- } = n(u);
44
- if (!(!e || !C(e)))
42
+ extraParams: u
43
+ } = i(m);
44
+ if (!(!t || !B(t)))
45
45
  try {
46
- E(!0);
47
- const { pageField: r, sizeField: d, listField: $, totalField: G } = Object.assign(
46
+ P(!0);
47
+ const { pageField: n, sizeField: d, listField: I, totalField: y } = Object.assign(
48
48
  {},
49
49
  {
50
50
  pageField: "page",
@@ -52,161 +52,184 @@ function ht(u, {
52
52
  listField: "items",
53
53
  totalField: "total"
54
54
  },
55
- i
55
+ r
56
56
  );
57
- let F = {}, l = t;
58
- const { currentPage: N = 1, pageSize: R = lt } = n(
59
- v
57
+ let g = {}, l = e;
58
+ const { currentPage: j = 1, pageSize: _ = ce } = i(
59
+ D
60
60
  );
61
61
  if (w) {
62
- if (K(f) && !f)
63
- F = {};
62
+ if (ee(s) && !s)
63
+ g = {};
64
64
  else {
65
- const b = t && t.page || N;
66
- F[r] = f?.pageIsZero ? b - 1 : b, F[d] = R;
65
+ const p = e && e.page || j;
66
+ g[n] = s?.pageIsZero ? p - 1 : p, g[d] = _;
67
67
  }
68
- if (l = it(t, F), a && C(a)) {
69
- const b = await a(l);
70
- l = { ...l, ...b };
68
+ if (l = ie(e, g), a && B(a)) {
69
+ const p = await a(l);
70
+ l = { ...l, ...p };
71
71
  }
72
- o && tt(
72
+ c && te(
73
73
  l,
74
- et(o) ? o === "strict" : !1
74
+ ae(c) ? c === "strict" : !1
75
75
  );
76
76
  }
77
- l && !at(l) && !M(g) ? P(l) && P(g) && (l = Object.assign({}, l, g)) : M(g) || (l = g);
78
- const T = await e(l), I = Array.isArray(T);
79
- let h = I ? T : k(T, $);
80
- const S = I ? T.length : k(T, G);
77
+ l && !re(l) && !M(u) ? k(l) && k(u) && (l = Object.assign({}, l, u)) : M(u) || (l = u);
78
+ const F = await t(l), N = Array.isArray(F);
79
+ let b = N ? F : H(F, I);
80
+ const S = N ? F.length : H(F, y);
81
81
  if (Number(S)) {
82
- const b = Math.ceil(S / R);
83
- if (N > b)
84
- return m({
85
- currentPage: b
86
- }), await p(t);
82
+ const p = Math.ceil(S / _);
83
+ if (j > p)
84
+ return h({
85
+ currentPage: p
86
+ }), await T(e);
87
87
  }
88
- return s && C(s) && (h = await s(h) || h), c.value = h, j.value = h, m({
88
+ return o && B(o) && (b = await o(b) || b), f.value = b, z.value = b, h({
89
89
  total: S || 0
90
- }), t && t.page && m({
91
- currentPage: t.page || 1
92
- }), O("fetch-success", {
93
- items: n(h),
90
+ }), e && e.page && h({
91
+ currentPage: e.page || 1
92
+ }), x("fetch-success", {
93
+ items: i(b),
94
94
  total: S
95
- }), h;
96
- } catch (r) {
97
- console.log(r), O("fetch-error", r), c.value = [], m({
95
+ }), b;
96
+ } catch (n) {
97
+ console.log(n), x("fetch-error", n), f.value = [], h({
98
98
  total: 0
99
99
  });
100
100
  } finally {
101
- ct(() => {
102
- E(!1);
101
+ U(() => {
102
+ P(!1);
103
103
  });
104
104
  }
105
105
  }
106
- function D() {
107
- return j.value;
106
+ function v() {
107
+ return z.value;
108
108
  }
109
- async function Z(t) {
110
- return m({
111
- currentPage: t?.page || 1
112
- }), await p(t);
109
+ async function X(e) {
110
+ return h({
111
+ currentPage: e?.page || 1
112
+ }), await T(e);
113
113
  }
114
- async function H(t, e, i) {
115
- return c.value[t] && (c.value[t][e] = i), c.value[t];
114
+ async function Z(e, t, r) {
115
+ return f.value[e] && (f.value[e][t] = r), f.value[e];
116
116
  }
117
- function J(t, e) {
118
- const i = y(), a = i.getRowById(t);
119
- if (a)
120
- return i.setRow(a, e), a;
117
+ function J(e, t) {
118
+ const r = C(), a = r.getRowById(e);
119
+ if (!a) return;
120
+ const s = i(m).treeConfig;
121
+ if (!!s && s?.parentField) {
122
+ const w = s.parentField, u = a[w], n = t[w], d = (g) => g == null || g === "" ? null : g, I = d(u), y = d(n);
123
+ if (I !== y) {
124
+ if (r.remove(a), y !== null) {
125
+ const l = r.getRowById(y);
126
+ l ? r.insertChild(t, l) : r.insert(t);
127
+ } else
128
+ r.insert(t);
129
+ const g = s.rowField || "id";
130
+ return r.getRowById(t[g]);
131
+ }
132
+ }
133
+ return r.setRow(a, t), a;
121
134
  }
122
- async function L(t, e = 0, i) {
123
- const a = rt(t) ? [t] : t, s = a.length, f = n(u), o = y();
124
- if (!!f.treeConfig)
125
- if (i != null && i !== "") {
126
- const r = o.getRowById(i);
127
- if (r)
135
+ async function Q(e, t = 0, r) {
136
+ const a = ne(e) ? [e] : e, o = a.length, s = i(m), c = C();
137
+ if (!!s.treeConfig)
138
+ if (r != null && r !== "") {
139
+ const n = c.getRowById(r);
140
+ if (n)
128
141
  for (const d of a)
129
- await o.insertChild(d, r);
142
+ await c.insertChild(d, n);
130
143
  else
131
144
  for (const d of a)
132
- await o.insert(d);
145
+ await c.insert(d);
133
146
  } else
134
- for (const r of a)
135
- await o.insert(r);
136
- else if (e === -1)
137
- for (const r of a)
138
- await o.insertAt(r, -1);
147
+ for (const n of a)
148
+ await c.insert(n);
149
+ else if (t === -1)
150
+ for (const n of a)
151
+ await c.insertAt(n, -1);
139
152
  else
140
- for (const r of a)
141
- await o.insert(r);
142
- if (s > 0) {
143
- const { total: r } = n(v);
144
- _(r) && m({
145
- total: r + s
153
+ for (const n of a)
154
+ await c.insert(n);
155
+ if (o > 0) {
156
+ const { total: n } = i(D);
157
+ q(n) && h({
158
+ total: n + o
146
159
  });
147
160
  }
148
- return n(c);
161
+ return i(f);
149
162
  }
150
- function Q(t, e) {
151
- const i = y(), a = t != null ? Array.isArray(t) ? t : [t] : e != null ? Array.isArray(e) ? e.map((f) => i.getRowById(f)).filter(Boolean) : i.getRowById(e) ? [i.getRowById(e)] : [] : [];
163
+ function Y(e, t) {
164
+ const r = C(), a = e != null ? Array.isArray(e) ? e : [e] : t != null ? Array.isArray(t) ? t.map((s) => r.getRowById(s)).filter(Boolean) : r.getRowById(t) ? [r.getRowById(t)] : [] : [];
152
165
  if (!a.length) return;
153
- i.remove(a);
154
- const { total: s } = n(v);
155
- _(s) && m({ total: Math.max(0, s - a.length) });
166
+ r.remove(a);
167
+ const { total: o } = i(D);
168
+ q(o) && h({ total: Math.max(0, o - a.length) });
156
169
  }
157
- function A(t) {
158
- c.value = t;
170
+ function A(e) {
171
+ f.value = e;
159
172
  }
160
- function W() {
161
- return x.value;
173
+ function $() {
174
+ return E.value;
162
175
  }
163
- function X(t) {
164
- const e = String(t).trim().toLowerCase();
165
- if (e) {
166
- const i = D?.()?.filter((a) => {
167
- for (const s in a)
168
- if (String(a[s]).trim().toLowerCase()?.includes(e))
176
+ function G(e) {
177
+ const t = String(e).trim().toLowerCase();
178
+ if (t) {
179
+ const r = v?.()?.filter((a) => {
180
+ for (const o in a)
181
+ if (String(a[o]).trim().toLowerCase()?.includes(t))
169
182
  return !0;
170
183
  });
171
- A(i);
184
+ A(r);
172
185
  } else
173
- A(D());
186
+ A(v());
174
187
  }
175
- function Y(t = 2) {
176
- const e = y();
177
- if (!e) return;
178
- const a = n(u).treeConfig;
179
- if (!a) return;
180
- const s = a.childrenField || "children", f = e.getTableData().fullData, o = [], w = (g, r) => {
181
- r > t || g.forEach((d) => {
182
- o.push(d), d[s]?.length && r < t && w(d[s], r + 1);
183
- });
184
- };
185
- w(f, 1), e.setTreeExpand(o, !0);
188
+ function K(e) {
189
+ const t = C();
190
+ !t || !i(m).treeConfig || U(() => {
191
+ if (e === void 0 || e === -1) {
192
+ t.setAllTreeExpand(!0);
193
+ return;
194
+ }
195
+ const o = t.getTableData().tableData;
196
+ if (!o || o.length === 0) {
197
+ console.warn("expandTreeLevel: 没有数据可展开");
198
+ return;
199
+ }
200
+ const s = [], c = (w, u) => {
201
+ u > e || w.forEach((n) => {
202
+ u <= e && s.push(n);
203
+ const d = n._X_ROW_CHILD;
204
+ d && d.length > 0 && u < e && c(d, u + 1);
205
+ });
206
+ };
207
+ c(o, 1), s.length > 0 && t.setTreeExpand(s, !0);
208
+ });
186
209
  }
187
- const z = B(!0);
188
- return ot(() => {
189
- n(u).immediate && p(), z.value = !1;
190
- }), q(
191
- () => n(u).api,
210
+ const R = O(!0);
211
+ return le(() => {
212
+ i(m).immediate && T(), R.value = !1;
213
+ }), L(
214
+ () => i(m).api,
192
215
  () => {
193
- n(u).watchApiFetch && !z.value && n(u).immediate && p();
216
+ i(m).watchApiFetch && !R.value && i(m).immediate && T();
194
217
  }
195
218
  ), {
196
219
  setTableData: A,
197
- updateTableData: H,
220
+ updateTableData: Z,
198
221
  updateTableDataRecord: J,
199
- insertTableDataRecord: L,
200
- deleteTableDataRecord: Q,
201
- reload: Z,
202
- handleTableChange: V,
203
- getDataSourceRef: x,
204
- getDataSource: W,
205
- getRawDataSource: D,
206
- tableSearch: X,
207
- expandTreeLevel: Y
222
+ insertTableDataRecord: Q,
223
+ deleteTableDataRecord: Y,
224
+ reload: X,
225
+ handleTableChange: W,
226
+ getDataSourceRef: E,
227
+ getDataSource: $,
228
+ getRawDataSource: v,
229
+ tableSearch: G,
230
+ expandTreeLevel: K
208
231
  };
209
232
  }
210
233
  export {
211
- ht as useDataSource
234
+ he as useDataSource
212
235
  };
@@ -1,19 +1,19 @@
1
- import { ref as l, unref as n, watch as u, computed as f } from "vue";
1
+ import { ref as i, unref as o, watch as c, computed as g } from "vue";
2
2
  import { useLoadingDelay as m } from "@vft/use";
3
- function p(o) {
4
- const t = l(n(o).loading), { loading: a, start: i, cancel: d } = m(230);
5
- u(
6
- [() => n(o).loading, a],
7
- ([e, c]) => {
8
- t.value = e || c;
3
+ function p(t) {
4
+ const e = i(o(t).loading), { loading: l, start: u, cancel: d } = m(230), n = i(!0);
5
+ c(
6
+ [() => o(t).loading, l],
7
+ ([a, f]) => {
8
+ e.value = a || f;
9
9
  },
10
10
  { immediate: !0 }
11
11
  );
12
- const g = f(() => n(t));
13
- function r(e) {
14
- e ? i() : d();
12
+ const r = g(() => o(e));
13
+ function s(a) {
14
+ a ? n.value ? (e.value = !0, n.value = !1) : u() : (e.value = !1, d());
15
15
  }
16
- return { getLoading: g, setLoading: r };
16
+ return { getLoading: r, setLoading: s };
17
17
  }
18
18
  export {
19
19
  p as useLoading
@@ -1,13 +1,13 @@
1
1
  import { getDynamicProps as c } from "@vft/utils";
2
2
  import { tryOnBeforeUnmount as f } from "@vueuse/core";
3
- import { ref as u, unref as l, watch as b, toRaw as D } from "vue";
3
+ import { ref as l, unref as u, watch as b, toRaw as p } from "vue";
4
4
  function h(r) {
5
- const n = u(null), o = u(!1), d = u(null);
5
+ const n = l(null), o = l(!1), d = l(null);
6
6
  let s;
7
7
  function i(e, a) {
8
8
  f(() => {
9
9
  n.value = null, o.value = null;
10
- }), !(l(o) && e === l(n)) && (n.value = e, d.value = a, r && e.setProps(c(r)), o.value = !0, s?.(), s = b(
10
+ }), !(u(o) && e === u(n)) && (n.value = e, d.value = a, r && e.setProps(c(r)), o.value = !0, s?.(), s = b(
11
11
  () => r,
12
12
  () => {
13
13
  r && e.setProps(c(r));
@@ -19,7 +19,7 @@ function h(r) {
19
19
  ));
20
20
  }
21
21
  function t() {
22
- const e = l(n);
22
+ const e = u(n);
23
23
  return e || console.error(
24
24
  "The table instance has not been obtained yet, please make sure the table is presented when performing the table operation!"
25
25
  ), e;
@@ -36,7 +36,7 @@ function h(r) {
36
36
  },
37
37
  getColumns: () => {
38
38
  const e = t().getColumns() || [];
39
- return D(e);
39
+ return p(e);
40
40
  },
41
41
  setColumns: (e) => {
42
42
  t().setColumns(e);
@@ -46,7 +46,8 @@ function h(r) {
46
46
  deleteTableDataRecord: (e, a) => t().deleteTableDataRecord(e, a),
47
47
  insertTableDataRecord: (e, a, m) => t().insertTableDataRecord(e, a, m),
48
48
  updateTableDataRecord: (e, a) => t().updateTableDataRecord(e, a),
49
- findTableDataRecord: (e) => t().findTableDataRecord(e)
49
+ findTableDataRecord: (e) => t().findTableDataRecord(e),
50
+ expandTreeLevel: (e) => t().expandTreeLevel(e)
50
51
  }];
51
52
  }
52
53
  export {
@@ -2,7 +2,7 @@ import Tooltip from './tooltip.vue';
2
2
  export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
3
3
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
4
  role: {
5
- type: import("vue").PropType<"dialog" | "menu" | "grid" | "group" | "listbox" | "tooltip" | "tree" | "navigation">;
5
+ type: import("vue").PropType<"tree" | "dialog" | "menu" | "grid" | "group" | "listbox" | "tooltip" | "navigation">;
6
6
  };
7
7
  showArrow: {
8
8
  type: import("vue").PropType<boolean>;
@@ -173,7 +173,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
173
173
  Defaults: {};
174
174
  }, Readonly<import("vue").ExtractPropTypes<{
175
175
  role: {
176
- type: import("vue").PropType<"dialog" | "menu" | "grid" | "group" | "listbox" | "tooltip" | "tree" | "navigation">;
176
+ type: import("vue").PropType<"tree" | "dialog" | "menu" | "grid" | "group" | "listbox" | "tooltip" | "navigation">;
177
177
  };
178
178
  showArrow: {
179
179
  type: import("vue").PropType<boolean>;
@@ -334,7 +334,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<{
334
334
  __isSuspense?: never;
335
335
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
336
336
  role: {
337
- type: import("vue").PropType<"dialog" | "menu" | "grid" | "group" | "listbox" | "tooltip" | "tree" | "navigation">;
337
+ type: import("vue").PropType<"tree" | "dialog" | "menu" | "grid" | "group" | "listbox" | "tooltip" | "navigation">;
338
338
  };
339
339
  showArrow: {
340
340
  type: import("vue").PropType<boolean>;
@@ -97,12 +97,12 @@ export declare const VftTree: SFCWithInstall<{
97
97
  };
98
98
  }>> & Readonly<{
99
99
  "onCurrent-change"?: (() => any) | undefined;
100
- onCheck?: (() => any) | undefined;
101
100
  "onCheck-change"?: (() => any) | undefined;
102
101
  "onNode-click"?: (() => any) | undefined;
103
102
  "onNode-contextmenu"?: (() => any) | undefined;
104
103
  "onNode-collapse"?: (() => any) | undefined;
105
104
  "onNode-expand"?: (() => any) | undefined;
105
+ onCheck?: (() => any) | undefined;
106
106
  "onNode-drag-start"?: (() => any) | undefined;
107
107
  "onNode-drag-end"?: (() => any) | undefined;
108
108
  "onNode-drop"?: (() => any) | undefined;
@@ -134,12 +134,12 @@ export declare const VftTree: SFCWithInstall<{
134
134
  updateNode: (data: import("./tree.type").TreeData, refNode: import("./tree.type").TreeKey | import("./tree.type").TreeNodeData | import("./model/node").default) => void;
135
135
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
136
136
  "current-change": () => void;
137
- check: () => void;
138
137
  "check-change": () => void;
139
138
  "node-click": () => void;
140
139
  "node-contextmenu": () => void;
141
140
  "node-collapse": () => void;
142
141
  "node-expand": () => void;
142
+ check: () => void;
143
143
  "node-drag-start": () => void;
144
144
  "node-drag-end": () => void;
145
145
  "node-drop": () => void;
@@ -251,12 +251,12 @@ export declare const VftTree: SFCWithInstall<{
251
251
  };
252
252
  }>> & Readonly<{
253
253
  "onCurrent-change"?: (() => any) | undefined;
254
- onCheck?: (() => any) | undefined;
255
254
  "onCheck-change"?: (() => any) | undefined;
256
255
  "onNode-click"?: (() => any) | undefined;
257
256
  "onNode-contextmenu"?: (() => any) | undefined;
258
257
  "onNode-collapse"?: (() => any) | undefined;
259
258
  "onNode-expand"?: (() => any) | undefined;
259
+ onCheck?: (() => any) | undefined;
260
260
  "onNode-drag-start"?: (() => any) | undefined;
261
261
  "onNode-drag-end"?: (() => any) | undefined;
262
262
  "onNode-drop"?: (() => any) | undefined;
@@ -388,12 +388,12 @@ export declare const VftTree: SFCWithInstall<{
388
388
  };
389
389
  }>> & Readonly<{
390
390
  "onCurrent-change"?: (() => any) | undefined;
391
- onCheck?: (() => any) | undefined;
392
391
  "onCheck-change"?: (() => any) | undefined;
393
392
  "onNode-click"?: (() => any) | undefined;
394
393
  "onNode-contextmenu"?: (() => any) | undefined;
395
394
  "onNode-collapse"?: (() => any) | undefined;
396
395
  "onNode-expand"?: (() => any) | undefined;
396
+ onCheck?: (() => any) | undefined;
397
397
  "onNode-drag-start"?: (() => any) | undefined;
398
398
  "onNode-drag-end"?: (() => any) | undefined;
399
399
  "onNode-drop"?: (() => any) | undefined;
@@ -425,12 +425,12 @@ export declare const VftTree: SFCWithInstall<{
425
425
  updateNode: (data: import("./tree.type").TreeData, refNode: import("./tree.type").TreeKey | import("./tree.type").TreeNodeData | import("./model/node").default) => void;
426
426
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
427
427
  "current-change": () => void;
428
- check: () => void;
429
428
  "check-change": () => void;
430
429
  "node-click": () => void;
431
430
  "node-contextmenu": () => void;
432
431
  "node-collapse": () => void;
433
432
  "node-expand": () => void;
433
+ check: () => void;
434
434
  "node-drag-start": () => void;
435
435
  "node-drag-end": () => void;
436
436
  "node-drop": () => void;
@@ -69,12 +69,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
69
69
  updateNode: (data: TreeData, refNode: TreeKey | TreeNodeData | Node) => void;
70
70
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
71
71
  "current-change": () => void;
72
- check: () => void;
73
72
  "check-change": () => void;
74
73
  "node-click": () => void;
75
74
  "node-contextmenu": () => void;
76
75
  "node-collapse": () => void;
77
76
  "node-expand": () => void;
77
+ check: () => void;
78
78
  "node-drag-start": () => void;
79
79
  "node-drag-end": () => void;
80
80
  "node-drop": () => void;
@@ -94,12 +94,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
94
94
  indent: number;
95
95
  }>>> & Readonly<{
96
96
  "onCurrent-change"?: (() => any) | undefined;
97
- onCheck?: (() => any) | undefined;
98
97
  "onCheck-change"?: (() => any) | undefined;
99
98
  "onNode-click"?: (() => any) | undefined;
100
99
  "onNode-contextmenu"?: (() => any) | undefined;
101
100
  "onNode-collapse"?: (() => any) | undefined;
102
101
  "onNode-expand"?: (() => any) | undefined;
102
+ onCheck?: (() => any) | undefined;
103
103
  "onNode-drag-start"?: (() => any) | undefined;
104
104
  "onNode-drag-end"?: (() => any) | undefined;
105
105
  "onNode-drop"?: (() => any) | undefined;