vft 0.0.496 → 0.0.498

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 (146) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.js +18 -16
  3. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  4. package/es/components/autocomplete/index.d.ts +6 -6
  5. package/es/components/button/index.d.ts +9 -9
  6. package/es/components/index.d.ts +1 -0
  7. package/es/components/index.js +257 -255
  8. package/es/components/modal/index.d.ts +6 -0
  9. package/es/components/modal/modal.vue.d.ts +3 -0
  10. package/es/components/modal/modal.vue2.js +12 -12
  11. package/es/components/popconfirm/index.d.ts +15 -15
  12. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  13. package/es/components/select/defaults.d.ts +4 -0
  14. package/es/components/select/defaults.js +7 -3
  15. package/es/components/select/index.d.ts +13 -4
  16. package/es/components/select/select.vue.d.ts +13 -4
  17. package/es/components/select/select.vue.js +9 -8
  18. package/es/components/select/select.vue2.js +40 -29
  19. package/es/components/select/token.d.ts +4 -1
  20. package/es/components/select/useSelect.d.ts +4 -4
  21. package/es/components/super-form/index.d.ts +9 -0
  22. package/es/components/super-form/style/css.d.ts +1 -0
  23. package/es/components/super-form/style/css.js +2 -0
  24. package/es/components/super-form/style/index.d.ts +1 -0
  25. package/es/components/super-form/style/index.js +2 -0
  26. package/es/components/super-form/super-form-item.vue2.js +355 -255
  27. package/es/components/super-form/super-form.vue2.js +1 -1
  28. package/es/components/super-form/types.d.ts +26 -1
  29. package/es/components/super-form/use/helper.js +37 -36
  30. package/es/components/super-form/use/use-form-events.js +126 -125
  31. package/es/components/table/index.d.ts +9 -6
  32. package/es/components/table/style/css.js +2 -0
  33. package/es/components/table/style/index.js +2 -0
  34. package/es/components/table/table.vue.d.ts +2 -1
  35. package/es/components/table/table.vue2.js +99 -94
  36. package/es/components/table/types.d.ts +5 -3
  37. package/es/components/table/use/use-data-source.d.ts +6 -4
  38. package/es/components/table/use/use-data-source.js +150 -148
  39. package/es/components/table/use/use-table.js +8 -8
  40. package/es/components/tree/index.d.ts +71 -71
  41. package/es/components/tree/tree-node.vue.d.ts +1 -1
  42. package/es/components/tree/tree.type.d.ts +2 -0
  43. package/es/components/tree/tree.vue.d.ts +14 -14
  44. package/es/components/tree-select/cache-options.d.ts +20 -0
  45. package/es/components/tree-select/cache-options.js +30 -0
  46. package/es/components/tree-select/index.d.ts +8 -0
  47. package/es/components/tree-select/index.js +10 -0
  48. package/es/components/tree-select/instance.d.ts +5 -0
  49. package/es/components/tree-select/instance.js +1 -0
  50. package/es/components/tree-select/select.d.ts +10 -0
  51. package/es/components/tree-select/select.js +129 -0
  52. package/es/components/tree-select/style/css.d.ts +4 -0
  53. package/es/components/tree-select/style/css.js +11 -0
  54. package/es/components/tree-select/style/index.d.ts +4 -0
  55. package/es/components/tree-select/style/index.js +11 -0
  56. package/es/components/tree-select/tree-select-option.d.ts +42 -0
  57. package/es/components/tree-select/tree-select-option.js +35 -0
  58. package/es/components/tree-select/tree-select.vue.d.ts +4 -0
  59. package/es/components/tree-select/tree-select.vue.js +5 -0
  60. package/es/components/tree-select/tree-select.vue2.js +155 -0
  61. package/es/components/tree-select/tree.d.ts +11 -0
  62. package/es/components/tree-select/tree.js +201 -0
  63. package/es/components/tree-select/utils.d.ts +10 -0
  64. package/es/components/tree-select/utils.js +45 -0
  65. package/es/index.js +1 -0
  66. package/es/package.json.d.ts +1 -1
  67. package/es/package.json.js +1 -1
  68. package/es/script.css +1 -1
  69. package/es/utils/form-register.d.ts +1 -0
  70. package/es/utils/form-register.js +11 -10
  71. package/lib/component.cjs +1 -1
  72. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  73. package/lib/components/autocomplete/index.d.ts +6 -6
  74. package/lib/components/button/index.d.ts +9 -9
  75. package/lib/components/index.cjs +1 -1
  76. package/lib/components/index.d.ts +1 -0
  77. package/lib/components/modal/index.d.ts +6 -0
  78. package/lib/components/modal/modal.vue.d.ts +3 -0
  79. package/lib/components/modal/modal.vue2.cjs +1 -1
  80. package/lib/components/popconfirm/index.d.ts +15 -15
  81. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  82. package/lib/components/select/defaults.cjs +1 -1
  83. package/lib/components/select/defaults.d.ts +4 -0
  84. package/lib/components/select/index.d.ts +13 -4
  85. package/lib/components/select/select.vue.cjs +1 -1
  86. package/lib/components/select/select.vue.d.ts +13 -4
  87. package/lib/components/select/select.vue2.cjs +1 -1
  88. package/lib/components/select/token.d.ts +4 -1
  89. package/lib/components/select/useSelect.d.ts +4 -4
  90. package/lib/components/super-form/index.d.ts +9 -0
  91. package/lib/components/super-form/style/css.cjs +1 -1
  92. package/lib/components/super-form/style/css.d.ts +1 -0
  93. package/lib/components/super-form/style/index.cjs +1 -1
  94. package/lib/components/super-form/style/index.d.ts +1 -0
  95. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  96. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  97. package/lib/components/super-form/types.d.ts +26 -1
  98. package/lib/components/super-form/use/helper.cjs +1 -1
  99. package/lib/components/super-form/use/use-form-events.cjs +1 -1
  100. package/lib/components/table/index.d.ts +9 -6
  101. package/lib/components/table/style/css.cjs +1 -1
  102. package/lib/components/table/style/index.cjs +1 -1
  103. package/lib/components/table/table.vue.d.ts +2 -1
  104. package/lib/components/table/table.vue2.cjs +1 -1
  105. package/lib/components/table/types.d.ts +5 -3
  106. package/lib/components/table/use/use-data-source.cjs +1 -1
  107. package/lib/components/table/use/use-data-source.d.ts +6 -4
  108. package/lib/components/table/use/use-table.cjs +1 -1
  109. package/lib/components/tree/index.d.ts +71 -71
  110. package/lib/components/tree/tree-node.vue.d.ts +1 -1
  111. package/lib/components/tree/tree.type.d.ts +2 -0
  112. package/lib/components/tree/tree.vue.d.ts +14 -14
  113. package/lib/components/tree-select/cache-options.cjs +1 -0
  114. package/lib/components/tree-select/cache-options.d.ts +20 -0
  115. package/lib/components/tree-select/index.cjs +1 -0
  116. package/lib/components/tree-select/index.d.ts +8 -0
  117. package/lib/components/tree-select/instance.cjs +1 -0
  118. package/lib/components/tree-select/instance.d.ts +5 -0
  119. package/lib/components/tree-select/select.cjs +1 -0
  120. package/lib/components/tree-select/select.d.ts +10 -0
  121. package/lib/components/tree-select/style/css.cjs +1 -0
  122. package/lib/components/tree-select/style/css.d.ts +4 -0
  123. package/lib/components/tree-select/style/index.cjs +1 -0
  124. package/lib/components/tree-select/style/index.d.ts +4 -0
  125. package/lib/components/tree-select/tree-select-option.cjs +1 -0
  126. package/lib/components/tree-select/tree-select-option.d.ts +42 -0
  127. package/lib/components/tree-select/tree-select.vue.cjs +1 -0
  128. package/lib/components/tree-select/tree-select.vue.d.ts +4 -0
  129. package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
  130. package/lib/components/tree-select/tree.cjs +1 -0
  131. package/lib/components/tree-select/tree.d.ts +11 -0
  132. package/lib/components/tree-select/utils.cjs +1 -0
  133. package/lib/components/tree-select/utils.d.ts +10 -0
  134. package/lib/index.cjs +1 -1
  135. package/lib/package.json.cjs +1 -1
  136. package/lib/package.json.d.ts +1 -1
  137. package/lib/script.css +1 -1
  138. package/lib/utils/form-register.cjs +1 -1
  139. package/lib/utils/form-register.d.ts +1 -0
  140. package/package.json +5 -5
  141. package/theme-style/index.css +1 -1
  142. package/theme-style/src/cascader.scss +1 -12
  143. package/theme-style/src/tree-select.scss +10 -1
  144. package/theme-style/vft-cascader.css +1 -1
  145. package/theme-style/vft-tree-select.css +1 -1
  146. package/web-types.json +1 -1
@@ -1,44 +1,50 @@
1
1
  import "../../pagination/index.js";
2
- import { isFunction as O, isBoolean as $, delObjAttrNotExist as K, isString as ee, isEmptyObject as te, isNullOrUndefined as x, isObject as M, isNumber as q, isPlainObject as ae } from "@vft/utils";
3
- import { merge as re, get as B } from "lodash-es";
4
- import { ref as j, watchEffect as ie, unref as n, watch as L, computed as ne, onMounted as le, nextTick as ce } from "vue";
5
- import { PageSize as se } from "../constants.js";
6
- function ge(u, { tableData: U, setLoading: R, getPaginationInfo: T, setPagination: d }, k) {
7
- const a = j([]), z = j({});
8
- ie(() => {
9
- U.value = n(a);
10
- }), L(
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(
11
17
  () => n(u).data,
12
18
  () => {
13
- const { data: e, api: t } = n(u);
14
- !t && e && (a.value = e);
19
+ const { data: t, api: e } = n(u);
20
+ !e && t && (c.value = t);
15
21
  },
16
22
  {
17
23
  immediate: !0
18
24
  }
19
25
  );
20
- function V(e) {
21
- d(e), v({});
26
+ function V(t) {
27
+ m(t), p({});
22
28
  }
23
- const C = ne(() => {
24
- const e = n(a);
25
- return !e || e.length === 0 ? n(a) : n(a);
29
+ const x = st(() => {
30
+ const t = n(c);
31
+ return !t || t.length === 0 ? n(c) : n(c);
26
32
  });
27
- async function v(e) {
33
+ async function p(t) {
28
34
  const {
29
- api: t,
30
- fetchSetting: l = {},
31
- beforeFetch: r,
32
- afterFetch: c,
33
- pagination: o,
34
- delEmptyParams: f,
35
- transformParams: b,
36
- extraParams: m
35
+ api: e,
36
+ fetchSetting: i = {},
37
+ beforeFetch: a,
38
+ afterFetch: s,
39
+ pagination: f,
40
+ delEmptyParams: o,
41
+ transformParams: w,
42
+ extraParams: g
37
43
  } = n(u);
38
- if (!(!t || !O(t)))
44
+ if (!(!e || !C(e)))
39
45
  try {
40
- R(!0);
41
- const { pageField: i, sizeField: F, listField: A, totalField: Y } = Object.assign(
46
+ E(!0);
47
+ const { pageField: r, sizeField: d, listField: $, totalField: G } = Object.assign(
42
48
  {},
43
49
  {
44
50
  pageField: "page",
@@ -46,165 +52,161 @@ function ge(u, { tableData: U, setLoading: R, getPaginationInfo: T, setPaginatio
46
52
  listField: "items",
47
53
  totalField: "total"
48
54
  },
49
- l
55
+ i
50
56
  );
51
- let S = {}, s = e;
52
- const { currentPage: N = 1, pageSize: _ = se } = n(
53
- T
57
+ let F = {}, l = t;
58
+ const { currentPage: N = 1, pageSize: R = lt } = n(
59
+ v
54
60
  );
55
- if (b) {
56
- if ($(o) && !o)
57
- S = {};
61
+ if (w) {
62
+ if (K(f) && !f)
63
+ F = {};
58
64
  else {
59
- const h = e && e.page || N;
60
- S[i] = o?.pageIsZero ? h - 1 : h, S[F] = _;
65
+ const b = t && t.page || N;
66
+ F[r] = f?.pageIsZero ? b - 1 : b, F[d] = R;
61
67
  }
62
- if (s = re(e, S), r && O(r)) {
63
- const h = await r(s);
64
- s = { ...s, ...h };
68
+ if (l = it(t, F), a && C(a)) {
69
+ const b = await a(l);
70
+ l = { ...l, ...b };
65
71
  }
66
- f && K(
67
- s,
68
- ee(f) ? f === "strict" : !1
72
+ o && tt(
73
+ l,
74
+ et(o) ? o === "strict" : !1
69
75
  );
70
76
  }
71
- s && !te(s) && !x(m) ? M(s) && M(m) && (s = Object.assign({}, s, m)) : x(m) || (s = m);
72
- const y = await t(s), P = Array.isArray(y);
73
- let g = P ? y : B(y, A);
74
- const D = P ? y.length : B(y, Y);
75
- if (Number(D)) {
76
- const h = Math.ceil(D / _);
77
- if (N > h)
78
- return d({
79
- currentPage: h
80
- }), await v(e);
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);
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);
81
87
  }
82
- return c && O(c) && (g = await c(g) || g), a.value = g, z.value = g, d({
83
- total: D || 0
84
- }), e && e.page && d({
85
- currentPage: e.page || 1
86
- }), k("fetch-success", {
87
- items: n(g),
88
- total: D
89
- }), g;
90
- } catch (i) {
91
- console.log(i), k("fetch-error", i), a.value = [], d({
88
+ return s && C(s) && (h = await s(h) || h), c.value = h, j.value = h, m({
89
+ total: S || 0
90
+ }), t && t.page && m({
91
+ currentPage: t.page || 1
92
+ }), O("fetch-success", {
93
+ items: n(h),
94
+ total: S
95
+ }), h;
96
+ } catch (r) {
97
+ console.log(r), O("fetch-error", r), c.value = [], m({
92
98
  total: 0
93
99
  });
94
100
  } finally {
95
- ce(() => {
96
- R(!1);
101
+ ct(() => {
102
+ E(!1);
97
103
  });
98
104
  }
99
105
  }
100
- function p() {
101
- return z.value;
106
+ function D() {
107
+ return j.value;
102
108
  }
103
- async function Z(e) {
104
- return d({
105
- currentPage: e?.page || 1
106
- }), await v(e);
109
+ async function Z(t) {
110
+ return m({
111
+ currentPage: t?.page || 1
112
+ }), await p(t);
107
113
  }
108
- function G(e) {
109
- if (!a.value || a.value.length === 0) return;
110
- const { rowkey: t } = n(u);
111
- return ((r) => {
112
- let c;
113
- return r.some(function(f) {
114
- if (Reflect.has(f, t) && f[t] === e)
115
- return c = f, !0;
116
- }), c;
117
- })(a.value);
114
+ async function H(t, e, i) {
115
+ return c.value[t] && (c.value[t][e] = i), c.value[t];
118
116
  }
119
- async function H(e, t, l) {
120
- return a.value[e] && (a.value[e][t] = l), a.value[e];
117
+ function J(t, e) {
118
+ const i = y(), a = i.getRowById(t);
119
+ if (a)
120
+ return i.setRow(a, e), a;
121
121
  }
122
- function I(e, t) {
123
- const l = G(e);
124
- if (l) {
125
- for (const r in l)
126
- Reflect.has(t, r) && (l[r] = t[r]);
127
- return l;
128
- }
129
- }
130
- function J(e, t = 0) {
131
- const l = ae(e) ? [e] : e, r = l.length;
132
- if (a.value.splice(t, 0, ...l), r > 0) {
133
- const { total: c } = n(T);
134
- q(c) && d({
135
- total: c + r
136
- });
137
- }
138
- return n(a);
139
- }
140
- function Q(e, t) {
141
- if (!a.value || a.value.length === 0) return;
142
- const { rowkey: l } = n(u), r = l, c = Array.isArray(e) ? e : [e];
143
- let o = [];
144
- if (t !== void 0)
145
- if (Array.isArray(t))
146
- o = t;
147
- else {
148
- const i = t;
149
- o = c.map((F) => F[i]);
150
- }
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)
128
+ for (const d of a)
129
+ await o.insertChild(d, r);
130
+ else
131
+ for (const d of a)
132
+ await o.insert(d);
133
+ } 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);
151
139
  else
152
- o = c.map((i) => i[r]);
153
- const f = t !== void 0 && !Array.isArray(t) ? t : r, b = [];
154
- for (let i = a.value.length - 1; i >= 0; i--) {
155
- const A = a.value[i][f];
156
- o.includes(A) && b.push(i);
157
- }
158
- const m = b.length;
159
- if (b.forEach((i) => {
160
- a.value.splice(i, 1);
161
- }), m > 0) {
162
- const { total: i } = n(T);
163
- q(i) && d({
164
- total: i - m
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
165
146
  });
166
147
  }
148
+ return n(c);
149
+ }
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)] : [] : [];
152
+ if (!a.length) return;
153
+ i.remove(a);
154
+ const { total: s } = n(v);
155
+ _(s) && m({ total: Math.max(0, s - a.length) });
167
156
  }
168
- function w(e) {
169
- a.value = e;
157
+ function A(t) {
158
+ c.value = t;
170
159
  }
171
160
  function W() {
172
- return C.value;
161
+ return x.value;
173
162
  }
174
- function X(e) {
175
- const t = String(e).trim().toLowerCase();
176
- if (t) {
177
- const l = p?.()?.filter((r) => {
178
- for (const c in r)
179
- if (String(r[c]).trim().toLowerCase()?.includes(t))
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))
180
169
  return !0;
181
170
  });
182
- w(l);
171
+ A(i);
183
172
  } else
184
- w(p());
173
+ A(D());
174
+ }
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);
185
186
  }
186
- const E = j(!0);
187
- return le(() => {
188
- n(u).immediate && v(), E.value = !1;
189
- }), L(
187
+ const z = B(!0);
188
+ return ot(() => {
189
+ n(u).immediate && p(), z.value = !1;
190
+ }), q(
190
191
  () => n(u).api,
191
192
  () => {
192
- n(u).watchApiFetch && !E.value && n(u).immediate && v();
193
+ n(u).watchApiFetch && !z.value && n(u).immediate && p();
193
194
  }
194
195
  ), {
195
- setTableData: w,
196
+ setTableData: A,
196
197
  updateTableData: H,
197
- updateTableDataRecord: I,
198
- insertTableDataRecord: J,
198
+ updateTableDataRecord: J,
199
+ insertTableDataRecord: L,
199
200
  deleteTableDataRecord: Q,
200
201
  reload: Z,
201
202
  handleTableChange: V,
202
- getDataSourceRef: C,
203
+ getDataSourceRef: x,
203
204
  getDataSource: W,
204
- getRawDataSource: p,
205
- tableSearch: X
205
+ getRawDataSource: D,
206
+ tableSearch: X,
207
+ expandTreeLevel: Y
206
208
  };
207
209
  }
208
210
  export {
209
- ge as useDataSource
211
+ ht as useDataSource
210
212
  };
@@ -1,13 +1,13 @@
1
1
  import { getDynamicProps as c } from "@vft/utils";
2
- import { tryOnBeforeUnmount as m } from "@vueuse/core";
3
- import { ref as u, unref as l, watch as f, toRaw as b } from "vue";
4
- function g(r) {
2
+ import { tryOnBeforeUnmount as f } from "@vueuse/core";
3
+ import { ref as u, unref as l, watch as b, toRaw as D } from "vue";
4
+ function h(r) {
5
5
  const n = u(null), o = u(!1), d = u(null);
6
6
  let s;
7
7
  function i(e, a) {
8
- m(() => {
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 = f(
10
+ }), !(l(o) && e === l(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));
@@ -36,7 +36,7 @@ function g(r) {
36
36
  },
37
37
  getColumns: () => {
38
38
  const e = t().getColumns() || [];
39
- return b(e);
39
+ return D(e);
40
40
  },
41
41
  setColumns: (e) => {
42
42
  t().setColumns(e);
@@ -44,11 +44,11 @@ function g(r) {
44
44
  setTableData: (e) => t()?.setTableData(e),
45
45
  setPagination: (e) => t().setPagination(e),
46
46
  deleteTableDataRecord: (e, a) => t().deleteTableDataRecord(e, a),
47
- insertTableDataRecord: (e, a) => t().insertTableDataRecord(e, a),
47
+ insertTableDataRecord: (e, a, m) => t().insertTableDataRecord(e, a, m),
48
48
  updateTableDataRecord: (e, a) => t().updateTableDataRecord(e, a),
49
49
  findTableDataRecord: (e) => t().findTableDataRecord(e)
50
50
  }];
51
51
  }
52
52
  export {
53
- g as useTable
53
+ h as useTable
54
54
  };
@@ -62,22 +62,10 @@ export declare const VftTree: SFCWithInstall<{
62
62
  filterNodeMethod: {
63
63
  type: import("vue").PropType<import("./tree.type").FilterNodeMethodFunction>;
64
64
  };
65
- allowDrop: {
66
- type: import("vue").PropType<any>;
67
- };
68
- renderContent: {
69
- type: import("vue").PropType<any>;
70
- };
71
- accordion: {
72
- type: import("vue").PropType<boolean>;
73
- };
74
65
  renderAfterExpand: {
75
66
  type: import("vue").PropType<boolean>;
76
67
  default: boolean;
77
68
  };
78
- showCheckbox: {
79
- type: import("vue").PropType<boolean>;
80
- };
81
69
  nodeKey: {
82
70
  type: import("vue").PropType<string>;
83
71
  };
@@ -85,12 +73,24 @@ export declare const VftTree: SFCWithInstall<{
85
73
  type: import("vue").PropType<boolean>;
86
74
  default: boolean;
87
75
  };
76
+ renderContent: {
77
+ type: import("vue").PropType<any>;
78
+ };
79
+ showCheckbox: {
80
+ type: import("vue").PropType<boolean>;
81
+ };
88
82
  allowDrag: {
89
83
  type: import("vue").PropType<any>;
90
84
  };
85
+ allowDrop: {
86
+ type: import("vue").PropType<any>;
87
+ };
91
88
  highlightCurrent: {
92
89
  type: import("vue").PropType<boolean>;
93
90
  };
91
+ accordion: {
92
+ type: import("vue").PropType<boolean>;
93
+ };
94
94
  indent: {
95
95
  type: import("vue").PropType<number>;
96
96
  default: number;
@@ -98,17 +98,17 @@ export declare const VftTree: SFCWithInstall<{
98
98
  }>> & Readonly<{
99
99
  "onCurrent-change"?: (() => any) | undefined;
100
100
  onCheck?: (() => any) | undefined;
101
- "onNode-drag-start"?: (() => any) | undefined;
102
- "onNode-drag-leave"?: (() => any) | undefined;
103
- "onNode-drag-enter"?: (() => any) | undefined;
104
- "onNode-drag-over"?: (() => any) | undefined;
105
- "onNode-drag-end"?: (() => any) | undefined;
106
- "onNode-drop"?: (() => any) | undefined;
107
- "onNode-expand"?: (() => any) | undefined;
108
101
  "onCheck-change"?: (() => any) | undefined;
109
102
  "onNode-click"?: (() => any) | undefined;
110
103
  "onNode-contextmenu"?: (() => any) | undefined;
111
104
  "onNode-collapse"?: (() => any) | undefined;
105
+ "onNode-expand"?: (() => any) | undefined;
106
+ "onNode-drag-start"?: (() => any) | undefined;
107
+ "onNode-drag-end"?: (() => any) | undefined;
108
+ "onNode-drop"?: (() => any) | undefined;
109
+ "onNode-drag-leave"?: (() => any) | undefined;
110
+ "onNode-drag-enter"?: (() => any) | undefined;
111
+ "onNode-drag-over"?: (() => any) | undefined;
112
112
  }>, {
113
113
  filter: (value: any) => void;
114
114
  getNodeKey: (node: import("./model/node").default) => any;
@@ -135,17 +135,17 @@ export declare const VftTree: SFCWithInstall<{
135
135
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
136
136
  "current-change": () => void;
137
137
  check: () => void;
138
- "node-drag-start": () => void;
139
- "node-drag-leave": () => void;
140
- "node-drag-enter": () => void;
141
- "node-drag-over": () => void;
142
- "node-drag-end": () => void;
143
- "node-drop": () => void;
144
- "node-expand": () => void;
145
138
  "check-change": () => void;
146
139
  "node-click": () => void;
147
140
  "node-contextmenu": () => void;
148
141
  "node-collapse": () => void;
142
+ "node-expand": () => void;
143
+ "node-drag-start": () => void;
144
+ "node-drag-end": () => void;
145
+ "node-drop": () => void;
146
+ "node-drag-leave": () => void;
147
+ "node-drag-enter": () => void;
148
+ "node-drag-over": () => void;
149
149
  }, import("vue").PublicProps, {
150
150
  data: Array<any>;
151
151
  props: import("./tree.type").TreeComponentProps["props"];
@@ -216,22 +216,10 @@ export declare const VftTree: SFCWithInstall<{
216
216
  filterNodeMethod: {
217
217
  type: import("vue").PropType<import("./tree.type").FilterNodeMethodFunction>;
218
218
  };
219
- allowDrop: {
220
- type: import("vue").PropType<any>;
221
- };
222
- renderContent: {
223
- type: import("vue").PropType<any>;
224
- };
225
- accordion: {
226
- type: import("vue").PropType<boolean>;
227
- };
228
219
  renderAfterExpand: {
229
220
  type: import("vue").PropType<boolean>;
230
221
  default: boolean;
231
222
  };
232
- showCheckbox: {
233
- type: import("vue").PropType<boolean>;
234
- };
235
223
  nodeKey: {
236
224
  type: import("vue").PropType<string>;
237
225
  };
@@ -239,12 +227,24 @@ export declare const VftTree: SFCWithInstall<{
239
227
  type: import("vue").PropType<boolean>;
240
228
  default: boolean;
241
229
  };
230
+ renderContent: {
231
+ type: import("vue").PropType<any>;
232
+ };
233
+ showCheckbox: {
234
+ type: import("vue").PropType<boolean>;
235
+ };
242
236
  allowDrag: {
243
237
  type: import("vue").PropType<any>;
244
238
  };
239
+ allowDrop: {
240
+ type: import("vue").PropType<any>;
241
+ };
245
242
  highlightCurrent: {
246
243
  type: import("vue").PropType<boolean>;
247
244
  };
245
+ accordion: {
246
+ type: import("vue").PropType<boolean>;
247
+ };
248
248
  indent: {
249
249
  type: import("vue").PropType<number>;
250
250
  default: number;
@@ -252,17 +252,17 @@ export declare const VftTree: SFCWithInstall<{
252
252
  }>> & Readonly<{
253
253
  "onCurrent-change"?: (() => any) | undefined;
254
254
  onCheck?: (() => any) | undefined;
255
- "onNode-drag-start"?: (() => any) | undefined;
256
- "onNode-drag-leave"?: (() => any) | undefined;
257
- "onNode-drag-enter"?: (() => any) | undefined;
258
- "onNode-drag-over"?: (() => any) | undefined;
259
- "onNode-drag-end"?: (() => any) | undefined;
260
- "onNode-drop"?: (() => any) | undefined;
261
- "onNode-expand"?: (() => any) | undefined;
262
255
  "onCheck-change"?: (() => any) | undefined;
263
256
  "onNode-click"?: (() => any) | undefined;
264
257
  "onNode-contextmenu"?: (() => any) | undefined;
265
258
  "onNode-collapse"?: (() => any) | undefined;
259
+ "onNode-expand"?: (() => any) | undefined;
260
+ "onNode-drag-start"?: (() => any) | undefined;
261
+ "onNode-drag-end"?: (() => any) | undefined;
262
+ "onNode-drop"?: (() => any) | undefined;
263
+ "onNode-drag-leave"?: (() => any) | undefined;
264
+ "onNode-drag-enter"?: (() => any) | undefined;
265
+ "onNode-drag-over"?: (() => any) | undefined;
266
266
  }>, {
267
267
  filter: (value: any) => void;
268
268
  getNodeKey: (node: import("./model/node").default) => any;
@@ -353,22 +353,10 @@ export declare const VftTree: SFCWithInstall<{
353
353
  filterNodeMethod: {
354
354
  type: import("vue").PropType<import("./tree.type").FilterNodeMethodFunction>;
355
355
  };
356
- allowDrop: {
357
- type: import("vue").PropType<any>;
358
- };
359
- renderContent: {
360
- type: import("vue").PropType<any>;
361
- };
362
- accordion: {
363
- type: import("vue").PropType<boolean>;
364
- };
365
356
  renderAfterExpand: {
366
357
  type: import("vue").PropType<boolean>;
367
358
  default: boolean;
368
359
  };
369
- showCheckbox: {
370
- type: import("vue").PropType<boolean>;
371
- };
372
360
  nodeKey: {
373
361
  type: import("vue").PropType<string>;
374
362
  };
@@ -376,12 +364,24 @@ export declare const VftTree: SFCWithInstall<{
376
364
  type: import("vue").PropType<boolean>;
377
365
  default: boolean;
378
366
  };
367
+ renderContent: {
368
+ type: import("vue").PropType<any>;
369
+ };
370
+ showCheckbox: {
371
+ type: import("vue").PropType<boolean>;
372
+ };
379
373
  allowDrag: {
380
374
  type: import("vue").PropType<any>;
381
375
  };
376
+ allowDrop: {
377
+ type: import("vue").PropType<any>;
378
+ };
382
379
  highlightCurrent: {
383
380
  type: import("vue").PropType<boolean>;
384
381
  };
382
+ accordion: {
383
+ type: import("vue").PropType<boolean>;
384
+ };
385
385
  indent: {
386
386
  type: import("vue").PropType<number>;
387
387
  default: number;
@@ -389,17 +389,17 @@ export declare const VftTree: SFCWithInstall<{
389
389
  }>> & Readonly<{
390
390
  "onCurrent-change"?: (() => any) | undefined;
391
391
  onCheck?: (() => any) | undefined;
392
- "onNode-drag-start"?: (() => any) | undefined;
393
- "onNode-drag-leave"?: (() => any) | undefined;
394
- "onNode-drag-enter"?: (() => any) | undefined;
395
- "onNode-drag-over"?: (() => any) | undefined;
396
- "onNode-drag-end"?: (() => any) | undefined;
397
- "onNode-drop"?: (() => any) | undefined;
398
- "onNode-expand"?: (() => any) | undefined;
399
392
  "onCheck-change"?: (() => any) | undefined;
400
393
  "onNode-click"?: (() => any) | undefined;
401
394
  "onNode-contextmenu"?: (() => any) | undefined;
402
395
  "onNode-collapse"?: (() => any) | undefined;
396
+ "onNode-expand"?: (() => any) | undefined;
397
+ "onNode-drag-start"?: (() => any) | undefined;
398
+ "onNode-drag-end"?: (() => any) | undefined;
399
+ "onNode-drop"?: (() => any) | undefined;
400
+ "onNode-drag-leave"?: (() => any) | undefined;
401
+ "onNode-drag-enter"?: (() => any) | undefined;
402
+ "onNode-drag-over"?: (() => any) | undefined;
403
403
  }>, {
404
404
  filter: (value: any) => void;
405
405
  getNodeKey: (node: import("./model/node").default) => any;
@@ -426,17 +426,17 @@ export declare const VftTree: SFCWithInstall<{
426
426
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
427
427
  "current-change": () => void;
428
428
  check: () => void;
429
- "node-drag-start": () => void;
430
- "node-drag-leave": () => void;
431
- "node-drag-enter": () => void;
432
- "node-drag-over": () => void;
433
- "node-drag-end": () => void;
434
- "node-drop": () => void;
435
- "node-expand": () => void;
436
429
  "check-change": () => void;
437
430
  "node-click": () => void;
438
431
  "node-contextmenu": () => void;
439
432
  "node-collapse": () => void;
433
+ "node-expand": () => void;
434
+ "node-drag-start": () => void;
435
+ "node-drag-end": () => void;
436
+ "node-drop": () => void;
437
+ "node-drag-leave": () => void;
438
+ "node-drag-enter": () => void;
439
+ "node-drag-over": () => void;
440
440
  }, string, {
441
441
  data: Array<any>;
442
442
  props: import("./tree.type").TreeComponentProps["props"];