@aplus-frontend/ui 0.1.32 → 0.1.34

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 (103) hide show
  1. package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
  2. package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
  3. package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
  4. package/es/src/ap-form/ap-form.vue.d.ts +3 -1
  5. package/es/src/ap-form/ap-form.vue2.mjs +130 -80
  6. package/es/src/ap-form/interface.d.ts +51 -1
  7. package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
  8. package/es/src/ap-form/items/date/index.vue.mjs +10 -9
  9. package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
  10. package/es/src/ap-form/items/number/index.vue.mjs +12 -11
  11. package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
  12. package/es/src/ap-form/items/select/index.vue.mjs +1 -0
  13. package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
  14. package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
  15. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  16. package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
  17. package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
  18. package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
  19. package/es/src/ap-form/utils/get.d.ts +1 -0
  20. package/es/src/ap-form/utils/get.mjs +12 -0
  21. package/es/src/ap-form/utils/set.d.ts +6 -0
  22. package/es/src/ap-form/utils/set.mjs +41 -0
  23. package/es/src/ap-list/index.vue.d.ts +3 -0
  24. package/es/src/ap-list/index.vue.mjs +51 -49
  25. package/es/src/ap-table/ap-table.vue.d.ts +4 -1
  26. package/es/src/ap-table/ap-table.vue.mjs +65 -59
  27. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +8 -8
  28. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -11
  29. package/es/src/ap-table/components/setting/utils.mjs +29 -29
  30. package/es/src/ap-table/constants.d.ts +121 -1
  31. package/es/src/ap-table/interface.d.ts +6 -1
  32. package/es/src/ap-table/utils.d.ts +121 -1
  33. package/es/src/business/ap-card/ApCard.vue2.mjs +31 -26
  34. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  35. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
  36. package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
  37. package/es/src/business/ap-expand-alert/style.css +9 -0
  38. package/es/src/business/ap-title/style.css +4 -4
  39. package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
  40. package/es/src/business/index.d.ts +53 -187
  41. package/es/src/check-card/group.vue.d.ts +7 -1
  42. package/es/src/check-card/group.vue.mjs +26 -22
  43. package/es/src/check-card/index.vue.d.ts +5 -2
  44. package/es/src/check-card/index.vue2.mjs +69 -60
  45. package/es/src/check-card/interface.d.ts +12 -0
  46. package/es/src/check-card/style/index.css +9 -5
  47. package/es/src/locale/lang/en.mjs +4 -0
  48. package/es/src/locale/lang/zh-cn.mjs +4 -0
  49. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  50. package/es/src/theme/ap-title/ap-title.css +4 -4
  51. package/es/src/theme/check-card/index.css +9 -5
  52. package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
  53. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  54. package/lib/src/ap-form/ap-form-list.vue.js +1 -1
  55. package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
  56. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  57. package/lib/src/ap-form/interface.d.ts +51 -1
  58. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  59. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  60. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  61. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  62. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  63. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  64. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  65. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  66. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  67. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  68. package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
  69. package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
  70. package/lib/src/ap-form/utils/get.d.ts +1 -0
  71. package/lib/src/ap-form/utils/get.js +1 -0
  72. package/lib/src/ap-form/utils/set.d.ts +6 -0
  73. package/lib/src/ap-form/utils/set.js +1 -0
  74. package/lib/src/ap-list/index.vue.d.ts +3 -0
  75. package/lib/src/ap-list/index.vue.js +1 -1
  76. package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
  77. package/lib/src/ap-table/ap-table.vue.js +1 -1
  78. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  79. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  80. package/lib/src/ap-table/components/setting/utils.js +1 -1
  81. package/lib/src/ap-table/constants.d.ts +121 -1
  82. package/lib/src/ap-table/interface.d.ts +6 -1
  83. package/lib/src/ap-table/utils.d.ts +121 -1
  84. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  85. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  86. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  87. package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
  88. package/lib/src/business/ap-expand-alert/style.css +9 -0
  89. package/lib/src/business/ap-title/style.css +4 -4
  90. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
  91. package/lib/src/business/index.d.ts +53 -187
  92. package/lib/src/check-card/group.vue.d.ts +7 -1
  93. package/lib/src/check-card/group.vue.js +1 -1
  94. package/lib/src/check-card/index.vue.d.ts +5 -2
  95. package/lib/src/check-card/index.vue2.js +1 -1
  96. package/lib/src/check-card/interface.d.ts +12 -0
  97. package/lib/src/check-card/style/index.css +9 -5
  98. package/lib/src/locale/lang/en.js +1 -1
  99. package/lib/src/locale/lang/zh-cn.js +1 -1
  100. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  101. package/lib/src/theme/ap-title/ap-title.css +4 -4
  102. package/lib/src/theme/check-card/index.css +9 -5
  103. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ApColumnType, ApTableProps } from './interface';
2
- import { ColumnType } from 'ant-design-vue/es/table';
2
+ import { ColumnsType, ColumnType } from 'ant-design-vue/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
4
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
5
5
  declare const _default: <RecordType>(__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<{
@@ -9,6 +9,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
9
9
  reset: () => void;
10
10
  setSearchFormValues: (fields: any) => void;
11
11
  getSearchFormValues: () => Partial<any> | undefined;
12
+ getShownColumns: () => ColumnsType<RecordType>;
12
13
  dataSource: ComputedRef<RecordType[]>;
13
14
  rowSelection: {
14
15
  select: (item: RecordType) => void;
@@ -29,6 +30,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
29
30
  title?: (params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
30
31
  selectedRows: RecordType[];
31
32
  selectedRowKeys: (string | number)[];
33
+ shownColumns: ColumnsType<RecordType>;
32
34
  }) => any;
33
35
  footer?: any;
34
36
  summary?: (params: {
@@ -51,6 +53,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
51
53
  title?: (params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
52
54
  selectedRows: RecordType[];
53
55
  selectedRowKeys: (string | number)[];
56
+ shownColumns: ColumnsType<RecordType>;
54
57
  }) => any;
55
58
  footer?: any;
56
59
  summary?: (params: {
@@ -1,25 +1,25 @@
1
- import { defineComponent as Re, useSlots as ve, ref as P, computed as s, unref as l, createVNode as p, Fragment as U, watchEffect as Ce, watch as G, openBlock as f, createElementBlock as T, normalizeClass as m, normalizeStyle as M, mergeProps as h, createSlots as J, withCtx as b, renderList as Q, createBlock as X, resolveDynamicComponent as Te, renderSlot as w, createCommentVNode as Y, createElementVNode as I, h as Fe, normalizeProps as Be, guardReactiveProps as xe } from "vue";
2
- import { Typography as ke, Divider as ze, Button as Pe, Table as Ie } from "ant-design-vue";
3
- import { useToken as Ne } from "ant-design-vue/es/theme/internal";
4
- import { ApForm as Le } from "../ap-form/index.mjs";
1
+ import { defineComponent as ve, useSlots as Ce, ref as P, computed as s, unref as l, createVNode as p, Fragment as U, watchEffect as Te, watch as G, openBlock as f, createElementBlock as T, normalizeClass as m, normalizeStyle as M, mergeProps as h, createSlots as J, withCtx as w, renderList as Q, createBlock as X, resolveDynamicComponent as Fe, renderSlot as b, createCommentVNode as Y, createElementVNode as I, h as Be, normalizeProps as xe, guardReactiveProps as ke } from "vue";
2
+ import { Typography as ze, Divider as Pe, Button as Ie, Table as Ne } from "ant-design-vue";
3
+ import { useToken as Le } from "ant-design-vue/es/theme/internal";
4
+ import { ApForm as Ee } from "../ap-form/index.mjs";
5
5
  import { noRenderAsFormItemValueList as Z } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as Ee } from "./hooks/use-table-paging.mjs";
8
- import { omit as _, isUndefined as g, isBoolean as Ke } from "lodash-unified";
7
+ import { useTablePaging as Ke } from "./hooks/use-table-paging.mjs";
8
+ import { omit as _, isUndefined as g, isBoolean as Oe } from "lodash-unified";
9
9
  import "./style/ap-table.css";
10
- import { apColumnToColumn as Oe, getTableTitle as Ve, getTableRenderType as je, getTableRenderProps as Ae, getTableCellRenderNode as We, getColumnOrder as ee, updateFormProps as $e, getFieldProps as De, getPlaceholder as He, getSearchFormItemRenderNode as qe, objectToString as Ue } from "./utils.mjs";
11
- import Ge from "./hooks/use-table-content-height.mjs";
12
- import { getRawDisplayValue as Me } from "../editable-table/utils.mjs";
13
- import Je from "./hooks/use-table-row-selection.mjs";
14
- import { isDef as Qe } from "../utils/index.mjs";
15
- import { SettingOutlined as Xe } from "@ant-design/icons-vue";
10
+ import { apColumnToColumn as Ve, getTableTitle as je, getTableRenderType as Ae, getTableRenderProps as We, getTableCellRenderNode as $e, getColumnOrder as ee, updateFormProps as De, getFieldProps as He, getPlaceholder as qe, getSearchFormItemRenderNode as Ue, objectToString as Ge } from "./utils.mjs";
11
+ import Me from "./hooks/use-table-content-height.mjs";
12
+ import { getRawDisplayValue as Je } from "../editable-table/utils.mjs";
13
+ import Qe from "./hooks/use-table-row-selection.mjs";
14
+ import { isDef as Xe } from "../utils/index.mjs";
15
+ import { SettingOutlined as Ye } from "@ant-design/icons-vue";
16
16
  import "./components/setting/modal/index.vue.mjs";
17
- import { useProvideApTable as Ye } from "./context.mjs";
18
- import { useLocale as Ze } from "../config-provider/hooks/use-locale.mjs";
19
- import { useNamespace as _e } from "../config-provider/hooks/use-namespace.mjs";
20
- import { useGlobalConfig as ea } from "../config-provider/hooks/use-global-config.mjs";
21
- import aa from "./components/setting/modal/index.vue2.mjs";
22
- const Ca = /* @__PURE__ */ Re({
17
+ import { useProvideApTable as Ze } from "./context.mjs";
18
+ import { useLocale as _e } from "../config-provider/hooks/use-locale.mjs";
19
+ import { useNamespace as ea } from "../config-provider/hooks/use-namespace.mjs";
20
+ import { useGlobalConfig as aa } from "../config-provider/hooks/use-global-config.mjs";
21
+ import oa from "./components/setting/modal/index.vue2.mjs";
22
+ const Ta = /* @__PURE__ */ ve({
23
23
  name: "ApTable",
24
24
  __name: "ap-table",
25
25
  props: {
@@ -148,17 +148,17 @@ const Ca = /* @__PURE__ */ Re({
148
148
  }) {
149
149
  const a = ae;
150
150
  let N = 0;
151
- const S = ve(), [, te] = Ne(), {
152
- t: re
153
- } = Ze(), {
151
+ const S = Ce(), [, te] = Le(), {
152
+ t: le
153
+ } = _e(), {
154
154
  e: F,
155
155
  b: i,
156
156
  be: L
157
- } = _e("ap-table"), E = ea("valueTypeMap"), {
158
- height: le,
157
+ } = ea("ap-table"), E = aa("valueTypeMap"), {
158
+ height: re,
159
159
  contentRef: ne
160
- } = Ge(), B = P(a.size), u = P([]), K = P([]);
161
- Ye({
160
+ } = Me(), B = P(a.size), u = P([]), K = P([]);
161
+ Ze({
162
162
  columns: s(() => u.value),
163
163
  columnsBackup: s(() => K.value),
164
164
  size: s(() => B.value),
@@ -174,29 +174,29 @@ const Ca = /* @__PURE__ */ Re({
174
174
  let e = ((t = a.columns) == null ? void 0 : t.filter((r) => !r.hideInTable)) || [];
175
175
  function o(r, d) {
176
176
  return r.map((n) => ({
177
- resizable: Qe(n.resizable) ? n.resizable : a.columnResizable,
178
- ..._(Oe(n), ["ellipsis"]),
177
+ resizable: Xe(n.resizable) ? n.resizable : a.columnResizable,
178
+ ..._(Ve(n), ["ellipsis"]),
179
179
  fixed: d ? d.fixed : n.fixed,
180
- title: Ve(n, L("table-header", "title"), S.headerCell, l(te).colorPrimary),
180
+ title: je(n, L("table-header", "title"), S.headerCell, l(te).colorPrimary),
181
181
  customRender({
182
182
  value: c,
183
183
  ...y
184
184
  }) {
185
185
  var H, q;
186
- const $ = je(n), be = Ae({
186
+ const $ = Ae(n), be = We({
187
187
  ...n,
188
188
  valueType: $
189
189
  }, {
190
190
  value: c,
191
191
  ...y
192
- }), we = We($, be, y.record, l(E)), D = ((H = n.renderText) == null ? void 0 : H.call(n, {
192
+ }), Se = $e($, be, y.record, l(E)), D = ((H = n.renderText) == null ? void 0 : H.call(n, {
193
193
  value: c,
194
194
  ...y
195
- })) || c, Se = n.renderText ? p(U, null, [(q = n.renderText) == null ? void 0 : q.call(n, {
195
+ })) || c, Re = n.renderText ? p(U, null, [(q = n.renderText) == null ? void 0 : q.call(n, {
196
196
  value: c,
197
197
  ...y
198
- })]) : we;
199
- let z = ge(n, D, Se);
198
+ })]) : Se;
199
+ let z = ge(n, D, Re);
200
200
  return n.customRender && (z = n.customRender({
201
201
  value: c,
202
202
  ...y,
@@ -210,7 +210,7 @@ const Ca = /* @__PURE__ */ Re({
210
210
  }
211
211
  return o(e);
212
212
  };
213
- Ce(() => {
213
+ Te(() => {
214
214
  const e = se();
215
215
  u.value = e, K.value = e;
216
216
  });
@@ -220,25 +220,25 @@ const Ca = /* @__PURE__ */ Re({
220
220
  let n = ee(r.order);
221
221
  return ee(d.order) - n;
222
222
  })) == null ? void 0 : t.map((r) => {
223
- const d = $e(r, De(r.fieldProps, {})), n = {
223
+ const d = De(r, He(r.fieldProps, {})), n = {
224
224
  ...r,
225
225
  fieldProps: {
226
226
  label: r.title,
227
227
  name: r.dataIndex,
228
228
  ...d || {},
229
229
  // 格式化placeholder
230
- placeholder: He(re, r.valueType, d == null ? void 0 : d.placeholder),
230
+ placeholder: qe(le, r.valueType, d == null ? void 0 : d.placeholder),
231
231
  _signal: N
232
232
  },
233
233
  renderNode: void 0
234
234
  };
235
- return n.renderNode = qe(n, l(E)), n;
235
+ return n.renderNode = Ue(n, l(E)), n;
236
236
  })) || [];
237
237
  }), de = s(() => l(u).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), ue = s(() => l(u).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ie = s(() => g(a.dataSource) ? C.value.records : a.dataSource), {
238
238
  rowSelection: R,
239
239
  selectedRows: x,
240
240
  ...v
241
- } = Je({
241
+ } = Qe({
242
242
  ...a.rowSelection === !0 ? {} : a.rowSelection,
243
243
  rowKey: a.rowKey,
244
244
  dataSource: ie
@@ -249,7 +249,7 @@ const Ca = /* @__PURE__ */ Re({
249
249
  tableProps: A,
250
250
  data: C,
251
251
  setDataSource: ce
252
- } = Ee({
252
+ } = Ke({
253
253
  async request(e) {
254
254
  var t, r;
255
255
  if (!R.value.preserveSelectedRowKeys && g(a.dataSource) && v.clearAll(), !g(a.dataSource))
@@ -277,7 +277,7 @@ const Ca = /* @__PURE__ */ Re({
277
277
  var o, t;
278
278
  if (a.adaptive && (C.value.total > 0 || ((o = a.dataSource) == null ? void 0 : o.length)))
279
279
  return {
280
- y: l(le),
280
+ y: l(re),
281
281
  x: ((t = a.scroll) == null ? void 0 : t.x) || "100%"
282
282
  };
283
283
  if (a.scroll)
@@ -307,19 +307,19 @@ const Ca = /* @__PURE__ */ Re({
307
307
  function ge(e, o, t) {
308
308
  if (Z.includes(e.valueType))
309
309
  return t;
310
- const r = Ue(o);
311
- return e.copyable || e.ellipsis ? p(ke.Paragraph, {
310
+ const r = Ge(o);
311
+ return e.copyable || e.ellipsis ? p(ze.Paragraph, {
312
312
  copyable: e.copyable ? {
313
313
  text: r,
314
314
  tooltip: !1
315
315
  } : !1,
316
- ellipsis: e.ellipsis ? Ke(e.ellipsis) ? {
316
+ ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
317
317
  tooltip: r
318
318
  } : {
319
319
  ...e.ellipsis,
320
320
  tooltip: r
321
321
  } : !1,
322
- content: e.ellipsis ? Me(e, o) : t
322
+ content: e.ellipsis ? Je(e, o) : t
323
323
  }, null) : t;
324
324
  }
325
325
  G(() => l(C).loading, (e) => {
@@ -338,11 +338,15 @@ const Ca = /* @__PURE__ */ Re({
338
338
  var e, o, t;
339
339
  return (t = (o = (e = k.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : t.call(o, !0);
340
340
  }
341
+ function we() {
342
+ return l(u);
343
+ }
341
344
  return oe({
342
345
  submit: () => V(),
343
346
  reset: () => j(),
344
347
  setSearchFormValues: ye,
345
348
  getSearchFormValues: he,
349
+ getShownColumns: we,
346
350
  dataSource: s(() => l(C).records),
347
351
  rowSelection: {
348
352
  selectedRows: s(() => l(x)),
@@ -354,7 +358,7 @@ const Ca = /* @__PURE__ */ Re({
354
358
  key: 0,
355
359
  class: m(e.card ? l(F)("search-wrapper") : null),
356
360
  style: M(e.searchFormWrapperStyle)
357
- }, [p(l(Le).SearchForm, h(e.searchForm || {}, {
361
+ }, [p(l(Ee).SearchForm, h(e.searchForm || {}, {
358
362
  ref_key: "formRef",
359
363
  ref: k,
360
364
  "custom-reset": "",
@@ -362,7 +366,7 @@ const Ca = /* @__PURE__ */ Re({
362
366
  onReset: l(j),
363
367
  "submit-loading": l(A).loading
364
368
  }), J({
365
- default: b(() => [(f(!0), T(U, null, Q(O.value, (t) => (f(), X(Te(t.renderNode), h({
369
+ default: w(() => [(f(!0), T(U, null, Q(O.value, (t) => (f(), X(Fe(t.renderNode), h({
366
370
  key: t.dataIndex,
367
371
  ref_for: !0
368
372
  }, t.fieldProps || {}, {
@@ -371,7 +375,7 @@ const Ca = /* @__PURE__ */ Re({
371
375
  _: 2
372
376
  }, [S.searchFormExtra ? {
373
377
  name: "extra",
374
- fn: b(() => [w(e.$slots, "searchFormExtra")]),
378
+ fn: w(() => [b(e.$slots, "searchFormExtra")]),
375
379
  key: "0"
376
380
  } : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : Y("", !0), I("div", {
377
381
  ref_key: "contentRef",
@@ -385,24 +389,26 @@ const Ca = /* @__PURE__ */ Re({
385
389
  class: m(l(i)("header"))
386
390
  }, [I("div", {
387
391
  class: m(l(L)("header", "title"))
388
- }, [w(e.$slots, "title", h({
392
+ }, [b(e.$slots, "title", h({
389
393
  selectedRows: l(x),
390
- selectedRowKeys: l(R).selectedRowKeys
391
- }, v))], 2), S.title ? (f(), X(l(ze), {
394
+ selectedRowKeys: l(R).selectedRowKeys,
395
+ shownColumns: u.value
396
+ }, v))], 2), S.title ? (f(), X(l(Pe), {
392
397
  key: 0,
393
398
  type: "vertical"
394
- })) : Y("", !0), p(aa, {
399
+ })) : Y("", !0), p(oa, {
395
400
  config: e.settings === !0 ? {} : e.settings
396
401
  }, {
397
- trigger: b(() => [p(l(Pe), {
398
- icon: Fe(l(Xe))
402
+ trigger: w(() => [p(l(Ie), {
403
+ icon: Be(l(Ye))
399
404
  }, null, 8, ["icon"])]),
400
405
  _: 1
401
- }, 8, ["config"])], 2)) : w(e.$slots, "title", h({
406
+ }, 8, ["config"])], 2)) : b(e.$slots, "title", h({
402
407
  key: 1,
403
408
  selectedRows: l(x),
404
- selectedRowKeys: l(R).selectedRowKeys
405
- }, v))], 2), p(l(Ie), h({
409
+ selectedRowKeys: l(R).selectedRowKeys,
410
+ shownColumns: u.value
411
+ }, v))], 2), p(l(Ne), h({
406
412
  class: l(i)("table")
407
413
  }, W.value, {
408
414
  size: B.value,
@@ -410,17 +416,17 @@ const Ca = /* @__PURE__ */ Re({
410
416
  columns: u.value,
411
417
  onResizeColumn: o[0] || (o[0] = (t, r) => r.width = t)
412
418
  }), J({
413
- summary: b(() => [w(e.$slots, "summary", {
419
+ summary: w(() => [b(e.$slots, "summary", {
414
420
  columns: u.value,
415
421
  records: W.value.dataSource
416
422
  })]),
417
423
  _: 2
418
424
  }, [Q(l(_)(S, ["title", "searchFormExtra", "headerCell", "summary"]), (t, r) => ({
419
425
  name: r,
420
- fn: b((d) => [w(e.$slots, r, Be(xe(d || {})))])
426
+ fn: w((d) => [b(e.$slots, r, xe(ke(d || {})))])
421
427
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
422
428
  }
423
429
  });
424
430
  export {
425
- Ca as default
431
+ Ta as default
426
432
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, ref as P, computed as p, unref as r, watch as U, openBlock as a, createElementBlock as f, createElementVNode as v, normalizeClass as x, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as k, Fragment as D, renderList as L, mergeProps as j } from "vue";
1
+ import { defineComponent as E, ref as P, computed as p, unref as r, watch as U, openBlock as s, createElementBlock as f, createElementVNode as v, normalizeClass as x, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as k, Fragment as D, renderList as L, mergeProps as j } from "vue";
2
2
  import { Checkbox as w, Row as z, Col as F } from "ant-design-vue";
3
3
  import "../../style/setting/select-group.css";
4
4
  import "../../../../config-provider/index.mjs";
@@ -32,11 +32,11 @@ const M = /* @__PURE__ */ E({
32
32
  e.children.forEach((n) => n.show = o), e.show = o, c.value = !1;
33
33
  }
34
34
  function A(o, e) {
35
- const n = t.value, l = n.children.find((s) => s.key === o);
35
+ const n = t.value, l = n.children.find((a) => a.key === o);
36
36
  if (!l)
37
37
  return;
38
38
  l.show = e;
39
- const d = n.children.every((s) => s.show), N = n.children.some((s) => s.show);
39
+ const d = n.children.every((a) => a.show), N = n.children.some((a) => a.show);
40
40
  n.show = d, c.value = N && !d;
41
41
  }
42
42
  const B = p(() => t.value.disabled || t.value.children.every((o) => o.disabled));
@@ -52,7 +52,7 @@ const M = /* @__PURE__ */ E({
52
52
  }
53
53
  ), (o, e) => {
54
54
  var n;
55
- return a(), f("div", null, [
55
+ return s(), f("div", null, [
56
56
  v("div", {
57
57
  class: x(r(C)("header"))
58
58
  }, [
@@ -63,15 +63,15 @@ const M = /* @__PURE__ */ E({
63
63
  disabled: B.value
64
64
  }, {
65
65
  default: i(() => [
66
- (a(), h(k(r(b)(m.value.title))))
66
+ (s(), h(k(r(b)(m.value.title))))
67
67
  ]),
68
68
  _: 1
69
69
  }, 8, ["indeterminate", "checked", "disabled"])
70
70
  ], 2),
71
71
  v("div", null, [
72
- u(r(z), null, {
72
+ u(r(z), { align: "middle" }, {
73
73
  default: i(() => [
74
- (a(!0), f(D, null, L(m.value.children, (l) => (a(), h(r(F), {
74
+ (s(!0), f(D, null, L(m.value.children, (l) => (s(), h(r(F), {
75
75
  key: l.key,
76
76
  span: 8
77
77
  }, {
@@ -80,7 +80,7 @@ const M = /* @__PURE__ */ E({
80
80
  "onUpdate:checked": (d) => A(l.key, d)
81
81
  }), {
82
82
  default: i(() => [
83
- (a(), h(k(r(b)(l.title))))
83
+ (s(), h(k(r(b)(l.title))))
84
84
  ]),
85
85
  _: 2
86
86
  }, 1040, ["onUpdate:checked"])
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, computed as x, unref as c, openBlock as l, createElementBlock as s, createVNode as i, withCtx as d, Fragment as m, renderList as w, createBlock as u, mergeProps as B, resolveDynamicComponent as I } from "vue";
1
+ import { defineComponent as b, computed as x, unref as l, openBlock as c, createElementBlock as i, createVNode as s, withCtx as d, Fragment as m, renderList as w, createBlock as u, mergeProps as B, resolveDynamicComponent as I } from "vue";
2
2
  import { Row as L, Col as k, Checkbox as N } from "ant-design-vue";
3
3
  import "../select-group/index.vue.mjs";
4
4
  import { useInjectApTable as P } from "../../../context.mjs";
@@ -10,7 +10,7 @@ const $ = /* @__PURE__ */ b({
10
10
  value: {}
11
11
  },
12
12
  setup(_) {
13
- const a = _, { columnsBackup: y } = P(), g = x(() => [...c(y) || []].sort((e, n) => {
13
+ const a = _, { columnsBackup: g } = P(), y = x(() => [...l(g) || []].sort((e, n) => {
14
14
  var t, o, p, h;
15
15
  return (t = e.children) != null && t.length && !((o = n.children) != null && o.length) ? 1 : !((p = e.children) != null && p.length) && ((h = n.children) != null && h.length) ? -1 : 0;
16
16
  }));
@@ -28,34 +28,37 @@ const $ = /* @__PURE__ */ b({
28
28
  const n = a.value, t = n == null ? void 0 : n.find((o) => o.key === r);
29
29
  t && (t.show = e);
30
30
  }
31
- return (r, e) => (l(), s("div", null, [
32
- i(c(L), { gutter: [24, 16] }, {
31
+ return (r, e) => (c(), i("div", null, [
32
+ s(l(L), {
33
+ gutter: [24, 16],
34
+ align: "middle"
35
+ }, {
33
36
  default: d(() => [
34
- (l(!0), s(m, null, w(g.value, (n) => {
37
+ (c(!0), i(m, null, w(y.value, (n) => {
35
38
  var t;
36
- return l(), s(m, {
39
+ return c(), i(m, {
37
40
  key: n.key
38
41
  }, [
39
- (t = n.children) != null && t.length ? (l(), u(c(k), {
42
+ (t = n.children) != null && t.length ? (c(), u(l(k), {
40
43
  key: 1,
41
44
  span: 24
42
45
  }, {
43
46
  default: d(() => [
44
- i(j, {
47
+ s(j, {
45
48
  value: f(n)
46
49
  }, null, 8, ["value"])
47
50
  ]),
48
51
  _: 2
49
- }, 1024)) : (l(), u(c(k), {
52
+ }, 1024)) : (c(), u(l(k), {
50
53
  key: 0,
51
54
  span: 8
52
55
  }, {
53
56
  default: d(() => [
54
- i(c(N), B({ ref_for: !0 }, C(n), {
57
+ s(l(N), B({ ref_for: !0 }, C(n), {
55
58
  "onUpdate:checked": (o) => v(n.key, o)
56
59
  }), {
57
60
  default: d(() => [
58
- (l(), u(I(c(U)(n.title))))
61
+ (c(), u(I(l(U)(n.title))))
59
62
  ]),
60
63
  _: 2
61
64
  }, 1040, ["onUpdate:checked"])
@@ -1,35 +1,35 @@
1
- import { cloneDeepWith as s, omit as u } from "lodash-unified";
2
- import { isVNode as c, cloneVNode as f } from "vue";
3
- function d(t, o) {
4
- var i;
1
+ import { cloneDeepWith as s, isArray as u, omit as c } from "lodash-unified";
2
+ import { isVNode as f, cloneVNode as a } from "vue";
3
+ function d(e, i) {
4
+ var o;
5
5
  const n = [];
6
- for (const e of o) {
7
- const l = t.find((r) => r.key === e.key);
8
- if ((i = e.children) != null && i.length) {
6
+ for (const t of i) {
7
+ const l = e.find((r) => r.key === t.key);
8
+ if ((o = t.children) != null && o.length) {
9
9
  const r = d(
10
10
  l.children,
11
- e.children
11
+ t.children
12
12
  );
13
13
  r.length && n.push({
14
14
  ...l,
15
- fixed: e.fixed,
15
+ fixed: t.fixed,
16
16
  children: r
17
17
  });
18
18
  } else {
19
- if (!e.show)
19
+ if (!t.show)
20
20
  continue;
21
- n.push({ ...l, fixed: e.fixed });
21
+ n.push({ ...l, fixed: t.fixed });
22
22
  }
23
23
  }
24
24
  return n;
25
25
  }
26
- function p(t) {
27
- return s(t, (o, n) => {
26
+ function y(e) {
27
+ return s(e, (i, n) => {
28
28
  if (n === "label")
29
- return o;
29
+ return i;
30
30
  });
31
31
  }
32
- const a = {
32
+ const h = {
33
33
  display: "inline",
34
34
  "-webkit-line-clamp": "unset",
35
35
  "-webkit-box-orient": "unset",
@@ -38,26 +38,26 @@ const a = {
38
38
  "white-space": "unset",
39
39
  wordBreak: "unset"
40
40
  };
41
- function y(t) {
42
- return c(t) ? f(t, { style: a }) : t;
41
+ function b(e) {
42
+ return f(e) ? a(e, { style: h }) : u(e) ? e[0] : e;
43
43
  }
44
- function b(t) {
45
- function o(n) {
46
- const i = {};
47
- return n.forEach((e, l) => {
44
+ function g(e) {
45
+ function i(n) {
46
+ const o = {};
47
+ return n.forEach((t, l) => {
48
48
  var r;
49
- i[e.key] = {
50
- ...u(e, ["label", "key", "children"]),
49
+ o[t.key] = {
50
+ ...c(t, ["label", "key", "children"]),
51
51
  order: l,
52
- children: (r = e.children) != null && r.length ? o(e.children) : void 0
52
+ children: (r = t.children) != null && r.length ? i(t.children) : void 0
53
53
  };
54
- }), i;
54
+ }), o;
55
55
  }
56
- return o(t);
56
+ return i(e);
57
57
  }
58
58
  export {
59
- y as cloneLabelNode,
60
- p as customCloneColumnStates,
59
+ b as cloneLabelNode,
60
+ y as customCloneColumnStates,
61
61
  d as default,
62
- b as getColumnStateString
62
+ g as getColumnStateString
63
63
  };