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.
- package/dist/index.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/es/components/autocomplete/index.d.ts +18 -18
- package/es/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/image-viewer/image-viewer.vue.d.ts +2 -0
- package/es/components/image-viewer/image-viewer.vue2.js +89 -85
- package/es/components/image-viewer/index.d.ts +18 -0
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popper/index.d.ts +3 -3
- package/es/components/select/index.d.ts +15 -15
- package/es/components/select/select.vue.d.ts +15 -15
- package/es/components/select/useSelect.d.ts +12 -12
- package/es/components/super-form/style/css.d.ts +1 -0
- package/es/components/super-form/style/index.d.ts +1 -0
- package/es/components/super-form/super-form-item.vue2.js +360 -325
- package/es/components/super-form/types.d.ts +3 -1
- package/es/components/table/field.js +32 -33
- package/es/components/table/table.vue2.js +51 -49
- package/es/components/table/use/use-data-source.js +166 -143
- package/es/components/table/use/use-loading.js +11 -11
- package/es/components/table/use/use-table.js +7 -6
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tree/index.d.ts +5 -5
- package/es/components/tree/tree.vue.d.ts +2 -2
- package/es/components/tree-select/select.js +24 -24
- package/es/components/tree-select/tree-select-option.js +18 -7
- package/es/components/tree-select/tree-select.vue2.js +28 -26
- package/es/components/tree-select/tree.js +27 -26
- package/es/components/upload/index.d.ts +15 -15
- package/es/components/upload/upload-content.vue.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +1 -0
- package/es/utils/form-register.js +5 -4
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +6 -6
- package/lib/components/autocomplete/index.d.ts +18 -18
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/image-viewer/image-viewer.vue.d.ts +2 -0
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/image-viewer/index.d.ts +18 -0
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popper/index.d.ts +3 -3
- package/lib/components/select/index.d.ts +15 -15
- package/lib/components/select/select.vue.d.ts +15 -15
- package/lib/components/select/useSelect.d.ts +12 -12
- package/lib/components/super-form/style/css.d.ts +1 -0
- package/lib/components/super-form/style/index.d.ts +1 -0
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +3 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-loading.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tree/index.d.ts +5 -5
- package/lib/components/tree/tree.vue.d.ts +2 -2
- package/lib/components/tree-select/select.cjs +1 -1
- package/lib/components/tree-select/tree-select-option.cjs +1 -1
- package/lib/components/tree-select/tree-select.vue2.cjs +1 -1
- package/lib/components/tree-select/tree.cjs +1 -1
- package/lib/components/upload/index.d.ts +15 -15
- package/lib/components/upload/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/form-register.cjs +1 -1
- package/lib/utils/form-register.d.ts +1 -0
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/icon-text.scss +1 -1
- package/theme-style/src/tree-select.scss +8 -0
- package/theme-style/vft-icon-text.css +1 -1
- package/theme-style/vft-tree-select.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import "../../pagination/index.js";
|
|
2
|
-
import { isFunction as
|
|
3
|
-
import { merge as
|
|
4
|
-
import { ref as
|
|
5
|
-
import { PageSize as
|
|
6
|
-
function
|
|
7
|
-
tableData:
|
|
8
|
-
setLoading:
|
|
9
|
-
getPaginationInfo:
|
|
10
|
-
setPagination:
|
|
11
|
-
getGridRef:
|
|
12
|
-
},
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}),
|
|
17
|
-
() =>
|
|
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:
|
|
20
|
-
!
|
|
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
|
|
27
|
-
|
|
26
|
+
function W(e) {
|
|
27
|
+
h(e), T({});
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
return !
|
|
29
|
+
const E = se(() => {
|
|
30
|
+
const e = i(f);
|
|
31
|
+
return !e || e.length === 0 ? i(f) : i(f);
|
|
32
32
|
});
|
|
33
|
-
async function
|
|
33
|
+
async function T(e) {
|
|
34
34
|
const {
|
|
35
|
-
api:
|
|
36
|
-
fetchSetting:
|
|
35
|
+
api: t,
|
|
36
|
+
fetchSetting: r = {},
|
|
37
37
|
beforeFetch: a,
|
|
38
|
-
afterFetch:
|
|
39
|
-
pagination:
|
|
40
|
-
delEmptyParams:
|
|
38
|
+
afterFetch: o,
|
|
39
|
+
pagination: s,
|
|
40
|
+
delEmptyParams: c,
|
|
41
41
|
transformParams: w,
|
|
42
|
-
extraParams:
|
|
43
|
-
} =
|
|
44
|
-
if (!(!
|
|
42
|
+
extraParams: u
|
|
43
|
+
} = i(m);
|
|
44
|
+
if (!(!t || !B(t)))
|
|
45
45
|
try {
|
|
46
|
-
|
|
47
|
-
const { pageField:
|
|
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
|
-
|
|
55
|
+
r
|
|
56
56
|
);
|
|
57
|
-
let
|
|
58
|
-
const { currentPage:
|
|
59
|
-
|
|
57
|
+
let g = {}, l = e;
|
|
58
|
+
const { currentPage: j = 1, pageSize: _ = ce } = i(
|
|
59
|
+
D
|
|
60
60
|
);
|
|
61
61
|
if (w) {
|
|
62
|
-
if (
|
|
63
|
-
|
|
62
|
+
if (ee(s) && !s)
|
|
63
|
+
g = {};
|
|
64
64
|
else {
|
|
65
|
-
const
|
|
66
|
-
|
|
65
|
+
const p = e && e.page || j;
|
|
66
|
+
g[n] = s?.pageIsZero ? p - 1 : p, g[d] = _;
|
|
67
67
|
}
|
|
68
|
-
if (l =
|
|
69
|
-
const
|
|
70
|
-
l = { ...l, ...
|
|
68
|
+
if (l = ie(e, g), a && B(a)) {
|
|
69
|
+
const p = await a(l);
|
|
70
|
+
l = { ...l, ...p };
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
c && te(
|
|
73
73
|
l,
|
|
74
|
-
|
|
74
|
+
ae(c) ? c === "strict" : !1
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
|
-
l && !
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
const S =
|
|
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
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
currentPage:
|
|
86
|
-
}), await
|
|
82
|
+
const p = Math.ceil(S / _);
|
|
83
|
+
if (j > p)
|
|
84
|
+
return h({
|
|
85
|
+
currentPage: p
|
|
86
|
+
}), await T(e);
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return o && B(o) && (b = await o(b) || b), f.value = b, z.value = b, h({
|
|
89
89
|
total: S || 0
|
|
90
|
-
}),
|
|
91
|
-
currentPage:
|
|
92
|
-
}),
|
|
93
|
-
items:
|
|
90
|
+
}), e && e.page && h({
|
|
91
|
+
currentPage: e.page || 1
|
|
92
|
+
}), x("fetch-success", {
|
|
93
|
+
items: i(b),
|
|
94
94
|
total: S
|
|
95
|
-
}),
|
|
96
|
-
} catch (
|
|
97
|
-
console.log(
|
|
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
|
-
|
|
102
|
-
|
|
101
|
+
U(() => {
|
|
102
|
+
P(!1);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function v() {
|
|
107
|
+
return z.value;
|
|
108
108
|
}
|
|
109
|
-
async function
|
|
110
|
-
return
|
|
111
|
-
currentPage:
|
|
112
|
-
}), await
|
|
109
|
+
async function X(e) {
|
|
110
|
+
return h({
|
|
111
|
+
currentPage: e?.page || 1
|
|
112
|
+
}), await T(e);
|
|
113
113
|
}
|
|
114
|
-
async function
|
|
115
|
-
return
|
|
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(
|
|
118
|
-
const
|
|
119
|
-
if (a)
|
|
120
|
-
|
|
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
|
|
123
|
-
const a =
|
|
124
|
-
if (!!
|
|
125
|
-
if (
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
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
|
|
142
|
+
await c.insertChild(d, n);
|
|
130
143
|
else
|
|
131
144
|
for (const d of a)
|
|
132
|
-
await
|
|
145
|
+
await c.insert(d);
|
|
133
146
|
} else
|
|
134
|
-
for (const
|
|
135
|
-
await
|
|
136
|
-
else if (
|
|
137
|
-
for (const
|
|
138
|
-
await
|
|
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
|
|
141
|
-
await
|
|
142
|
-
if (
|
|
143
|
-
const { total:
|
|
144
|
-
|
|
145
|
-
total:
|
|
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
|
|
161
|
+
return i(f);
|
|
149
162
|
}
|
|
150
|
-
function
|
|
151
|
-
const
|
|
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
|
-
|
|
154
|
-
const { total:
|
|
155
|
-
|
|
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(
|
|
158
|
-
|
|
170
|
+
function A(e) {
|
|
171
|
+
f.value = e;
|
|
159
172
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
173
|
+
function $() {
|
|
174
|
+
return E.value;
|
|
162
175
|
}
|
|
163
|
-
function
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
166
|
-
const
|
|
167
|
-
for (const
|
|
168
|
-
if (String(a[
|
|
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(
|
|
184
|
+
A(r);
|
|
172
185
|
} else
|
|
173
|
-
A(
|
|
186
|
+
A(v());
|
|
174
187
|
}
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
}),
|
|
191
|
-
() =>
|
|
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
|
-
|
|
216
|
+
i(m).watchApiFetch && !R.value && i(m).immediate && T();
|
|
194
217
|
}
|
|
195
218
|
), {
|
|
196
219
|
setTableData: A,
|
|
197
|
-
updateTableData:
|
|
220
|
+
updateTableData: Z,
|
|
198
221
|
updateTableDataRecord: J,
|
|
199
|
-
insertTableDataRecord:
|
|
200
|
-
deleteTableDataRecord:
|
|
201
|
-
reload:
|
|
202
|
-
handleTableChange:
|
|
203
|
-
getDataSourceRef:
|
|
204
|
-
getDataSource:
|
|
205
|
-
getRawDataSource:
|
|
206
|
-
tableSearch:
|
|
207
|
-
expandTreeLevel:
|
|
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
|
-
|
|
234
|
+
he as useDataSource
|
|
212
235
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as
|
|
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(
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
[() =>
|
|
7
|
-
([
|
|
8
|
-
|
|
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
|
|
13
|
-
function
|
|
14
|
-
|
|
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:
|
|
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
|
|
3
|
+
import { ref as l, unref as u, watch as b, toRaw as p } from "vue";
|
|
4
4
|
function h(r) {
|
|
5
|
-
const n =
|
|
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
|
-
}), !(
|
|
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 =
|
|
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
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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;
|