@aplus-frontend/ui 7.20.2 → 7.20.3
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/es/src/ag-grid/editable/form-item.vue.mjs +72 -70
- package/es/src/ag-grid/editable/index.vue.mjs +59 -57
- package/es/src/ag-grid/editable/interface.d.ts +7 -0
- package/es/src/ag-grid/hooks/use-columns.mjs +18 -18
- package/es/src/ag-grid/hooks/use-editable-api.d.ts +1 -0
- package/es/src/ag-grid/hooks/use-editable-api.mjs +107 -88
- package/es/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -0
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +105 -86
- package/es/src/ag-grid/index.vue.mjs +169 -166
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +14 -14
- package/es/src/ap-list/hooks/use-offline-list.mjs +31 -18
- package/es/src/check-card/index.vue.d.ts +0 -1
- package/es/src/check-card/index.vue2.mjs +3 -5
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +7 -0
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-api.d.ts +1 -0
- package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -0
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +0 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,149 +1,168 @@
|
|
|
1
|
-
import { isFunction as
|
|
2
|
-
import { shallowRef as
|
|
1
|
+
import { isFunction as h, isUndefined as m, isNumber as K, cloneDeep as G, isArray as F, isString as N } from "lodash-unified";
|
|
2
|
+
import { shallowRef as W, computed as $, unref as w, isRef as q } from "vue";
|
|
3
3
|
import "../../utils/index.mjs";
|
|
4
|
-
import { useDevWarning as
|
|
5
|
-
import { isDef as
|
|
6
|
-
let
|
|
7
|
-
function
|
|
8
|
-
return `_ag_grid${
|
|
4
|
+
import { useDevWarning as C } from "../../utils/warning.mjs";
|
|
5
|
+
import { isDef as R } from "../../utils/is.mjs";
|
|
6
|
+
let H = 0;
|
|
7
|
+
function x() {
|
|
8
|
+
return `_ag_grid${H++}`;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
10
|
+
const Y = (u, y, i, d) => {
|
|
11
|
+
const I = C("EditableAgGrid"), v = W([]), B = $(() => q(y) ? w(y) : y);
|
|
12
|
+
function L(e, r) {
|
|
13
|
+
const f = w(i)?.length || 0;
|
|
14
|
+
if (R(u.maxLength) && f >= u.maxLength || !e && h(u.rowKey))
|
|
15
15
|
return;
|
|
16
|
-
const
|
|
17
|
-
...e || { [u.rowKey]:
|
|
16
|
+
const o = {
|
|
17
|
+
...e || { [u.rowKey]: x() }
|
|
18
18
|
};
|
|
19
19
|
if (!i.value) {
|
|
20
|
-
i.value = [
|
|
20
|
+
i.value = [o];
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
(n,
|
|
25
|
-
).filter(Boolean), i.value.splice(
|
|
23
|
+
m(r) ? i.value.push(o) : (v.value = i.value.map(
|
|
24
|
+
(n, t) => t < r ? null : c(n, t, u.rowKey)
|
|
25
|
+
).filter(Boolean), i.value.splice(r, 0, o));
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
27
|
+
function U(e, r) {
|
|
28
|
+
const f = w(i)?.length || 0;
|
|
29
|
+
if (R(u.maxLength) && f >= u.maxLength || !e && h(u.rowKey))
|
|
30
30
|
return;
|
|
31
|
-
const
|
|
31
|
+
const o = {
|
|
32
|
+
...e || { [u.rowKey]: x() }
|
|
33
|
+
};
|
|
34
|
+
if (!i.value) {
|
|
35
|
+
i.value = [o];
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const n = i.value.findIndex(
|
|
39
|
+
(s, l) => c(s, l, u.rowKey) === r
|
|
40
|
+
), t = m(r) || n === -1 || n === i.value?.length - 1 ? void 0 : n + 1;
|
|
41
|
+
m(t) ? i.value.push(o) : (v.value = i.value.map(
|
|
42
|
+
(s, l) => l < t ? null : c(s, l, u.rowKey)
|
|
43
|
+
).filter(Boolean), i.value.splice(t, 0, o));
|
|
44
|
+
}
|
|
45
|
+
function j(e, r = "suffix") {
|
|
46
|
+
const f = w(i)?.length || 0, o = K(e) ? e : e.length;
|
|
47
|
+
if (R(u.maxLength) && f + o > u.maxLength || K(e) && h(u.rowKey))
|
|
48
|
+
return;
|
|
49
|
+
const n = K(e) ? new Array(e).fill(0).map(() => ({ [u.rowKey]: x() })) : G(e);
|
|
32
50
|
if (!i.value) {
|
|
33
51
|
i.value = [...n];
|
|
34
52
|
return;
|
|
35
53
|
}
|
|
36
|
-
|
|
37
|
-
(
|
|
54
|
+
r === "suffix" ? i.value.push(...n) : (v.value = i.value.map(
|
|
55
|
+
(t, s) => c(t, s, u.rowKey)
|
|
38
56
|
), i.value.unshift(...n));
|
|
39
57
|
}
|
|
40
|
-
function
|
|
41
|
-
const
|
|
42
|
-
(n) => !
|
|
43
|
-
),
|
|
44
|
-
(n) =>
|
|
58
|
+
function A(e) {
|
|
59
|
+
const r = F(e) ? e : [e], f = i.value.filter(
|
|
60
|
+
(n) => !r.includes(n)
|
|
61
|
+
), o = i.value.findIndex(
|
|
62
|
+
(n) => r.includes(n)
|
|
45
63
|
);
|
|
46
|
-
|
|
47
|
-
(n,
|
|
48
|
-
).filter(Boolean),
|
|
64
|
+
v.value = i.value.map(
|
|
65
|
+
(n, t) => t <= o ? null : c(n, t, u.rowKey)
|
|
66
|
+
).filter(Boolean), d?.(f);
|
|
49
67
|
}
|
|
50
|
-
function c(e,
|
|
51
|
-
if (
|
|
52
|
-
return
|
|
68
|
+
function c(e, r, f) {
|
|
69
|
+
if (f)
|
|
70
|
+
return N(f) ? e[f] : f(e, r);
|
|
53
71
|
}
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
72
|
+
function O(e) {
|
|
73
|
+
const r = new Set(F(e) ? e : [e]);
|
|
74
|
+
if (r.size === 0)
|
|
57
75
|
return;
|
|
58
|
-
const
|
|
59
|
-
(n,
|
|
60
|
-
),
|
|
61
|
-
(n,
|
|
76
|
+
const f = i.value.filter(
|
|
77
|
+
(n, t) => !r.has(c(n, t, u.rowKey))
|
|
78
|
+
), o = i.value.findIndex(
|
|
79
|
+
(n, t) => r.has(c(n, t, u.rowKey))
|
|
62
80
|
);
|
|
63
|
-
|
|
64
|
-
(n,
|
|
65
|
-
).filter(Boolean),
|
|
81
|
+
v.value = i.value.map(
|
|
82
|
+
(n, t) => t <= o ? null : c(n, t, u.rowKey)
|
|
83
|
+
).filter(Boolean), d?.(f);
|
|
66
84
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
85
|
+
function k(e) {
|
|
86
|
+
return I(
|
|
69
87
|
!u.supressForceRowUpdate,
|
|
70
88
|
"usage",
|
|
71
89
|
'Avoid using getRowData/setRowData methods while suppressForceRowUpdate is enabled."'
|
|
72
90
|
), w(i)?.[e];
|
|
73
91
|
}
|
|
74
|
-
function
|
|
92
|
+
function _(e) {
|
|
75
93
|
return i.value?.find(
|
|
76
|
-
(
|
|
94
|
+
(r, f) => c(r, f, u.rowKey) === e
|
|
77
95
|
);
|
|
78
96
|
}
|
|
79
|
-
function
|
|
97
|
+
function E() {
|
|
80
98
|
return w(i);
|
|
81
99
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
100
|
+
function S(e, r, f = !0) {
|
|
101
|
+
I(
|
|
84
102
|
!u.supressForceRowUpdate,
|
|
85
103
|
"usage",
|
|
86
104
|
'Avoid using getRowData/setRowData methods while suppressForceRowUpdate is enabled."'
|
|
87
|
-
),
|
|
105
|
+
), B.value?.setFieldValue?.(
|
|
88
106
|
u.name,
|
|
89
107
|
void 0,
|
|
90
108
|
!0,
|
|
91
|
-
(
|
|
92
|
-
const
|
|
93
|
-
(
|
|
109
|
+
(o, n) => {
|
|
110
|
+
const t = i.value.findIndex(
|
|
111
|
+
(l, g) => e === g
|
|
94
112
|
);
|
|
95
|
-
if (!~
|
|
113
|
+
if (!~t)
|
|
96
114
|
return;
|
|
97
115
|
const s = c(
|
|
98
|
-
i.value[
|
|
99
|
-
|
|
116
|
+
i.value[t],
|
|
117
|
+
t,
|
|
100
118
|
u.rowKey
|
|
101
119
|
);
|
|
102
|
-
if (s && !(!
|
|
103
|
-
if (!
|
|
104
|
-
const
|
|
105
|
-
for (const
|
|
106
|
-
|
|
120
|
+
if (s && !(!o[n] || !o[n][s])) {
|
|
121
|
+
if (!f) {
|
|
122
|
+
const l = Object.keys(o[n][s]);
|
|
123
|
+
for (const g of l)
|
|
124
|
+
g !== u.rowKey && delete o[n][s][g];
|
|
107
125
|
}
|
|
108
|
-
Object.assign(
|
|
126
|
+
Object.assign(o[n][s], { ...r });
|
|
109
127
|
}
|
|
110
128
|
}
|
|
111
129
|
);
|
|
112
130
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
131
|
+
function T(e, r, f = !0) {
|
|
132
|
+
B.value?.setFieldValue?.(
|
|
115
133
|
u.name,
|
|
116
134
|
void 0,
|
|
117
135
|
!0,
|
|
118
|
-
(
|
|
119
|
-
if (!(!
|
|
120
|
-
if (!
|
|
121
|
-
const
|
|
122
|
-
for (const s of
|
|
123
|
-
s !== u.rowKey && delete
|
|
136
|
+
(o, n) => {
|
|
137
|
+
if (!(!o[n] || !o[n][e])) {
|
|
138
|
+
if (!f) {
|
|
139
|
+
const t = Object.keys(o[n][e]);
|
|
140
|
+
for (const s of t)
|
|
141
|
+
s !== u.rowKey && delete o[n][s][s];
|
|
124
142
|
}
|
|
125
|
-
Object.assign(
|
|
143
|
+
Object.assign(o[n][e], { ...r });
|
|
126
144
|
}
|
|
127
145
|
}
|
|
128
146
|
);
|
|
129
147
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
148
|
+
function z() {
|
|
149
|
+
d?.([]);
|
|
132
150
|
}
|
|
133
151
|
return {
|
|
134
|
-
add:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
152
|
+
add: L,
|
|
153
|
+
addByKey: U,
|
|
154
|
+
addMultiple: j,
|
|
155
|
+
remove: A,
|
|
156
|
+
removeByKey: O,
|
|
157
|
+
getRowData: k,
|
|
158
|
+
getRowsData: E,
|
|
159
|
+
setRowDataByKey: T,
|
|
160
|
+
setRowData: S,
|
|
161
|
+
clear: z,
|
|
162
|
+
refreshRowIds: v,
|
|
163
|
+
getRowDataByKey: _
|
|
145
164
|
};
|
|
146
165
|
};
|
|
147
166
|
export {
|
|
148
|
-
|
|
167
|
+
Y as useEditableApi
|
|
149
168
|
};
|
|
@@ -4,6 +4,7 @@ import { ApFormInternalInstance } from '../../ap-form';
|
|
|
4
4
|
import { EditableAgGridProps } from '../editable/interface';
|
|
5
5
|
export declare const useEditableFormItemApi: <RecordType>(props: EditableAgGridProps<RecordType>, formApi: ApFormInternalInstance | undefined, tableData: Ref<RecordType[]>, shadowName: string) => {
|
|
6
6
|
add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
|
|
7
|
+
addByKey: (defaultValue?: Partial<RecordType>, key?: number) => void;
|
|
7
8
|
addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
|
|
8
9
|
remove: (data: RecordType | RecordType[]) => void;
|
|
9
10
|
removeByKey: (key: Key | Key[]) => void;
|
|
@@ -1,140 +1,159 @@
|
|
|
1
|
-
import { isFunction as
|
|
2
|
-
import { shallowRef as
|
|
1
|
+
import { isFunction as y, isUndefined as d, isNumber as h, cloneDeep as G, isArray as F } from "lodash-unified";
|
|
2
|
+
import { shallowRef as S, unref as w } from "vue";
|
|
3
3
|
import "../../utils/index.mjs";
|
|
4
|
-
import { useDevWarning as
|
|
5
|
-
import { getRowKey as
|
|
6
|
-
import { isDef as
|
|
7
|
-
let
|
|
8
|
-
function
|
|
9
|
-
return `_ag_grid${
|
|
4
|
+
import { useDevWarning as W } from "../../utils/warning.mjs";
|
|
5
|
+
import { getRowKey as t } from "../editable/utils.mjs";
|
|
6
|
+
import { isDef as m } from "../../utils/is.mjs";
|
|
7
|
+
let $ = 0;
|
|
8
|
+
function K() {
|
|
9
|
+
return `_ag_grid${$++}`;
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
11
|
+
const Q = (u, R, e, x) => {
|
|
12
|
+
const v = S([]), I = W("EditableAgGridFormItem");
|
|
13
|
+
function B(n, r) {
|
|
14
|
+
const s = w(e)?.length || 0;
|
|
15
|
+
if (m(u.maxLength) && s >= u.maxLength || !n && y(u.rowKey))
|
|
16
16
|
return;
|
|
17
|
-
const
|
|
18
|
-
...n || { [
|
|
17
|
+
const o = {
|
|
18
|
+
...n || { [u.rowKey]: K() }
|
|
19
19
|
};
|
|
20
|
-
e.value ?
|
|
21
|
-
(i, f) => f <
|
|
22
|
-
).filter(Boolean), e.value.splice(
|
|
20
|
+
e.value ? d(r) ? e.value.push(o) : (v.value = e.value.map(
|
|
21
|
+
(i, f) => f < r ? null : t(i, f, u.rowKey)
|
|
22
|
+
).filter(Boolean), e.value.splice(r, 0, o)) : e.value = [o];
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function L(n, r) {
|
|
25
|
+
const s = w(e)?.length || 0;
|
|
26
|
+
if (m(u.maxLength) && s >= u.maxLength || !n && y(u.rowKey))
|
|
27
|
+
return;
|
|
28
|
+
const o = {
|
|
29
|
+
...n || { [u.rowKey]: K() }
|
|
30
|
+
};
|
|
31
|
+
if (!e.value) {
|
|
32
|
+
e.value = [o];
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const i = e.value.findIndex(
|
|
36
|
+
(l, c) => t(l, c, u.rowKey) === r
|
|
37
|
+
), f = d(r) || i === -1 || i === e.value?.length - 1 ? void 0 : i + 1;
|
|
38
|
+
d(f) ? e.value.push(o) : (v.value = e.value.map(
|
|
39
|
+
(l, c) => c < f ? null : t(l, c, u.rowKey)
|
|
40
|
+
).filter(Boolean), e.value.splice(f, 0, o));
|
|
41
|
+
}
|
|
42
|
+
function A(n, r = "suffix") {
|
|
25
43
|
if (!n)
|
|
26
44
|
return;
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
45
|
+
const s = w(e)?.length || 0, o = h(n) ? n : n.length;
|
|
46
|
+
if (m(u.maxLength) && s + o > u.maxLength || h(n) && y(u.rowKey))
|
|
29
47
|
return;
|
|
30
|
-
const i =
|
|
31
|
-
e.value ?
|
|
32
|
-
(f,
|
|
48
|
+
const i = h(n) ? new Array(n).fill(0).map(() => ({ [u.rowKey]: K() })) : G(n);
|
|
49
|
+
e.value ? r === "suffix" ? e.value.push(...i) : (v.value = e.value.map(
|
|
50
|
+
(f, l) => t(f, l, u.rowKey)
|
|
33
51
|
), e.value.unshift(...i)) : e.value = [...i];
|
|
34
52
|
}
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
(i) => !
|
|
38
|
-
),
|
|
39
|
-
(i) =>
|
|
53
|
+
function U(n) {
|
|
54
|
+
const r = F(n) ? n : [n], s = e.value.filter(
|
|
55
|
+
(i) => !r.includes(i)
|
|
56
|
+
), o = e.value.findIndex(
|
|
57
|
+
(i) => r.includes(i)
|
|
40
58
|
);
|
|
41
|
-
|
|
42
|
-
(i, f) => f <=
|
|
43
|
-
).filter(Boolean),
|
|
59
|
+
v.value = e.value.map(
|
|
60
|
+
(i, f) => f <= o ? null : t(i, f, u.rowKey)
|
|
61
|
+
).filter(Boolean), s.length ? e.value = s : e.value.splice(0, e.value.length);
|
|
44
62
|
}
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
63
|
+
function j(n) {
|
|
64
|
+
const r = new Set(F(n) ? n : [n]);
|
|
65
|
+
if (r.size === 0)
|
|
48
66
|
return;
|
|
49
|
-
const
|
|
50
|
-
(i, f) => !
|
|
51
|
-
),
|
|
52
|
-
(i, f) =>
|
|
67
|
+
const s = e.value.filter(
|
|
68
|
+
(i, f) => !r.has(t(i, f, u.rowKey))
|
|
69
|
+
), o = e.value.findIndex(
|
|
70
|
+
(i, f) => r.has(t(i, f, u.rowKey))
|
|
53
71
|
);
|
|
54
|
-
|
|
55
|
-
(i, f) => f <=
|
|
56
|
-
).filter(Boolean),
|
|
72
|
+
v.value = e.value.map(
|
|
73
|
+
(i, f) => f <= o ? null : t(i, f, u.rowKey)
|
|
74
|
+
).filter(Boolean), s.length ? e.value = s : e.value.splice(0, e.value.length);
|
|
57
75
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
60
|
-
!
|
|
76
|
+
function O(n) {
|
|
77
|
+
return I(
|
|
78
|
+
!u.supressForceRowUpdate,
|
|
61
79
|
"usage",
|
|
62
80
|
'Avoid using getRowData/setRowData methods while suppressForceRowUpdate is enabled."'
|
|
63
81
|
), w(e)?.[n];
|
|
64
82
|
}
|
|
65
|
-
function
|
|
83
|
+
function T(n) {
|
|
66
84
|
return e.value?.find(
|
|
67
|
-
(
|
|
85
|
+
(r, s) => t(r, s, u.rowKey) === n
|
|
68
86
|
);
|
|
69
87
|
}
|
|
70
|
-
function
|
|
88
|
+
function _() {
|
|
71
89
|
return w(e);
|
|
72
90
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
!
|
|
91
|
+
function k(n, r, s = !0) {
|
|
92
|
+
I(
|
|
93
|
+
!u.supressForceRowUpdate,
|
|
76
94
|
"usage",
|
|
77
95
|
'Avoid using getRowData/setRowData methods while suppressForceRowUpdate is enabled."'
|
|
78
|
-
),
|
|
79
|
-
|
|
96
|
+
), R?.setFieldValue?.(
|
|
97
|
+
x,
|
|
80
98
|
void 0,
|
|
81
99
|
!1,
|
|
82
|
-
(
|
|
100
|
+
(o, i) => {
|
|
83
101
|
const f = e.value.findIndex(
|
|
84
|
-
(
|
|
102
|
+
(c, g) => n === g
|
|
85
103
|
);
|
|
86
104
|
if (!~f)
|
|
87
105
|
return;
|
|
88
|
-
const
|
|
106
|
+
const l = t(
|
|
89
107
|
e.value[f],
|
|
90
108
|
f,
|
|
91
|
-
|
|
109
|
+
u.rowKey
|
|
92
110
|
);
|
|
93
|
-
if (
|
|
94
|
-
if (!
|
|
95
|
-
const
|
|
96
|
-
for (const
|
|
97
|
-
|
|
111
|
+
if (l && !(!o[i] || !o[i][l])) {
|
|
112
|
+
if (!s) {
|
|
113
|
+
const c = Object.keys(o[i][l]);
|
|
114
|
+
for (const g of c)
|
|
115
|
+
g !== u.rowKey && delete o[i][l][g];
|
|
98
116
|
}
|
|
99
|
-
Object.assign(
|
|
117
|
+
Object.assign(o[i][l], { ...r });
|
|
100
118
|
}
|
|
101
119
|
}
|
|
102
120
|
);
|
|
103
121
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
106
|
-
|
|
122
|
+
function E(n, r, s = !0) {
|
|
123
|
+
R?.setFieldValue?.(
|
|
124
|
+
x,
|
|
107
125
|
void 0,
|
|
108
126
|
!1,
|
|
109
|
-
(
|
|
110
|
-
if (!(!
|
|
111
|
-
if (!
|
|
112
|
-
const f = Object.keys(
|
|
113
|
-
for (const
|
|
114
|
-
|
|
127
|
+
(o, i) => {
|
|
128
|
+
if (!(!o[i] || !o[i][n])) {
|
|
129
|
+
if (!s) {
|
|
130
|
+
const f = Object.keys(o[i][n]);
|
|
131
|
+
for (const l of f)
|
|
132
|
+
l !== u.rowKey && delete o[i][n][l];
|
|
115
133
|
}
|
|
116
|
-
Object.assign(
|
|
134
|
+
Object.assign(o[i][n], { ...r });
|
|
117
135
|
}
|
|
118
136
|
}
|
|
119
137
|
);
|
|
120
138
|
}
|
|
121
|
-
function
|
|
139
|
+
function z() {
|
|
122
140
|
e.value = [];
|
|
123
141
|
}
|
|
124
142
|
return {
|
|
125
|
-
add:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
143
|
+
add: B,
|
|
144
|
+
addByKey: L,
|
|
145
|
+
addMultiple: A,
|
|
146
|
+
remove: U,
|
|
147
|
+
removeByKey: j,
|
|
148
|
+
getRowData: O,
|
|
149
|
+
getRowsData: _,
|
|
150
|
+
setRowDataByKey: E,
|
|
151
|
+
setRowData: k,
|
|
152
|
+
clear: z,
|
|
153
|
+
refreshRowIds: v,
|
|
154
|
+
getRowDataByKey: T
|
|
136
155
|
};
|
|
137
156
|
};
|
|
138
157
|
export {
|
|
139
|
-
|
|
158
|
+
Q as useEditableFormItemApi
|
|
140
159
|
};
|