@aplus-frontend/ui 0.5.35 → 0.5.37
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/ap-grid/editable/form-item.vue.mjs +62 -56
- package/es/src/ap-grid/editable/index.vue.mjs +82 -76
- package/es/src/ap-grid/editable/interface.d.ts +4 -0
- package/es/src/ap-grid/index.vue.mjs +73 -75
- package/es/src/ap-grid/interface.d.ts +5 -0
- package/es/src/ap-grid/utils/table.mjs +13 -10
- package/es/src/ap-list/index.vue.mjs +147 -140
- package/es/src/ap-list/interface.d.ts +4 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +28 -30
- package/es/src/editable-table/index.vue.mjs +1 -1
- package/es/src/editable-table/interface.d.ts +4 -0
- package/es/src/editable-table/utils.mjs +54 -52
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/interface.d.ts +4 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +5 -0
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +4 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +4 -0
- package/lib/src/editable-table/utils.js +1 -1
- package/package.json +1 -1
- package/theme/ap-list/index.css +38 -4
- package/theme/ap-list/index.less +41 -3
- package/theme/index.css +38 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as
|
|
2
|
-
import { ApForm as
|
|
1
|
+
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as g, withCtx as y, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
|
+
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { isDef as w } from "../../utils/index.mjs";
|
|
@@ -9,7 +9,7 @@ import { useInjectForm as te } from "../../ap-form/context.mjs";
|
|
|
9
9
|
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
11
|
import ne from "../index.vue.mjs";
|
|
12
|
-
const
|
|
12
|
+
const ye = /* @__PURE__ */ P({
|
|
13
13
|
name: "EditableGrid",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -154,10 +154,10 @@ const ge = /* @__PURE__ */ P({
|
|
|
154
154
|
default: () => ({})
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
-
setup(
|
|
158
|
-
expose:
|
|
157
|
+
setup(b, {
|
|
158
|
+
expose: x
|
|
159
159
|
}) {
|
|
160
|
-
const R = A(), l =
|
|
160
|
+
const R = A(), l = b, {
|
|
161
161
|
b: B
|
|
162
162
|
} = ae("editable-grid");
|
|
163
163
|
function S(e, o) {
|
|
@@ -166,108 +166,114 @@ const ge = /* @__PURE__ */ P({
|
|
|
166
166
|
const {
|
|
167
167
|
internalInstance: t,
|
|
168
168
|
model: F
|
|
169
|
-
} = te(), p = H(l.name), d = h(S(
|
|
170
|
-
|
|
169
|
+
} = te(), p = H(l.name), d = h(S(u(F), p.value) || []), N = C.useWatch(p);
|
|
170
|
+
K(() => N.value, async (e) => {
|
|
171
171
|
var o;
|
|
172
|
-
await
|
|
172
|
+
await W(), d.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
173
173
|
}, {
|
|
174
174
|
deep: !0
|
|
175
175
|
});
|
|
176
|
-
const c = h(), v = le("valueTypeMap"),
|
|
177
|
-
function
|
|
178
|
-
var
|
|
179
|
-
const n = ((
|
|
176
|
+
const c = h(), v = le("valueTypeMap"), k = oe(l, v);
|
|
177
|
+
function D(e, o) {
|
|
178
|
+
var s;
|
|
179
|
+
const n = ((s = u(d)) == null ? void 0 : s.length) || 0;
|
|
180
180
|
if (w(l.maxLength) && n >= l.maxLength)
|
|
181
181
|
return;
|
|
182
182
|
const a = {
|
|
183
183
|
...e || {}
|
|
184
184
|
};
|
|
185
|
-
t == null || t.setFieldValue(l.name, a, !0, (
|
|
186
|
-
if (!
|
|
187
|
-
|
|
185
|
+
t == null || t.setFieldValue(l.name, a, !0, (r, f) => {
|
|
186
|
+
if (!r[f]) {
|
|
187
|
+
r[f] = [a];
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
I(o) ?
|
|
190
|
+
I(o) ? r[f].push(a) : r[f].splice(o, 0, a);
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
var
|
|
195
|
-
const n = ((
|
|
193
|
+
function L(e, o = "suffix") {
|
|
194
|
+
var r;
|
|
195
|
+
const n = ((r = u(d)) == null ? void 0 : r.length) || 0, a = m(e) ? e : e.length;
|
|
196
196
|
if (w(l.maxLength) && n + a > l.maxLength)
|
|
197
197
|
return;
|
|
198
|
-
const
|
|
199
|
-
t == null || t.setFieldValue(l.name,
|
|
200
|
-
if (!
|
|
201
|
-
|
|
198
|
+
const s = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
|
|
199
|
+
t == null || t.setFieldValue(l.name, s, !0, (f, i) => {
|
|
200
|
+
if (!f[i]) {
|
|
201
|
+
f[i] = [...s];
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
o === "suffix" ?
|
|
204
|
+
o === "suffix" ? f[i].push(...s) : f[i].unshift(...s);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function V(e) {
|
|
208
208
|
const o = new Set(m(e) ? [e] : e);
|
|
209
209
|
t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
|
|
210
|
-
n[a] = n[a].filter((
|
|
210
|
+
n[a] = n[a].filter((s, r) => !o.has(r));
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function T() {
|
|
214
|
+
return u(d);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function _(e) {
|
|
217
217
|
var o;
|
|
218
|
-
return (o =
|
|
218
|
+
return (o = u(d)) == null ? void 0 : o[e];
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
t == null || t.setFieldValue(l.name, void 0, !0, (a,
|
|
222
|
-
!a[
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
function j(e, o, n = !0) {
|
|
221
|
+
t == null || t.setFieldValue(l.name, void 0, !0, (a, s) => {
|
|
222
|
+
if (!(!a[s] || !a[s][e])) {
|
|
223
|
+
if (!n) {
|
|
224
|
+
const r = Object.keys(a[s][e]);
|
|
225
|
+
for (const f of r)
|
|
226
|
+
f !== l.rowKey && delete a[s][e][f];
|
|
227
|
+
}
|
|
228
|
+
Object.assign(a[s][e], {
|
|
229
|
+
...o
|
|
230
|
+
});
|
|
231
|
+
}
|
|
226
232
|
});
|
|
227
233
|
}
|
|
228
|
-
function
|
|
234
|
+
function E(e) {
|
|
229
235
|
t == null || t.setFieldValue(l.name, e);
|
|
230
236
|
}
|
|
231
|
-
function
|
|
237
|
+
function O(e) {
|
|
232
238
|
var n;
|
|
233
239
|
const o = e === "end" ? d.value.length - 1 : e;
|
|
234
240
|
(n = c.value) == null || n.scrollToRow(o);
|
|
235
241
|
}
|
|
236
|
-
function
|
|
242
|
+
function z() {
|
|
237
243
|
var e;
|
|
238
244
|
(e = t == null ? void 0 : t.setFieldValue) == null || e.call(t, l.name, []);
|
|
239
245
|
}
|
|
240
|
-
return
|
|
241
|
-
add:
|
|
242
|
-
remove:
|
|
243
|
-
getRowData:
|
|
244
|
-
getRowsData:
|
|
245
|
-
setRowData:
|
|
246
|
-
addMultiple:
|
|
247
|
-
scrollTo:
|
|
248
|
-
setTableData:
|
|
249
|
-
clear:
|
|
250
|
-
}), (e, o) => (U(),
|
|
246
|
+
return x({
|
|
247
|
+
add: D,
|
|
248
|
+
remove: V,
|
|
249
|
+
getRowData: _,
|
|
250
|
+
getRowsData: T,
|
|
251
|
+
setRowData: j,
|
|
252
|
+
addMultiple: L,
|
|
253
|
+
scrollTo: O,
|
|
254
|
+
setTableData: E,
|
|
255
|
+
clear: z
|
|
256
|
+
}), (e, o) => (U(), G(u(C).FormItem, g(e.formItem, {
|
|
251
257
|
name: e.name,
|
|
252
258
|
label: e.label
|
|
253
259
|
}), {
|
|
254
|
-
default:
|
|
260
|
+
default: y(() => [$(ne, g(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
255
261
|
ref_key: "tableRef",
|
|
256
262
|
ref: c,
|
|
257
|
-
class:
|
|
258
|
-
columns:
|
|
263
|
+
class: u(B)(),
|
|
264
|
+
columns: u(k),
|
|
259
265
|
"data-source": d.value,
|
|
260
266
|
"search-form": !1
|
|
261
267
|
}), q({
|
|
262
268
|
_: 2
|
|
263
269
|
}, [J(R, (n, a) => ({
|
|
264
270
|
name: a,
|
|
265
|
-
fn:
|
|
271
|
+
fn: y((s) => [Q(e.$slots, a, X(Y(s || {})))])
|
|
266
272
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
267
273
|
_: 3
|
|
268
274
|
}, 16, ["name", "label"]));
|
|
269
275
|
}
|
|
270
276
|
});
|
|
271
277
|
export {
|
|
272
|
-
|
|
278
|
+
ye as default
|
|
273
279
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as U, useSlots as $, ref as w, watch as x, unref as u, createBlock as q, openBlock as J, withCtx as h, createVNode as v, mergeProps as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as M, guardReactiveProps as ee } from "vue";
|
|
2
|
-
import { ApForm as
|
|
3
|
-
import { isEqual as ae, isArray as
|
|
2
|
+
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
|
+
import { isEqual as ae, isArray as b, isUndefined as te, isNumber as g, cloneDeep as oe, omit as le } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { isDef as
|
|
6
|
+
import { isDef as R } from "../../utils/index.mjs";
|
|
7
7
|
import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
|
|
8
8
|
import "../index.vue2.mjs";
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { useControllableValue as
|
|
9
|
+
import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useControllableValue as re } from "../../hooks/useControllableValue.mjs";
|
|
11
11
|
import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
12
|
import ie from "../index.vue.mjs";
|
|
13
|
-
const
|
|
13
|
+
const be = /* @__PURE__ */ U({
|
|
14
14
|
name: "EditableGrid",
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
@@ -160,116 +160,122 @@ const Re = /* @__PURE__ */ U({
|
|
|
160
160
|
}) {
|
|
161
161
|
const N = $(), t = B, {
|
|
162
162
|
b: V
|
|
163
|
-
} =
|
|
163
|
+
} = se("editable-grid"), _ = F, C = w(), {
|
|
164
164
|
value: m,
|
|
165
|
-
updateValue:
|
|
166
|
-
} =
|
|
165
|
+
updateValue: k
|
|
166
|
+
} = re(t, _), f = w(), L = ue("valueTypeMap"), c = y.useWatch(t.name, f);
|
|
167
167
|
x(() => c.value, (e) => {
|
|
168
168
|
var a;
|
|
169
|
-
|
|
169
|
+
k(e), (a = t.onChange) == null || a.call(t, e);
|
|
170
170
|
}, {
|
|
171
171
|
deep: !0,
|
|
172
172
|
flush: "post"
|
|
173
173
|
}), x(m, (e) => {
|
|
174
174
|
var a;
|
|
175
|
-
e !== u(c) && (ae(e, u(c)) || (a =
|
|
175
|
+
e !== u(c) && (ae(e, u(c)) || (a = f.value) == null || a.setFieldValue(t.name, e));
|
|
176
176
|
}, {
|
|
177
177
|
deep: !0
|
|
178
178
|
});
|
|
179
|
-
const
|
|
180
|
-
function
|
|
179
|
+
const E = ne(t, L);
|
|
180
|
+
function D() {
|
|
181
181
|
var e;
|
|
182
|
-
(e =
|
|
182
|
+
(e = f.value) == null || e.resetFields();
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return e ? (
|
|
184
|
+
function T(e) {
|
|
185
|
+
return e ? (b(e) ? e : [e]).map((o) => b(o) ? [t.name, ...o] : [t.name, o]) : void 0;
|
|
186
186
|
}
|
|
187
|
-
async function
|
|
188
|
-
var
|
|
189
|
-
const
|
|
190
|
-
return
|
|
187
|
+
async function j(e, a) {
|
|
188
|
+
var l;
|
|
189
|
+
const o = await ((l = f.value) == null ? void 0 : l.validateFields(T(e), a));
|
|
190
|
+
return o == null ? void 0 : o[t.name];
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
var n, r
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
192
|
+
function O(e, a) {
|
|
193
|
+
var s, n, r;
|
|
194
|
+
const o = ((s = u(m)) == null ? void 0 : s.length) || 0;
|
|
195
|
+
if (R(t.maxLength) && o >= t.maxLength)
|
|
196
196
|
return;
|
|
197
|
-
const
|
|
197
|
+
const l = {
|
|
198
198
|
...e || {}
|
|
199
199
|
};
|
|
200
|
-
(
|
|
201
|
-
if (!d[
|
|
202
|
-
d[
|
|
200
|
+
(r = (n = f.value) == null ? void 0 : n.setFieldValue) == null || r.call(n, t.name, l, !0, (d, i) => {
|
|
201
|
+
if (!d[i]) {
|
|
202
|
+
d[i] = [l];
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
te(a) ? d[
|
|
205
|
+
te(a) ? d[i].push(l) : d[i].splice(a, 0, l);
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
var
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
208
|
+
function A(e, a = "suffix") {
|
|
209
|
+
var n, r, d;
|
|
210
|
+
const o = ((n = u(m)) == null ? void 0 : n.length) || 0, l = g(e) ? e : e.length;
|
|
211
|
+
if (R(t.maxLength) && o + l > t.maxLength)
|
|
212
212
|
return;
|
|
213
|
-
const
|
|
214
|
-
(d = (
|
|
215
|
-
if (!
|
|
216
|
-
|
|
213
|
+
const s = g(e) ? new Array(e).fill(0).map(() => ({})) : oe(e);
|
|
214
|
+
(d = (r = f.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, t.name, s, !0, (i, p) => {
|
|
215
|
+
if (!i[p]) {
|
|
216
|
+
i[p] = [...s];
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
|
-
a === "suffix" ?
|
|
219
|
+
a === "suffix" ? i[p].push(...s) : i[p].unshift(...s);
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
var
|
|
224
|
-
const a = new Set(
|
|
225
|
-
(
|
|
226
|
-
n
|
|
222
|
+
function z(e) {
|
|
223
|
+
var o, l;
|
|
224
|
+
const a = new Set(g(e) ? [e] : e);
|
|
225
|
+
(l = (o = f.value) == null ? void 0 : o.setFieldValue) == null || l.call(o, t.name, void 0, !0, (s, n) => {
|
|
226
|
+
s[n] = s[n].filter((r, d) => !a.has(d));
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function I() {
|
|
230
230
|
return u(m);
|
|
231
231
|
}
|
|
232
232
|
function P(e) {
|
|
233
233
|
var a;
|
|
234
|
-
(a =
|
|
234
|
+
(a = f.value) == null || a.setFieldValue(t.name, e);
|
|
235
235
|
}
|
|
236
236
|
function H(e) {
|
|
237
237
|
var a;
|
|
238
238
|
return (a = u(m)) == null ? void 0 : a[e];
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
var
|
|
242
|
-
(
|
|
243
|
-
!r
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
240
|
+
function K(e, a, o = !0) {
|
|
241
|
+
var l, s;
|
|
242
|
+
(s = (l = f.value) == null ? void 0 : l.setFieldValue) == null || s.call(l, t.name, void 0, !0, (n, r) => {
|
|
243
|
+
if (!(!n[r] || !n[r][e])) {
|
|
244
|
+
if (!o) {
|
|
245
|
+
const d = Object.keys(n[r][e]);
|
|
246
|
+
for (const i of d)
|
|
247
|
+
i !== t.rowKey && delete n[r][e][i];
|
|
248
|
+
}
|
|
249
|
+
Object.assign(n[r][e], {
|
|
250
|
+
...a
|
|
251
|
+
});
|
|
252
|
+
}
|
|
247
253
|
});
|
|
248
254
|
}
|
|
249
|
-
function
|
|
250
|
-
var
|
|
255
|
+
function W(e) {
|
|
256
|
+
var o;
|
|
251
257
|
const a = e === "end" ? m.value.length - 1 : e;
|
|
252
|
-
(
|
|
258
|
+
(o = C.value) == null || o.scrollToRow(a);
|
|
253
259
|
}
|
|
254
|
-
function
|
|
260
|
+
function G() {
|
|
255
261
|
var e, a;
|
|
256
|
-
(a = (e =
|
|
262
|
+
(a = (e = f.value) == null ? void 0 : e.setFieldValue) == null || a.call(e, t.name, []);
|
|
257
263
|
}
|
|
258
264
|
return S({
|
|
259
|
-
resetFields:
|
|
260
|
-
validateFields:
|
|
261
|
-
add:
|
|
262
|
-
remove:
|
|
265
|
+
resetFields: D,
|
|
266
|
+
validateFields: j,
|
|
267
|
+
add: O,
|
|
268
|
+
remove: z,
|
|
263
269
|
getRowData: H,
|
|
264
|
-
getRowsData:
|
|
265
|
-
setRowData:
|
|
266
|
-
addMultiple:
|
|
267
|
-
scrollTo:
|
|
268
|
-
clear:
|
|
270
|
+
getRowsData: I,
|
|
271
|
+
setRowData: K,
|
|
272
|
+
addMultiple: A,
|
|
273
|
+
scrollTo: W,
|
|
274
|
+
clear: G,
|
|
269
275
|
setTableData: P
|
|
270
|
-
}), (e, a) => (J(), q(u(
|
|
276
|
+
}), (e, a) => (J(), q(u(y), {
|
|
271
277
|
ref_key: "formRef",
|
|
272
|
-
ref:
|
|
278
|
+
ref: f,
|
|
273
279
|
"initial-values": {
|
|
274
280
|
[t.name]: u(m)
|
|
275
281
|
},
|
|
@@ -277,22 +283,22 @@ const Re = /* @__PURE__ */ U({
|
|
|
277
283
|
height: "100%"
|
|
278
284
|
}
|
|
279
285
|
}, {
|
|
280
|
-
default: h(() => [v(u(
|
|
286
|
+
default: h(() => [v(u(y).FormItem, {
|
|
281
287
|
name: e.name,
|
|
282
288
|
"no-style": ""
|
|
283
289
|
}, {
|
|
284
|
-
default: h(() => [v(ie, Q(u(
|
|
290
|
+
default: h(() => [v(ie, Q(u(le)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
|
|
285
291
|
ref_key: "tableRef",
|
|
286
|
-
ref:
|
|
292
|
+
ref: C,
|
|
287
293
|
class: u(V)(),
|
|
288
|
-
columns: u(
|
|
294
|
+
columns: u(E),
|
|
289
295
|
"data-source": u(m),
|
|
290
296
|
"search-form": !1
|
|
291
297
|
}), X({
|
|
292
298
|
_: 2
|
|
293
|
-
}, [Y(N, (
|
|
294
|
-
name:
|
|
295
|
-
fn: h((
|
|
299
|
+
}, [Y(N, (o, l) => ({
|
|
300
|
+
name: l,
|
|
301
|
+
fn: h((s) => [Z(e.$slots, l, M(ee(s || {})))])
|
|
296
302
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
297
303
|
_: 3
|
|
298
304
|
}, 8, ["name"])]),
|
|
@@ -301,5 +307,5 @@ const Re = /* @__PURE__ */ U({
|
|
|
301
307
|
}
|
|
302
308
|
});
|
|
303
309
|
export {
|
|
304
|
-
|
|
310
|
+
be as default
|
|
305
311
|
};
|
|
@@ -43,6 +43,10 @@ export type EditableGridColumnType<RecordType = any, ExtraValueType = 'text', Va
|
|
|
43
43
|
editable?: boolean;
|
|
44
44
|
originalNode?: VNode;
|
|
45
45
|
}) => any;
|
|
46
|
+
/**
|
|
47
|
+
* 是否渲染必填标记(只渲染标记不生成校验规则)
|
|
48
|
+
*/
|
|
49
|
+
markRequired?: boolean;
|
|
46
50
|
} : never;
|
|
47
51
|
export type EditableGridProps<RecordType = any> = Omit<ApGridProps<RecordType>, 'columns' | 'dataSource' | 'onChange' | 'card' | 'request' | 'params' | 'defaultData' | 'searchForm' | 'beforeSearchSubmit' | 'manual'> & {
|
|
48
52
|
/**
|