@aplus-frontend/ui 0.6.0-beta.3 → 0.6.0-beta.4

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.
@@ -1,15 +1,15 @@
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 y, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
1
+ import { defineComponent as A, useSlots as H, toRef as W, ref as h, unref as r, watch as G, nextTick as U, createBlock as $, openBlock as q, mergeProps as y, withCtx as g, createVNode as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as I } from "vue";
2
2
  import { ApForm as C } from "../../ap-form/index.mjs";
3
- import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
3
+ import { isArray as w, isUndefined as M, isNumber as m, cloneDeep as ee, omit as oe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { isDef as w } from "../../utils/index.mjs";
6
- import { useGetEditableColumns as oe } from "../hooks/use-editable-columns.mjs";
5
+ import { isDef as b } from "../../utils/index.mjs";
6
+ import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
7
7
  import "../index.vue2.mjs";
8
- import { useInjectForm as te } from "../../ap-form/context.mjs";
9
- import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
8
+ import { useInjectForm as ae } from "../../ap-form/context.mjs";
9
+ import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useGlobalConfig as fe } from "../../config-provider/hooks/use-global-config.mjs";
11
11
  import ne from "../index.vue.mjs";
12
- const ge = /* @__PURE__ */ P({
12
+ const Ce = /* @__PURE__ */ A({
13
13
  name: "EditableGrid",
14
14
  __name: "form-item",
15
15
  props: {
@@ -157,126 +157,134 @@ const ge = /* @__PURE__ */ P({
157
157
  default: () => ({})
158
158
  }
159
159
  },
160
- setup(b, {
161
- expose: x
160
+ setup(x, {
161
+ expose: R
162
162
  }) {
163
- const R = A(), l = b, {
164
- b: B
165
- } = ae("editable-grid");
166
- function S(e, o) {
167
- return Z(o) ? o.reduce((n, a) => n == null ? void 0 : n[a], e) : e == null ? void 0 : e[o];
163
+ const B = H(), l = x, {
164
+ b: S
165
+ } = le("editable-grid");
166
+ function F(e, t) {
167
+ return w(t) ? t.reduce((f, a) => f == null ? void 0 : f[a], e) : e == null ? void 0 : e[t];
168
168
  }
169
169
  const {
170
- internalInstance: t,
171
- model: F
172
- } = te(), p = H(l.name), d = h(S(u(F), p.value) || []), N = C.useWatch(p);
173
- K(() => N.value, async (e) => {
174
- var o;
175
- await W(), d.value = e, (o = l.onChange) == null || o.call(l, e);
170
+ internalInstance: o,
171
+ model: v
172
+ } = ae(), p = W(l.name), d = h(F(r(v), p.value) || []), N = C.useWatch(p);
173
+ G(() => N.value, async (e) => {
174
+ var t;
175
+ await U(), d.value = e, (t = l.onChange) == null || t.call(l, e);
176
176
  }, {
177
177
  deep: !0
178
178
  });
179
- const c = h(), v = le("valueTypeMap"), k = oe(l, v);
180
- function D(e, o) {
181
- var s;
182
- const n = ((s = u(d)) == null ? void 0 : s.length) || 0;
183
- if (w(l.maxLength) && n >= l.maxLength)
179
+ const c = h(), D = fe("valueTypeMap"), V = te(l, D);
180
+ function L(e, t) {
181
+ var n;
182
+ const f = ((n = r(d)) == null ? void 0 : n.length) || 0;
183
+ if (b(l.maxLength) && f >= l.maxLength)
184
184
  return;
185
185
  const a = {
186
186
  ...e || {}
187
187
  };
188
- t == null || t.setFieldValue(l.name, a, !0, (f, r) => {
189
- if (!f[r]) {
190
- f[r] = [a];
188
+ o == null || o.setFieldValue(l.name, a, !0, (s, u) => {
189
+ if (!s[u]) {
190
+ s[u] = [a];
191
191
  return;
192
192
  }
193
- I(o) ? f[r].push(a) : f[r].splice(o, 0, a);
193
+ M(t) ? s[u].push(a) : s[u].splice(t, 0, a);
194
194
  });
195
195
  }
196
- function L(e, o = "suffix") {
197
- var f;
198
- const n = ((f = u(d)) == null ? void 0 : f.length) || 0, a = m(e) ? e : e.length;
199
- if (w(l.maxLength) && n + a > l.maxLength)
196
+ function T(e, t = "suffix") {
197
+ var s;
198
+ const f = ((s = r(d)) == null ? void 0 : s.length) || 0, a = m(e) ? e : e.length;
199
+ if (b(l.maxLength) && f + a > l.maxLength)
200
200
  return;
201
- const s = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
202
- t == null || t.setFieldValue(l.name, s, !0, (r, i) => {
203
- if (!r[i]) {
204
- r[i] = [...s];
201
+ const n = m(e) ? new Array(e).fill(0).map(() => ({})) : ee(e);
202
+ o == null || o.setFieldValue(l.name, n, !0, (u, i) => {
203
+ if (!u[i]) {
204
+ u[i] = [...n];
205
205
  return;
206
206
  }
207
- o === "suffix" ? r[i].push(...s) : r[i].unshift(...s);
207
+ t === "suffix" ? u[i].push(...n) : u[i].unshift(...n);
208
208
  });
209
209
  }
210
- function V(e) {
211
- const o = new Set(m(e) ? [e] : e);
212
- t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
213
- n[a] = n[a].filter((s, f) => !o.has(f));
210
+ function k(e) {
211
+ const t = new Set(m(e) ? [e] : e);
212
+ o == null || o.setFieldValue(l.name, void 0, !0, (f, a) => {
213
+ f[a] = f[a].filter((n, s) => !t.has(s));
214
214
  });
215
215
  }
216
- function T() {
217
- return u(d);
218
- }
219
216
  function _(e) {
220
- var o;
221
- return (o = u(d)) == null ? void 0 : o[e];
217
+ var f;
218
+ const t = new Set(w(e) ? e : [e]);
219
+ t.size !== 0 && ((f = o == null ? void 0 : o.setFieldValue) == null || f.call(o, l.name, void 0, !0, (a, n) => {
220
+ a[n] = a[n].filter((s) => !t.has(s[l.rowKey]));
221
+ }));
222
222
  }
223
- function j(e, o, n = !0) {
224
- t == null || t.setFieldValue(l.name, void 0, !0, (a, s) => {
225
- if (!(!a[s] || !a[s][e])) {
226
- if (!n) {
227
- const f = Object.keys(a[s][e]);
228
- for (const r of f)
229
- r !== l.rowKey && delete a[s][e][r];
223
+ function j() {
224
+ return r(d);
225
+ }
226
+ function E(e) {
227
+ var t;
228
+ return (t = r(d)) == null ? void 0 : t[e];
229
+ }
230
+ function O(e, t, f = !0) {
231
+ o == null || o.setFieldValue(l.name, void 0, !0, (a, n) => {
232
+ if (!(!a[n] || !a[n][e])) {
233
+ if (!f) {
234
+ const s = Object.keys(a[n][e]);
235
+ for (const u of s)
236
+ u !== l.rowKey && delete a[n][e][u];
230
237
  }
231
- Object.assign(a[s][e], {
232
- ...o
238
+ Object.assign(a[n][e], {
239
+ ...t
233
240
  });
234
241
  }
235
242
  });
236
243
  }
237
- function E(e) {
238
- t == null || t.setFieldValue(l.name, e);
244
+ function z(e) {
245
+ o == null || o.setFieldValue(l.name, e);
239
246
  }
240
- function O(e) {
241
- var n;
242
- const o = e === "end" ? d.value.length - 1 : e;
243
- (n = c.value) == null || n.scrollToRow(o);
247
+ function K(e) {
248
+ var f;
249
+ const t = e === "end" ? d.value.length - 1 : e;
250
+ (f = c.value) == null || f.scrollToRow(t);
244
251
  }
245
- function z() {
252
+ function P() {
246
253
  var e;
247
- (e = t == null ? void 0 : t.setFieldValue) == null || e.call(t, l.name, []);
254
+ (e = o == null ? void 0 : o.setFieldValue) == null || e.call(o, l.name, []);
248
255
  }
249
- return x({
250
- add: D,
251
- remove: V,
252
- getRowData: _,
253
- getRowsData: T,
254
- setRowData: j,
255
- addMultiple: L,
256
- scrollTo: O,
257
- setTableData: E,
258
- clear: z
259
- }), (e, o) => (U(), G(u(C).FormItem, y(e.formItem, {
256
+ return R({
257
+ add: L,
258
+ remove: k,
259
+ getRowData: E,
260
+ getRowsData: j,
261
+ setRowData: O,
262
+ addMultiple: T,
263
+ scrollTo: K,
264
+ setTableData: z,
265
+ clear: P,
266
+ removeByKey: _
267
+ }), (e, t) => (q(), $(r(C).FormItem, y(e.formItem, {
260
268
  name: e.name,
261
269
  label: e.label
262
270
  }), {
263
- default: g(() => [$(ne, y(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
271
+ default: g(() => [J(ne, y(r(oe)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
264
272
  ref_key: "tableRef",
265
273
  ref: c,
266
- class: u(B)(),
267
- columns: u(k),
274
+ class: r(S)(),
275
+ columns: r(V),
268
276
  "data-source": d.value,
269
277
  "search-form": !1
270
- }), q({
278
+ }), Q({
271
279
  _: 2
272
- }, [J(R, (n, a) => ({
280
+ }, [X(B, (f, a) => ({
273
281
  name: a,
274
- fn: g((s) => [Q(e.$slots, a, X(Y(s || {})))])
282
+ fn: g((n) => [Y(e.$slots, a, Z(I(n || {})))])
275
283
  }))]), 1040, ["class", "columns", "data-source"])]),
276
284
  _: 3
277
285
  }, 16, ["name", "label"]));
278
286
  }
279
287
  });
280
288
  export {
281
- ge as default
289
+ Ce as default
282
290
  };
@@ -1,16 +1,16 @@
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";
1
+ import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, createBlock as J, openBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
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";
3
+ import { isEqual as ae, isArray as g, isUndefined as oe, isNumber as C, cloneDeep as le, omit as ne } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
6
  import { isDef as R } from "../../utils/index.mjs";
7
- import { useGetEditableColumns as ne } from "../hooks/use-editable-columns.mjs";
7
+ import { useGetEditableColumns as se } from "../hooks/use-editable-columns.mjs";
8
8
  import "../index.vue2.mjs";
9
- import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useControllableValue as re } from "../../hooks/useControllableValue.mjs";
11
- import { useGlobalConfig as ue } from "../../config-provider/hooks/use-global-config.mjs";
12
- import ie from "../index.vue.mjs";
13
- const be = /* @__PURE__ */ U({
9
+ import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as ue } from "../../hooks/useControllableValue.mjs";
11
+ import { useGlobalConfig as ie } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import fe from "../index.vue.mjs";
13
+ const Re = /* @__PURE__ */ $({
14
14
  name: "EditableGrid",
15
15
  __name: "index",
16
16
  props: {
@@ -161,147 +161,155 @@ const be = /* @__PURE__ */ U({
161
161
  expose: S,
162
162
  emit: F
163
163
  }) {
164
- const N = $(), t = B, {
164
+ const N = q(), o = B, {
165
165
  b: V
166
- } = se("editable-grid"), _ = F, C = w(), {
166
+ } = re("editable-grid"), _ = F, w = v(), {
167
167
  value: m,
168
- updateValue: k
169
- } = re(t, _), f = w(), L = ue("valueTypeMap"), c = y.useWatch(t.name, f);
168
+ updateValue: L
169
+ } = ue(o, _), i = v(), k = ie("valueTypeMap"), c = y.useWatch(o.name, i);
170
170
  x(() => c.value, (e) => {
171
- var a;
172
- k(e), (a = t.onChange) == null || a.call(t, e);
171
+ var t;
172
+ L(e), (t = o.onChange) == null || t.call(o, e);
173
173
  }, {
174
174
  deep: !0,
175
175
  flush: "post"
176
176
  }), x(m, (e) => {
177
- var a;
178
- e !== u(c) && (ae(e, u(c)) || (a = f.value) == null || a.setFieldValue(t.name, e));
177
+ var t;
178
+ e !== u(c) && (ae(e, u(c)) || (t = i.value) == null || t.setFieldValue(o.name, e));
179
179
  }, {
180
180
  deep: !0
181
181
  });
182
- const E = ne(t, L);
183
- function D() {
182
+ const D = se(o, k);
183
+ function E() {
184
184
  var e;
185
- (e = f.value) == null || e.resetFields();
185
+ (e = i.value) == null || e.resetFields();
186
186
  }
187
187
  function T(e) {
188
- return e ? (b(e) ? e : [e]).map((o) => b(o) ? [t.name, ...o] : [t.name, o]) : void 0;
188
+ return e ? (g(e) ? e : [e]).map((a) => g(a) ? [o.name, ...a] : [o.name, a]) : void 0;
189
189
  }
190
- async function j(e, a) {
190
+ async function j(e, t) {
191
191
  var l;
192
- const o = await ((l = f.value) == null ? void 0 : l.validateFields(T(e), a));
193
- return o == null ? void 0 : o[t.name];
192
+ const a = await ((l = i.value) == null ? void 0 : l.validateFields(T(e), t));
193
+ return a == null ? void 0 : a[o.name];
194
194
  }
195
- function O(e, a) {
195
+ function O(e, t) {
196
196
  var s, n, r;
197
- const o = ((s = u(m)) == null ? void 0 : s.length) || 0;
198
- if (R(t.maxLength) && o >= t.maxLength)
197
+ const a = ((s = u(m)) == null ? void 0 : s.length) || 0;
198
+ if (R(o.maxLength) && a >= o.maxLength)
199
199
  return;
200
200
  const l = {
201
201
  ...e || {}
202
202
  };
203
- (r = (n = f.value) == null ? void 0 : n.setFieldValue) == null || r.call(n, t.name, l, !0, (d, i) => {
204
- if (!d[i]) {
205
- d[i] = [l];
203
+ (r = (n = i.value) == null ? void 0 : n.setFieldValue) == null || r.call(n, o.name, l, !0, (d, f) => {
204
+ if (!d[f]) {
205
+ d[f] = [l];
206
206
  return;
207
207
  }
208
- te(a) ? d[i].push(l) : d[i].splice(a, 0, l);
208
+ oe(t) ? d[f].push(l) : d[f].splice(t, 0, l);
209
209
  });
210
210
  }
211
- function A(e, a = "suffix") {
211
+ function z(e, t = "suffix") {
212
212
  var n, r, d;
213
- const o = ((n = u(m)) == null ? void 0 : n.length) || 0, l = g(e) ? e : e.length;
214
- if (R(t.maxLength) && o + l > t.maxLength)
213
+ const a = ((n = u(m)) == null ? void 0 : n.length) || 0, l = C(e) ? e : e.length;
214
+ if (R(o.maxLength) && a + l > o.maxLength)
215
215
  return;
216
- const s = g(e) ? new Array(e).fill(0).map(() => ({})) : oe(e);
217
- (d = (r = f.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, t.name, s, !0, (i, p) => {
218
- if (!i[p]) {
219
- i[p] = [...s];
216
+ const s = C(e) ? new Array(e).fill(0).map(() => ({})) : le(e);
217
+ (d = (r = i.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, o.name, s, !0, (f, p) => {
218
+ if (!f[p]) {
219
+ f[p] = [...s];
220
220
  return;
221
221
  }
222
- a === "suffix" ? i[p].push(...s) : i[p].unshift(...s);
222
+ t === "suffix" ? f[p].push(...s) : f[p].unshift(...s);
223
223
  });
224
224
  }
225
- function z(e) {
226
- var o, l;
227
- const a = new Set(g(e) ? [e] : e);
228
- (l = (o = f.value) == null ? void 0 : o.setFieldValue) == null || l.call(o, t.name, void 0, !0, (s, n) => {
229
- s[n] = s[n].filter((r, d) => !a.has(d));
225
+ function A(e) {
226
+ var a, l;
227
+ const t = new Set(C(e) ? [e] : e);
228
+ (l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, o.name, void 0, !0, (s, n) => {
229
+ s[n] = s[n].filter((r, d) => !t.has(d));
230
230
  });
231
231
  }
232
+ function K(e) {
233
+ var a, l;
234
+ const t = new Set(g(e) ? e : [e]);
235
+ t.size !== 0 && ((l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, o.name, void 0, !0, (s, n) => {
236
+ s[n] = s[n].filter((r) => !t.has(r[o.rowKey]));
237
+ }));
238
+ }
232
239
  function I() {
233
240
  return u(m);
234
241
  }
235
242
  function P(e) {
236
- var a;
237
- (a = f.value) == null || a.setFieldValue(t.name, e);
243
+ var t;
244
+ (t = i.value) == null || t.setFieldValue(o.name, e);
238
245
  }
239
246
  function H(e) {
240
- var a;
241
- return (a = u(m)) == null ? void 0 : a[e];
247
+ var t;
248
+ return (t = u(m)) == null ? void 0 : t[e];
242
249
  }
243
- function K(e, a, o = !0) {
250
+ function W(e, t, a = !0) {
244
251
  var l, s;
245
- (s = (l = f.value) == null ? void 0 : l.setFieldValue) == null || s.call(l, t.name, void 0, !0, (n, r) => {
252
+ (s = (l = i.value) == null ? void 0 : l.setFieldValue) == null || s.call(l, o.name, void 0, !0, (n, r) => {
246
253
  if (!(!n[r] || !n[r][e])) {
247
- if (!o) {
254
+ if (!a) {
248
255
  const d = Object.keys(n[r][e]);
249
- for (const i of d)
250
- i !== t.rowKey && delete n[r][e][i];
256
+ for (const f of d)
257
+ f !== o.rowKey && delete n[r][e][f];
251
258
  }
252
259
  Object.assign(n[r][e], {
253
- ...a
260
+ ...t
254
261
  });
255
262
  }
256
263
  });
257
264
  }
258
- function W(e) {
259
- var o;
260
- const a = e === "end" ? m.value.length - 1 : e;
261
- (o = C.value) == null || o.scrollToRow(a);
265
+ function G(e) {
266
+ var a;
267
+ const t = e === "end" ? m.value.length - 1 : e;
268
+ (a = w.value) == null || a.scrollToRow(t);
262
269
  }
263
- function G() {
264
- var e, a;
265
- (a = (e = f.value) == null ? void 0 : e.setFieldValue) == null || a.call(e, t.name, []);
270
+ function U() {
271
+ var e, t;
272
+ (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, o.name, []);
266
273
  }
267
274
  return S({
268
- resetFields: D,
275
+ resetFields: E,
269
276
  validateFields: j,
270
277
  add: O,
271
- remove: z,
278
+ remove: A,
272
279
  getRowData: H,
273
280
  getRowsData: I,
274
- setRowData: K,
275
- addMultiple: A,
276
- scrollTo: W,
277
- clear: G,
278
- setTableData: P
279
- }), (e, a) => (J(), q(u(y), {
281
+ setRowData: W,
282
+ addMultiple: z,
283
+ scrollTo: G,
284
+ clear: U,
285
+ setTableData: P,
286
+ removeByKey: K
287
+ }), (e, t) => (Q(), J(u(y), {
280
288
  ref_key: "formRef",
281
- ref: f,
289
+ ref: i,
282
290
  "initial-values": {
283
- [t.name]: u(m)
291
+ [o.name]: u(m)
284
292
  },
285
293
  style: {
286
294
  height: "100%"
287
295
  }
288
296
  }, {
289
- default: h(() => [v(u(y).FormItem, {
297
+ default: h(() => [b(u(y).FormItem, {
290
298
  name: e.name,
291
299
  "no-style": ""
292
300
  }, {
293
- default: h(() => [v(ie, Q(u(le)(t, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
301
+ default: h(() => [b(fe, X(u(ne)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
294
302
  ref_key: "tableRef",
295
- ref: C,
303
+ ref: w,
296
304
  class: u(V)(),
297
- columns: u(E),
305
+ columns: u(D),
298
306
  "data-source": u(m),
299
307
  "search-form": !1
300
- }), X({
308
+ }), Y({
301
309
  _: 2
302
- }, [Y(N, (o, l) => ({
310
+ }, [Z(N, (a, l) => ({
303
311
  name: l,
304
- fn: h((s) => [Z(e.$slots, l, M(ee(s || {})))])
312
+ fn: h((s) => [M(e.$slots, l, ee(te(s || {})))])
305
313
  }))]), 1040, ["class", "columns", "data-source"])]),
306
314
  _: 3
307
315
  }, 8, ["name"])]),
@@ -310,5 +318,5 @@ const be = /* @__PURE__ */ U({
310
318
  }
311
319
  });
312
320
  export {
313
- be as default
321
+ Re as default
314
322
  };
@@ -144,6 +144,8 @@ const No = /* @__PURE__ */ Be({
144
144
  fieldProps: {
145
145
  label: t.title,
146
146
  name: t.dataIndex,
147
+ // tips: 在表格中的查询表单项默认是带边框的
148
+ bordered: !0,
147
149
  ...c || {},
148
150
  _signal: K
149
151
  },
@@ -190,6 +190,8 @@ const Or = /* @__PURE__ */ Le({
190
190
  fieldProps: {
191
191
  label: t.title,
192
192
  name: t.dataIndex,
193
+ // tips: 在表格中的查询表单项默认是带边框的
194
+ bordered: !0,
193
195
  ...d || {},
194
196
  _signal: O
195
197
  },
@@ -10,7 +10,7 @@ type ApStatusGroupItemUnion = Pick<ApStatusProps, 'text' | 'color'> & {
10
10
  };
11
11
  export type ApStatusGroupItemProps = Required<ApStatusGroupItemUnion>;
12
12
  export type ApStatusGroupProps = {
13
- padding: number;
13
+ padding?: number;
14
14
  currentValue: number | string;
15
15
  statusList: ApStatusGroupItemProps[] | null;
16
16
  style?: object;
@@ -1,20 +1,8 @@
1
- import { EditableColumnType, EditableTableFormItemProps } from './interface';
2
- import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
1
+ import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } from './interface';
3
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
- import { UnwrapRefSimple } from '@vue/reactivity';
5
3
  declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
7
- expose(exposed: ShallowUnwrapRef<{
8
- add: (defaultValue?: any, insertIndex?: number) => void;
9
- remove: (index: number | number[]) => void;
10
- getRowData: (index: number) => RecordType | UnwrapRefSimple<RecordType>;
11
- getRowsData: () => RecordType[] | UnwrapRefSimple<RecordType>[];
12
- setRowData: (index: number, payload: any, merge?: boolean) => void;
13
- addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
14
- scrollTo: (index: number | "end", options?: StandardBehaviorOptions) => void;
15
- setTableData: (nextTableData: RecordType[]) => void;
16
- clear: () => void;
17
- }>): void;
5
+ expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
18
6
  attrs: any;
19
7
  slots: Readonly<{
20
8
  default: any;