@aplus-frontend/ui 0.4.24 → 0.4.26

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 (72) hide show
  1. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  2. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  3. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  4. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  5. package/es/src/ap-list/index.vue.d.ts +2 -4
  6. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  7. package/es/src/ap-table/ap-table.vue2.mjs +157 -154
  8. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  9. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  10. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  11. package/es/src/business/ap-attachment/ApAttachment.mjs +31 -31
  12. package/es/src/business/ap-attachment/interface.d.ts +2 -2
  13. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  14. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -32
  15. package/es/src/business/ap-batch-action-group/index.d.ts +16 -7
  16. package/es/src/business/ap-batch-action-group/interface.d.ts +5 -0
  17. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  18. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  19. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  20. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  21. package/es/src/config-provider/config-provider.d.ts +0 -3
  22. package/es/src/config-provider/css-var.d.ts +0 -4
  23. package/es/src/config-provider/css-var.mjs +14 -22
  24. package/es/src/config-provider/index.d.ts +0 -15
  25. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  26. package/es/src/editable-table/index.vue.d.ts +2 -4
  27. package/es/src/locale/lang/en.mjs +4 -2
  28. package/es/src/locale/lang/zh-cn.mjs +3 -2
  29. package/es/src/scroll-view/index.vue.d.ts +5 -5
  30. package/es/src/tests/wrapper.d.ts +4 -4
  31. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
  32. package/es/src/work-order-modal/work-order-modal.vue.mjs +24 -21
  33. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  34. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  35. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  36. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  37. package/lib/src/ap-list/index.vue.d.ts +2 -4
  38. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  39. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  40. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  41. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  42. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  43. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  44. package/lib/src/business/ap-attachment/interface.d.ts +2 -2
  45. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
  46. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  47. package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
  48. package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
  49. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  50. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  51. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  52. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  53. package/lib/src/config-provider/config-provider.d.ts +0 -3
  54. package/lib/src/config-provider/css-var.d.ts +0 -4
  55. package/lib/src/config-provider/css-var.js +1 -1
  56. package/lib/src/config-provider/index.d.ts +0 -15
  57. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  58. package/lib/src/editable-table/index.vue.d.ts +2 -4
  59. package/lib/src/locale/lang/en.js +1 -1
  60. package/lib/src/locale/lang/zh-cn.js +1 -1
  61. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  62. package/lib/src/tests/wrapper.d.ts +4 -4
  63. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
  64. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  65. package/package.json +3 -3
  66. package/theme/ap-scroll-bar/index.css +31 -0
  67. package/theme/ap-scroll-bar/index.less +39 -0
  68. package/theme/ap-table/ap-table.css +2 -2
  69. package/theme/ap-table/ap-table.less +5 -2
  70. package/theme/ap-table-modal/index.css +2 -2
  71. package/theme/index.css +2 -2
  72. package/index.ts +0 -19
@@ -1,27 +1,26 @@
1
- import { defineComponent as ze, useSlots as Pe, ref as h, computed as s, unref as l, createVNode as p, Fragment as J, watchEffect as Ne, watch as Q, openBlock as m, createElementBlock as k, normalizeClass as y, normalizeStyle as X, mergeProps as w, createSlots as Y, withCtx as v, renderList as Z, createBlock as ee, resolveDynamicComponent as Ie, renderSlot as R, createCommentVNode as oe, createElementVNode as I, normalizeProps as Ee, guardReactiveProps as Ke } from "vue";
2
- import { Divider as Oe, Table as Le } from "@aplus-frontend/antdv";
3
- import { useToken as Ve } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { ApForm as Ae } from "../ap-form/index.mjs";
5
- import { noRenderAsFormItemValueList as ae } from "./constants.mjs";
1
+ import { defineComponent as Ne, useSlots as Ie, ref as h, computed as s, unref as t, createVNode as p, Fragment as X, watchEffect as Ee, watch as Y, openBlock as m, createElementBlock as k, normalizeClass as y, normalizeStyle as I, mergeProps as w, createSlots as Z, withCtx as v, renderList as ee, createBlock as oe, resolveDynamicComponent as Ke, renderSlot as R, createCommentVNode as ae, createElementVNode as E, normalizeProps as Oe, guardReactiveProps as Ve } from "vue";
2
+ import { Divider as Le, Table as $e } from "@aplus-frontend/antdv";
3
+ import { useToken as Ae } from "@aplus-frontend/antdv/es/theme/internal";
4
+ import { ApForm as De } from "../ap-form/index.mjs";
5
+ import { noRenderAsFormItemValueList as re } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as De } from "./hooks/use-table-paging-ng.mjs";
8
- import { isUndefined as g, omit as re, isBoolean as $e } from "lodash-unified";
9
- import { getColumnOrder as te, updateFormProps as We, getFieldProps as je, getSearchFormItemRenderNode as _e, recursionApColumns as le, apColumnToColumn as He, getTableTitle as Ue, getTableRenderType as qe, getTableRenderProps as Me, getTableCellRenderNode as Ge, falseToUndefined as Je } from "./utils.mjs";
10
- import Qe from "./hooks/use-table-content-height.mjs";
11
- import Xe from "./hooks/use-table-row-selection.mjs";
12
- import { isDef as Ye } from "../utils/index.mjs";
7
+ import { useTablePaging as We } from "./hooks/use-table-paging-ng.mjs";
8
+ import { isUndefined as g, omit as te, isBoolean as je } from "lodash-unified";
9
+ import { getColumnOrder as le, updateFormProps as _e, getFieldProps as He, getSearchFormItemRenderNode as Ue, recursionApColumns as ne, apColumnToColumn as qe, getTableTitle as Me, getTableRenderType as Ge, getTableRenderProps as Je, getTableCellRenderNode as Qe, falseToUndefined as Xe } from "./utils.mjs";
10
+ import Ye from "./hooks/use-table-content-height.mjs";
11
+ import Ze from "./hooks/use-table-row-selection.mjs";
12
+ import { getScrollbarSize as eo, isDef as oo } from "../utils/index.mjs";
13
13
  import "./components/setting/modal/index.vue.mjs";
14
14
  import "./components/paragraph-ellipsis/index.vue.mjs";
15
- import { useProvideApTable as Ze } from "./context.mjs";
15
+ import { useProvideApTable as ao } from "./context.mjs";
16
16
  import "../scroll-bar/index.mjs";
17
- import { useStickyScroll as eo } from "./hooks/use-sticky-scroll.mjs";
18
- import { scrollbarSize as oo } from "../config-provider/css-var.mjs";
19
- import { useNamespace as ao } from "../config-provider/hooks/use-namespace.mjs";
20
- import { useGlobalConfig as ro } from "../config-provider/hooks/use-global-config.mjs";
21
- import to from "./components/paragraph-ellipsis/index.vue2.mjs";
22
- import lo from "./components/setting/modal/index.vue2.mjs";
23
- import no from "../scroll-bar/index.vue.mjs";
24
- const No = /* @__PURE__ */ ze({
17
+ import { useStickyScroll as ro } from "./hooks/use-sticky-scroll.mjs";
18
+ import { useNamespace as to } from "../config-provider/hooks/use-namespace.mjs";
19
+ import { useGlobalConfig as lo } from "../config-provider/hooks/use-global-config.mjs";
20
+ import no from "./components/paragraph-ellipsis/index.vue2.mjs";
21
+ import so from "./components/setting/modal/index.vue2.mjs";
22
+ import uo from "../scroll-bar/index.vue.mjs";
23
+ const Io = /* @__PURE__ */ Ne({
25
24
  name: "ApTable",
26
25
  __name: "ap-table",
27
26
  props: {
@@ -145,24 +144,25 @@ const No = /* @__PURE__ */ ze({
145
144
  default: void 0
146
145
  }
147
146
  },
148
- setup(ne, {
149
- expose: se
147
+ setup(se, {
148
+ expose: de
150
149
  }) {
151
- const o = ne;
152
- let E = 0;
153
- const C = Pe(), [, de] = Ve(), {
150
+ const o = se;
151
+ let K = 0;
152
+ const C = Ie(), [, ue] = Ae(), {
154
153
  e: B,
155
154
  b: c,
156
- be: K,
157
- m: ue
158
- } = ao("ap-table"), O = ro("valueTypeMap"), {
159
- height: ie,
160
- contentRef: ce
161
- } = Qe(), L = h(), V = h(), {
155
+ be: O,
156
+ m: ie,
157
+ cssVar: ce
158
+ } = to("ap-table"), V = lo("valueTypeMap"), {
159
+ height: fe,
160
+ contentRef: pe
161
+ } = Ye(), L = h(), $ = h(), {
162
162
  isStickyMode: A,
163
163
  scrollBarRef: i
164
- } = eo(L), z = h(o.size), u = h([]), D = h([]);
165
- Ze({
164
+ } = ro(L), z = h(o.size), u = h([]), D = h([]), W = eo();
165
+ ao({
166
166
  columns: s(() => u.value),
167
167
  columnsBackup: s(() => D.value),
168
168
  size: s(() => z.value),
@@ -172,106 +172,106 @@ const No = /* @__PURE__ */ ze({
172
172
  updateSize(e) {
173
173
  z.value = e;
174
174
  },
175
- dataSource: s(() => l(b).records)
175
+ dataSource: s(() => t(b).records)
176
176
  });
177
- const $ = s(() => {
177
+ const j = s(() => {
178
178
  var e, r, a;
179
- return E++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !ae.includes(t.valueType))) == null ? void 0 : r.sort((t, d) => {
180
- let n = te(t.order);
181
- return te(d.order) - n;
182
- })) == null ? void 0 : a.map((t) => {
183
- const d = We(t, je(t.fieldProps, {})), n = {
184
- ...t,
179
+ return K++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !re.includes(l.valueType))) == null ? void 0 : r.sort((l, d) => {
180
+ let n = le(l.order);
181
+ return le(d.order) - n;
182
+ })) == null ? void 0 : a.map((l) => {
183
+ const d = _e(l, He(l.fieldProps, {})), n = {
184
+ ...l,
185
185
  fieldProps: {
186
- label: t.title,
187
- name: t.dataIndex,
186
+ label: l.title,
187
+ name: l.dataIndex,
188
188
  ...d || {},
189
- _signal: E
189
+ _signal: K
190
190
  },
191
191
  renderNode: void 0
192
192
  };
193
- return n.renderNode = _e(n, l(O)), n;
193
+ return n.renderNode = Ue(n, t(V)), n;
194
194
  })) || [];
195
- }), fe = s(() => le(l(u), (e) => {
195
+ }), me = s(() => ne(t(u), (e) => {
196
196
  if (e.sorter === !0)
197
197
  return e.key || e.dataIndex;
198
- }).filter(Boolean)), pe = s(() => le(l(u), (e) => {
198
+ }).filter(Boolean)), ye = s(() => ne(t(u), (e) => {
199
199
  if (e.filters && !e.onFilter)
200
200
  return e.key || e.dataIndex;
201
- }).filter(Boolean)), me = s(() => g(o.dataSource) ? b.records : o.dataSource), {
201
+ }).filter(Boolean)), ge = s(() => g(o.dataSource) ? b.records : o.dataSource), {
202
202
  rowSelection: T,
203
203
  selectedRows: F,
204
204
  ...x
205
- } = Xe({
205
+ } = Ze({
206
206
  fixed: !0,
207
207
  ...o.rowSelection === !0 ? {} : o.rowSelection,
208
208
  rowKey: o.rowKey,
209
- dataSource: me
209
+ dataSource: ge
210
210
  }), {
211
211
  formRef: P,
212
- submit: W,
213
- reset: j,
214
- tableProps: _,
215
- refresh: ye,
212
+ submit: _,
213
+ reset: H,
214
+ tableProps: U,
215
+ refresh: be,
216
216
  data: b,
217
- setDataSource: ge,
218
- getColumnSFConfig: be
219
- } = De({
217
+ setDataSource: Se,
218
+ getColumnSFConfig: he
219
+ } = We({
220
220
  async request(e) {
221
- var a, t;
221
+ var a, l;
222
222
  if (!T.value.preserveSelectedRowKeys && g(o.dataSource) && x.clearAll(), !g(o.dataSource))
223
223
  return {
224
224
  data: o.dataSource || [],
225
225
  total: o.dataSource.length || 0
226
226
  };
227
227
  const r = await ((a = o.request) == null ? void 0 : a.call(o, e));
228
- return (t = o.onLoad) == null || t.call(o, (r == null ? void 0 : r.data) || []), {
228
+ return (l = o.onLoad) == null || l.call(o, (r == null ? void 0 : r.data) || []), {
229
229
  data: (r == null ? void 0 : r.data) || [],
230
230
  total: (r == null ? void 0 : r.total) || 0
231
231
  };
232
232
  },
233
- filterFields: pe,
234
- sortFields: fe,
233
+ filterFields: ye,
234
+ sortFields: me,
235
235
  defaultParams: o.params,
236
236
  defaultData: o.defaultData,
237
237
  manual: o.manual,
238
238
  formatParams: o.beforeSearchSubmit,
239
239
  pagination: o.pagination
240
- }), Se = () => {
240
+ }), we = () => {
241
241
  var a;
242
- let e = ((a = o.columns) == null ? void 0 : a.filter((t) => !t.hideInTable)) || [];
243
- function r(t, d) {
244
- return t.map((n) => ({
245
- resizable: Ye(n.resizable) ? n.resizable : o.columnResizable,
246
- ...re(He(n), ["ellipsis"]),
247
- ...be(n),
242
+ let e = ((a = o.columns) == null ? void 0 : a.filter((l) => !l.hideInTable)) || [];
243
+ function r(l, d) {
244
+ return l.map((n) => ({
245
+ resizable: oo(n.resizable) ? n.resizable : o.columnResizable,
246
+ ...te(qe(n), ["ellipsis"]),
247
+ ...he(n),
248
248
  fixed: d ? d.fixed : n.fixed,
249
- title: Ue(n, K("table-header", "title"), C.headerCell, l(de).colorPrimary),
249
+ title: Me(n, O("table-header", "title"), C.headerCell, t(ue).colorPrimary),
250
250
  customRender({
251
251
  value: f,
252
252
  ...S
253
253
  }) {
254
- var M, G;
255
- const U = qe(n), xe = Me({
254
+ var J, Q;
255
+ const M = Ge(n), Be = Je({
256
256
  ...n,
257
- valueType: U
257
+ valueType: M
258
258
  }, {
259
259
  value: f,
260
260
  ...S
261
- }), ke = Ge(U, xe, S.record, l(O)), q = ((M = n.renderText) == null ? void 0 : M.call(n, {
261
+ }), ze = Qe(M, Be, S.record, t(V)), G = ((J = n.renderText) == null ? void 0 : J.call(n, {
262
262
  value: f,
263
263
  ...S
264
- })) || f, Be = n.renderText ? p(J, null, [(G = n.renderText) == null ? void 0 : G.call(n, {
264
+ })) || f, Pe = n.renderText ? p(X, null, [(Q = n.renderText) == null ? void 0 : Q.call(n, {
265
265
  value: f,
266
266
  ...S
267
- })]) : ke;
268
- let N = Re(n, q, Be);
267
+ })]) : ze;
268
+ let N = Te(n, G, Pe);
269
269
  return n.customRender && (N = n.customRender({
270
270
  value: f,
271
271
  ...S,
272
272
  column: n,
273
273
  originalNode: N,
274
- originalText: q
274
+ originalText: G
275
275
  })), N;
276
276
  },
277
277
  children: r(n.children || [], d || n)
@@ -279,28 +279,28 @@ const No = /* @__PURE__ */ ze({
279
279
  }
280
280
  return r(e);
281
281
  };
282
- Ne(() => {
283
- const e = Se();
282
+ Ee(() => {
283
+ const e = we();
284
284
  u.value = e, D.value = e;
285
285
  });
286
- const he = s(() => {
286
+ const ve = s(() => {
287
287
  var r, a;
288
288
  if (o.adaptive && (b.total > 0 || ((r = o.dataSource) == null ? void 0 : r.length)))
289
289
  return {
290
- y: l(ie),
290
+ y: t(fe),
291
291
  x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
292
292
  };
293
293
  if (o.scroll)
294
294
  return o.scroll;
295
- }), we = s(() => {
295
+ }), Re = s(() => {
296
296
  var e;
297
297
  if (o.tableLayout)
298
298
  return o.tableLayout;
299
299
  if ((e = o.columns) != null && e.some((r) => r.ellipsis))
300
300
  return "fixed";
301
- }), H = s(() => {
301
+ }), q = s(() => {
302
302
  var a;
303
- const e = l(_), r = l(T);
303
+ const e = t(U), r = t(T);
304
304
  return {
305
305
  ...o,
306
306
  ...e,
@@ -308,19 +308,19 @@ const No = /* @__PURE__ */ ze({
308
308
  ...r,
309
309
  // tips 如果是前端分页,则默认会走缓存
310
310
  preserveSelectedRowKeys: g(o.dataSource) ? r.preserveSelectedRowKeys : !0
311
- } : Je(o.rowSelection),
311
+ } : Xe(o.rowSelection),
312
312
  loading: g(o.loading) ? e.loading : o.loading,
313
313
  pagination: o.pagination === !1 ? !1 : e.pagination,
314
- scroll: l(he)
314
+ scroll: t(ve)
315
315
  };
316
- }), ve = s(() => {
316
+ }), Ce = s(() => {
317
317
  var e;
318
- return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, A.value && ((e = i.value) != null && e.visible) ? ue(`sticky-${oo === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
318
+ return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, A.value && ((e = i.value) != null && e.visible) ? ie(`sticky-${W === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
319
319
  });
320
- function Re(e, r, a) {
321
- return ae.includes(e.valueType) ? a : e.copyable || e.ellipsis ? p(to, {
320
+ function Te(e, r, a) {
321
+ return re.includes(e.valueType) ? a : e.copyable || e.ellipsis ? p(no, {
322
322
  copyable: e.copyable,
323
- ellipsis: e.ellipsis ? $e(e.ellipsis) ? {
323
+ ellipsis: e.ellipsis ? je(e.ellipsis) ? {
324
324
  tooltip: a,
325
325
  rows: 1
326
326
  } : {
@@ -330,36 +330,36 @@ const No = /* @__PURE__ */ ze({
330
330
  content: a
331
331
  }, null) : a;
332
332
  }
333
- Q(() => l(b).loading, (e) => {
333
+ Y(() => t(b).loading, (e) => {
334
334
  var r;
335
335
  (r = o.onLoadingChange) == null || r.call(o, e);
336
- }), Q(() => o.dataSource, (e) => {
337
- ge(e);
336
+ }), Y(() => o.dataSource, (e) => {
337
+ Se(e);
338
338
  }, {
339
339
  immediate: !0
340
340
  });
341
- function Ce(e) {
342
- var r, a, t;
343
- (t = (a = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || t.call(a, e);
341
+ function Fe(e) {
342
+ var r, a, l;
343
+ (l = (a = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || l.call(a, e);
344
344
  }
345
- function Te(e = !1) {
346
- var a, t, d;
345
+ function xe(e = !1) {
346
+ var a, l, d;
347
347
  const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
348
- return (d = (t = (a = P.value) == null ? void 0 : a.apForm) == null ? void 0 : t[r]) == null ? void 0 : d.call(t, !0);
348
+ return (d = (l = (a = P.value) == null ? void 0 : a.apForm) == null ? void 0 : l[r]) == null ? void 0 : d.call(l, !0);
349
349
  }
350
- function Fe() {
351
- return l(u);
350
+ function ke() {
351
+ return t(u);
352
352
  }
353
- return se({
354
- submit: () => W(),
355
- reset: () => j(),
356
- refresh: () => ye(),
357
- setSearchFormValues: Ce,
358
- getSearchFormValues: Te,
359
- getShownColumns: Fe,
360
- dataSource: s(() => l(b).records),
353
+ return de({
354
+ submit: () => _(),
355
+ reset: () => H(),
356
+ refresh: () => be(),
357
+ setSearchFormValues: Fe,
358
+ getSearchFormValues: xe,
359
+ getShownColumns: ke,
360
+ dataSource: s(() => t(b).records),
361
361
  rowSelection: {
362
- selectedRows: s(() => l(F)),
362
+ selectedRows: s(() => t(F)),
363
363
  ...x
364
364
  },
365
365
  scrollBar: {
@@ -378,20 +378,23 @@ const No = /* @__PURE__ */ ze({
378
378
  }), (e, r) => (m(), k("div", {
379
379
  ref_key: "tableWrapperRef",
380
380
  ref: L,
381
- class: y(ve.value)
382
- }, [l(g)(e.dataSource) && e.searchForm !== !1 && $.value.length > 0 ? (m(), k("div", {
381
+ class: y(Ce.value),
382
+ style: I(t(ce)({
383
+ "scroll-bar-width": `${t(W)}px`
384
+ }))
385
+ }, [t(g)(e.dataSource) && e.searchForm !== !1 && j.value.length > 0 ? (m(), k("div", {
383
386
  key: 0,
384
- class: y(e.card ? l(B)("search-wrapper") : null),
385
- style: X(e.searchFormWrapperStyle)
386
- }, [p(l(Ae).SearchForm, w(e.searchForm || {}, {
387
+ class: y(e.card ? t(B)("search-wrapper") : null),
388
+ style: I(e.searchFormWrapperStyle)
389
+ }, [p(t(De).SearchForm, w(e.searchForm || {}, {
387
390
  ref_key: "formRef",
388
391
  ref: P,
389
392
  "custom-reset": "",
390
- "submit-loading": l(_).loading,
391
- onSubmit: l(W),
392
- onReset: l(j)
393
- }), Y({
394
- default: v(() => [(m(!0), k(J, null, Z($.value, (a) => (m(), ee(Ie(a.renderNode.Comp), w({
393
+ "submit-loading": t(U).loading,
394
+ onSubmit: t(_),
395
+ onReset: t(H)
396
+ }), Z({
397
+ default: v(() => [(m(!0), k(X, null, ee(j.value, (a) => (m(), oe(Ke(a.renderNode.Comp), w({
395
398
  key: a.dataIndex,
396
399
  item: a,
397
400
  ref_for: !0
@@ -404,66 +407,66 @@ const No = /* @__PURE__ */ ze({
404
407
  name: "extra",
405
408
  fn: v(() => [R(e.$slots, "searchFormExtra")]),
406
409
  key: "0"
407
- } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), I("div", {
410
+ } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : ae("", !0), E("div", {
408
411
  ref_key: "contentRef",
409
- ref: ce,
410
- class: y([l(B)("table-wrapper"), e.card ? l(B)("table-wrapper-card") : null]),
411
- style: X(e.tableWrapperStyle)
412
- }, [I("div", {
413
- class: y(l(c)("header-wrapper"))
412
+ ref: pe,
413
+ class: y([t(B)("table-wrapper"), e.card ? t(B)("table-wrapper-card") : null]),
414
+ style: I(e.tableWrapperStyle)
415
+ }, [E("div", {
416
+ class: y(t(c)("header-wrapper"))
414
417
  }, [e.settings ? (m(), k("div", {
415
418
  key: 0,
416
- class: y(l(c)("header"))
417
- }, [I("div", {
418
- class: y(l(K)("header", "title"))
419
+ class: y(t(c)("header"))
420
+ }, [E("div", {
421
+ class: y(t(O)("header", "title"))
419
422
  }, [R(e.$slots, "title", w({
420
- selectedRows: l(F),
421
- selectedRowKeys: l(T).selectedRowKeys,
423
+ selectedRows: t(F),
424
+ selectedRowKeys: t(T).selectedRowKeys,
422
425
  shownColumns: u.value
423
- }, x))], 2), C.title ? (m(), ee(l(Oe), {
426
+ }, x))], 2), C.title ? (m(), oe(t(Le), {
424
427
  key: 0,
425
428
  type: "vertical"
426
- })) : oe("", !0), p(lo, {
429
+ })) : ae("", !0), p(so, {
427
430
  config: e.settings === !0 ? {} : e.settings
428
431
  }, null, 8, ["config"])], 2)) : R(e.$slots, "title", w({
429
432
  key: 1,
430
- selectedRows: l(F),
431
- selectedRowKeys: l(T).selectedRowKeys,
433
+ selectedRows: t(F),
434
+ selectedRowKeys: t(T).selectedRowKeys,
432
435
  shownColumns: u.value
433
- }, x))], 2), p(l(Le), w({
436
+ }, x))], 2), p(t($e), w({
434
437
  ref_key: "antdTableRef",
435
- ref: V,
436
- class: l(c)("table")
437
- }, H.value, {
438
+ ref: $,
439
+ class: t(c)("table")
440
+ }, q.value, {
438
441
  size: z.value,
439
- "table-layout": we.value,
442
+ "table-layout": Re.value,
440
443
  columns: u.value,
441
- onResizeColumn: r[0] || (r[0] = (a, t) => t.width = a)
442
- }), Y({
444
+ onResizeColumn: r[0] || (r[0] = (a, l) => l.width = a)
445
+ }), Z({
443
446
  summary: v(() => [R(e.$slots, "summary", {
444
447
  columns: u.value,
445
- records: H.value.dataSource,
446
- selectedRows: l(F)
448
+ records: q.value.dataSource,
449
+ selectedRows: t(F)
447
450
  })]),
448
451
  _: 2
449
- }, [l(A) ? {
452
+ }, [t(A) ? {
450
453
  name: "bottomPaginationTop",
451
454
  fn: v(() => {
452
- var a, t;
453
- return [p(l(no), {
455
+ var a, l;
456
+ return [p(t(uo), {
454
457
  ref_key: "scrollBarRef",
455
458
  ref: i,
456
- "scroll-container": (t = (a = V.value) == null ? void 0 : a.table) == null ? void 0 : t.scrollBodyRef,
459
+ "scroll-container": (l = (a = $.value) == null ? void 0 : a.table) == null ? void 0 : l.scrollBodyRef,
457
460
  direction: "horizontal"
458
461
  }, null, 8, ["scroll-container"])];
459
462
  }),
460
463
  key: "0"
461
- } : void 0, Z(l(re)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (a, t) => ({
462
- name: t,
463
- fn: v((d) => [R(e.$slots, t, Ee(Ke(d || {})))])
464
- }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
464
+ } : void 0, ee(t(te)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (a, l) => ({
465
+ name: l,
466
+ fn: v((d) => [R(e.$slots, l, Oe(Ve(d || {})))])
467
+ }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
465
468
  }
466
469
  });
467
470
  export {
468
- No as default
471
+ Io as default
469
472
  };
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
4
4
  columnState: Ref<{
5
5
  key: string | number;
6
6
  show?: boolean | undefined;
7
- fixed?: ("left" | "right") | undefined;
7
+ fixed?: "left" | "right" | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  label?: any;
10
- children?: any[] | undefined;
10
+ children?: /*elided*/ any[] | undefined;
11
11
  order?: number | undefined;
12
12
  }[], ApColumnState[] | {
13
13
  key: string | number;
14
14
  show?: boolean | undefined;
15
- fixed?: ("left" | "right") | undefined;
15
+ fixed?: "left" | "right" | undefined;
16
16
  disabled?: boolean | undefined;
17
17
  label?: any;
18
- children?: any[] | undefined;
18
+ children?: /*elided*/ any[] | undefined;
19
19
  order?: number | undefined;
20
20
  }[]>;
21
21
  selectAll: () => void;
@@ -1,6 +1,6 @@
1
1
  import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
- import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
4
4
  import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
5
5
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
6
6
  declare function setValue(val: (string | Record<string, any>)[]): void;
@@ -1,4 +1,5 @@
1
1
  import { Oss } from '../hooks/useOss';
2
+ import { actionResponse } from '@aplus-frontend/oss';
2
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  declare function setValue(val?: (string | Record<string, any>)[]): void;
4
5
  interface UploadFile extends File {
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
17
18
  pictureContext?(_: {
18
19
  fileList: {
19
20
  oss: {
20
- pauseUpload: (() => Promise<{
21
- status: number;
22
- previewUrl?: string;
23
- saveUrl?: string;
24
- originalFileName?: string;
25
- message: string;
26
- }>) | undefined;
21
+ pauseUpload: (() => Promise< actionResponse>) | undefined;
27
22
  };
28
23
  }[];
29
24
  remove: typeof handleRemove;