@aplus-frontend/ui 0.4.34 → 0.5.0-beta.0

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 (99) hide show
  1. package/es/index.mjs +14 -12
  2. package/es/src/ap-grid/constants.d.ts +9 -0
  3. package/es/src/ap-grid/constants.mjs +12 -0
  4. package/es/src/ap-grid/hooks/use-inner-params.d.ts +10 -0
  5. package/es/src/ap-grid/hooks/use-inner-params.mjs +41 -0
  6. package/es/src/ap-grid/hooks/use-render-columns.d.ts +6 -0
  7. package/es/src/ap-grid/hooks/use-render-columns.mjs +29 -0
  8. package/es/src/ap-grid/index.d.ts +3 -0
  9. package/es/src/ap-grid/index.mjs +2 -0
  10. package/es/src/ap-grid/index.vue.mjs +399 -0
  11. package/es/src/ap-grid/index.vue2.mjs +4 -0
  12. package/es/src/ap-grid/interface.d.ts +279 -0
  13. package/es/src/ap-grid/interface.mjs +1 -0
  14. package/es/src/ap-grid/style/css.d.ts +0 -0
  15. package/es/src/ap-grid/style/css.js +1 -0
  16. package/es/src/ap-grid/style/index.d.ts +0 -0
  17. package/es/src/ap-grid/style/index.js +1 -0
  18. package/es/src/ap-grid/utils/col.d.ts +20 -0
  19. package/es/src/ap-grid/utils/col.mjs +106 -0
  20. package/es/src/ap-grid/utils/renderer.d.ts +3 -0
  21. package/es/src/ap-grid/utils/renderer.mjs +21 -0
  22. package/es/src/ap-grid/utils/table.d.ts +13 -0
  23. package/es/src/ap-grid/utils/table.mjs +64 -0
  24. package/es/src/ap-table/ap-table.vue.d.ts +2 -0
  25. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +38 -38
  26. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +9 -9
  27. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +21 -21
  28. package/es/src/ap-table/components/setting/utils.d.ts +15 -3
  29. package/es/src/ap-table/components/setting/utils.mjs +49 -38
  30. package/es/src/ap-table/context.d.ts +2 -1
  31. package/es/src/ap-table/context.mjs +8 -7
  32. package/es/src/ap-table/hooks/use-table-column-state.mjs +79 -70
  33. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +8 -2
  34. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +43 -40
  35. package/es/src/ap-table/hooks/use-table-row-selection.d.ts +12 -0
  36. package/es/src/ap-table/hooks/use-table-row-selection.mjs +41 -27
  37. package/es/src/ap-table/interface.d.ts +4 -0
  38. package/es/src/ap-table/utils.d.ts +1 -1
  39. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +2 -0
  40. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +2 -0
  41. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +2 -0
  42. package/es/src/business/ap-table-modal/index.d.ts +8 -0
  43. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +4 -0
  44. package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
  45. package/es/src/index.d.ts +1 -0
  46. package/es/src/index.mjs +244 -241
  47. package/es/src/path-map.mjs +2 -1
  48. package/lib/index.js +1 -1
  49. package/lib/src/ap-grid/constants.d.ts +9 -0
  50. package/lib/src/ap-grid/constants.js +1 -0
  51. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +10 -0
  52. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -0
  53. package/lib/src/ap-grid/hooks/use-render-columns.d.ts +6 -0
  54. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -0
  55. package/lib/src/ap-grid/index.d.ts +3 -0
  56. package/lib/src/ap-grid/index.js +1 -0
  57. package/lib/src/ap-grid/index.vue.js +1 -0
  58. package/lib/src/ap-grid/index.vue2.js +1 -0
  59. package/lib/src/ap-grid/interface.d.ts +279 -0
  60. package/lib/src/ap-grid/interface.js +1 -0
  61. package/lib/src/ap-grid/style/css.cjs +1 -0
  62. package/lib/src/ap-grid/style/css.d.ts +0 -0
  63. package/lib/src/ap-grid/style/index.cjs +1 -0
  64. package/lib/src/ap-grid/style/index.d.ts +0 -0
  65. package/lib/src/ap-grid/utils/col.d.ts +20 -0
  66. package/lib/src/ap-grid/utils/col.js +1 -0
  67. package/lib/src/ap-grid/utils/renderer.d.ts +3 -0
  68. package/lib/src/ap-grid/utils/renderer.js +1 -0
  69. package/lib/src/ap-grid/utils/table.d.ts +13 -0
  70. package/lib/src/ap-grid/utils/table.js +1 -0
  71. package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
  72. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  73. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  74. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  75. package/lib/src/ap-table/components/setting/utils.d.ts +15 -3
  76. package/lib/src/ap-table/components/setting/utils.js +1 -1
  77. package/lib/src/ap-table/context.d.ts +2 -1
  78. package/lib/src/ap-table/context.js +1 -1
  79. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  80. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +8 -2
  81. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  82. package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +12 -0
  83. package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -1
  84. package/lib/src/ap-table/interface.d.ts +4 -0
  85. package/lib/src/ap-table/utils.d.ts +1 -1
  86. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +2 -0
  87. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +2 -0
  88. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +2 -0
  89. package/lib/src/business/ap-table-modal/index.d.ts +8 -0
  90. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +4 -0
  91. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
  92. package/lib/src/index.d.ts +1 -0
  93. package/lib/src/index.js +1 -1
  94. package/lib/src/path-map.js +1 -1
  95. package/package.json +3 -1
  96. package/theme/ap-grid/index.css +302 -0
  97. package/theme/ap-grid/index.less +65 -0
  98. package/theme/index.css +51 -0
  99. package/theme/index.less +1 -0
@@ -1,16 +1,16 @@
1
- import { ref as ee, reactive as I, unref as h, nextTick as te, onMounted as re, watch as oe, computed as A, createVNode as C } from "vue";
2
- import { useTableSortedAndFiltered as ne } from "./use-sorted-filtered.mjs";
1
+ import { ref as te, reactive as I, unref as h, nextTick as re, onMounted as oe, watch as ne, computed as A, createVNode as C } from "vue";
2
+ import { useTableSortedAndFiltered as ae } from "./use-sorted-filtered.mjs";
3
3
  import "../../config-provider/index.mjs";
4
- import { parseFieldValue as ae, dataIndexToStr as se, isEqualCustom as ce } from "../utils.mjs";
5
- import { isArray as N, isEqualWith as ie } from "lodash-unified";
6
- import { useLocale as le } from "../../config-provider/hooks/use-locale.mjs";
7
- import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
4
+ import { parseFieldValue as se, dataIndexToStr as ce, isEqualCustom as ie } from "../utils.mjs";
5
+ import { isArray as N, isEqualWith as le } from "lodash-unified";
6
+ import { useLocale as ue } from "../../config-provider/hooks/use-locale.mjs";
7
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
8
8
  const S = 1, L = 10;
9
- function fe(g) {
9
+ function ge(g) {
10
10
  const l = {};
11
11
  return g && (g === !0 ? (l.current = S, l.pageSize = L) : (l.current = g.defaultCurrent || S, l.pageSize = g.defaultPageSize || L)), l;
12
12
  }
13
- const Te = ({
13
+ const Pe = ({
14
14
  manual: g = !1,
15
15
  request: l,
16
16
  defaultParams: v = {},
@@ -20,6 +20,7 @@ const Te = ({
20
20
  resetFieldsIgnores: V,
21
21
  filterFields: U,
22
22
  sortFields: B,
23
+ namespace: K = "ap-table",
23
24
  pagination: p = {
24
25
  defaultCurrent: S,
25
26
  defaultPageSize: L,
@@ -28,15 +29,15 @@ const Te = ({
28
29
  }
29
30
  }) => {
30
31
  let b = 0, s = {};
31
- const K = p ?? {}, M = (e) => D ? D(e) : e, z = ee(), c = I(fe(p)), {
32
- getColumnSFConfig: $,
33
- setSF: G,
34
- clearAll: J
35
- } = ne(), {
32
+ const M = p ?? {}, $ = (e) => D ? D(e) : e, z = te(), c = I(ge(p)), {
33
+ getColumnSFConfig: G,
34
+ setSF: J,
35
+ clearAll: Q
36
+ } = ae(), {
36
37
  t: T
37
- } = le(), {
38
+ } = ue(), {
38
39
  b: P
39
- } = ue("ap-table"), o = I({
40
+ } = fe(K), o = I({
40
41
  total: y.length,
41
42
  records: y,
42
43
  loading: !1
@@ -45,7 +46,7 @@ const Te = ({
45
46
  return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
46
47
  }, O = async (e) => {
47
48
  var n;
48
- const t = M(e), r = Date.now();
49
+ const t = $(e), r = Date.now();
49
50
  b = r, o.loading = !0;
50
51
  try {
51
52
  const a = await l({
@@ -63,22 +64,22 @@ const Te = ({
63
64
  return Object.entries(e).forEach(([r, n]) => {
64
65
  if (t[r] = n, R && n) {
65
66
  const a = R[r];
66
- a && (t[r] = ae(a, n));
67
+ a && (t[r] = se(a, n));
67
68
  }
68
69
  }), t;
69
- }, Q = async (e) => {
70
+ }, W = async (e) => {
70
71
  var n, a, u, f, d;
71
72
  const t = F(), r = {};
72
73
  Object.entries(t).forEach(([m, x]) => {
73
74
  V && V.indexOf(m) > -1 && (r[m] = x);
74
- }), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), te(() => {
75
+ }), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), re(() => {
75
76
  e == null || e();
76
77
  });
77
78
  }, w = (e) => {
78
79
  s = e;
79
80
  const t = _(e);
80
81
  O(t);
81
- }, W = (e) => {
82
+ }, Z = (e) => {
82
83
  w({
83
84
  ...s,
84
85
  ...e
@@ -92,11 +93,11 @@ const Te = ({
92
93
  current: p ? S : void 0,
93
94
  pageSize: p ? s.pageSize || c.pageSize : void 0
94
95
  });
95
- }, Z = () => {
96
- J(), s.sort = {}, s.filter = {}, Q(E);
96
+ }, H = () => {
97
+ Q(), s.sort = {}, s.filter = {}, W(E);
97
98
  }, j = () => {
98
99
  w(s);
99
- }, H = (e) => {
100
+ }, X = (e) => {
100
101
  if (!p)
101
102
  j();
102
103
  else {
@@ -104,17 +105,17 @@ const Te = ({
104
105
  current: t,
105
106
  pageSize: r
106
107
  } = c, n = o.total - e, a = Math.ceil(n / r), u = t > a ? a : t;
107
- W({
108
+ Z({
108
109
  current: u > 0 ? u : 1
109
110
  });
110
111
  }
111
112
  }, q = (e, t, r) => {
112
113
  var m, x;
113
114
  const n = F();
114
- c.current = e.current, c.pageSize = e.pageSize, G(t, r);
115
+ c.current = e.current, c.pageSize = e.pageSize, J(t, r);
115
116
  const a = N(r) ? [...r] : [r], u = {};
116
117
  for (const i of a)
117
- (m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[se(i.columnKey || i.field)] = i.order);
118
+ (m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[ce(i.columnKey || i.field)] = i.order);
118
119
  const f = {};
119
120
  for (const i of Object.keys(t))
120
121
  (x = h(U)) != null && x.includes(i) && t[i] && (f[i] = t[i]);
@@ -125,9 +126,9 @@ const Te = ({
125
126
  current: e.current,
126
127
  pageSize: e.pageSize
127
128
  };
128
- ie(s, d, ce) || w(d);
129
+ le(s, d, ie) || w(d);
129
130
  };
130
- re(() => {
131
+ oe(() => {
131
132
  const e = F(), {
132
133
  current: t,
133
134
  pageSize: r
@@ -142,12 +143,12 @@ const Te = ({
142
143
  const n = _(s);
143
144
  O(n);
144
145
  }
145
- }), oe(() => h(v), () => {
146
+ }), ne(() => h(v), () => {
146
147
  E();
147
148
  }, {
148
149
  deep: !0
149
150
  });
150
- const X = A(() => {
151
+ const Y = A(() => {
151
152
  if (o.total === 0)
152
153
  return "-";
153
154
  const {
@@ -156,14 +157,14 @@ const Te = ({
156
157
  } = c;
157
158
  return `${e}/${Math.ceil(o.total / t)}`;
158
159
  });
159
- function Y(e) {
160
+ function k(e) {
160
161
  N(e) && (o.records = e, o.total = e.length);
161
162
  }
162
- const k = A(() => {
163
+ const ee = A(() => {
163
164
  const {
164
165
  showLessItems: e,
165
166
  showTotal: t
166
- } = K;
167
+ } = M;
167
168
  return {
168
169
  loading: o.loading,
169
170
  pagination: {
@@ -182,7 +183,7 @@ const Te = ({
182
183
  class: P("pagination--total-right")
183
184
  }, [T("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
184
185
  class: P("pagination-count-text")
185
- }, [h(X)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
186
+ }, [h(Y)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
186
187
  },
187
188
  onChange: q,
188
189
  dataSource: o.records
@@ -191,19 +192,21 @@ const Te = ({
191
192
  return {
192
193
  formRef: z,
193
194
  submit: E,
194
- reset: Z,
195
+ reset: H,
195
196
  refresh: j,
196
- refreshByDelete: H,
197
+ refreshByDelete: X,
197
198
  data: o,
198
199
  current: c.current,
199
200
  pageSize: c.pageSize,
200
201
  handleTableChange: q,
201
- tableProps: k,
202
+ tableProps: ee,
202
203
  dataSource: A(() => o.records),
203
- setDataSource: Y,
204
- getColumnSFConfig: $
204
+ setDataSource: k,
205
+ getColumnSFConfig: G
205
206
  };
206
207
  };
207
208
  export {
208
- Te as useTablePaging
209
+ S as DEFAULT_CURRENT,
210
+ L as DEFAULT_PAGE_SIZE,
211
+ Pe as useTablePaging
209
212
  };
@@ -44,6 +44,18 @@ export interface RowSelectionReturnType<RecordType = any> {
44
44
  * @returns
45
45
  */
46
46
  toggleSelect: (item: RecordType) => void;
47
+ /**
48
+ * 多项选中
49
+ * @param items
50
+ * @returns
51
+ */
52
+ selectMulti: (items: RecordType[]) => void;
53
+ /**
54
+ * 多项反选
55
+ * @param items
56
+ * @returns
57
+ */
58
+ unSelectMulti: (items: RecordType[]) => void;
47
59
  }
48
60
  type RowSelectionParams<T> = Omit<ApTableRowSelection<T>, 'mode'> & {
49
61
  /**
@@ -1,62 +1,76 @@
1
- import { ref as h, computed as s, unref as c } from "vue";
2
- import { isFunction as x } from "lodash-unified";
3
- const g = (o) => {
4
- const n = h([]);
5
- function r(e, t) {
1
+ import { ref as y, computed as s, unref as c } from "vue";
2
+ import { isFunction as K } from "lodash-unified";
3
+ const m = (a) => {
4
+ const n = y([]);
5
+ function f(e, t) {
6
6
  n.value = t;
7
7
  }
8
- const l = (e) => x(o.rowKey) ? o.rowKey(e) : e[o.rowKey], a = s(() => {
8
+ const l = (e) => K(a.rowKey) ? a.rowKey(e) : e[a.rowKey], o = s(() => {
9
9
  const e = /* @__PURE__ */ new Map();
10
10
  return c(n).forEach((t) => {
11
11
  e.set(l(t), t);
12
12
  }), e;
13
13
  });
14
- function f(e) {
15
- return c(a).has(l(e));
14
+ function r(e) {
15
+ return c(o).has(l(e));
16
16
  }
17
17
  function d(e) {
18
- const t = c(a);
18
+ const t = c(o);
19
19
  t.set(l(e), e), n.value = [...t.values()];
20
20
  }
21
+ function i(e) {
22
+ const t = c(o);
23
+ for (const u of e)
24
+ t.set(l(u), u);
25
+ n.value = [...t.values()];
26
+ }
21
27
  function S(e) {
22
- const t = c(a);
28
+ const t = c(o);
23
29
  t.delete(l(e)), n.value = [...t.values()];
24
30
  }
25
- function i() {
26
- const e = c(a);
27
- c(o.dataSource).forEach((t) => {
31
+ function v(e) {
32
+ const t = c(o);
33
+ for (const u of e)
34
+ t.delete(l(u));
35
+ n.value = [...t.values()];
36
+ }
37
+ function M() {
38
+ const e = c(o);
39
+ c(a.dataSource).forEach((t) => {
28
40
  e.set(l(t), t);
29
41
  }), n.value = [...e.values()];
30
42
  }
31
- function v(e) {
32
- const t = c(a), u = l(e);
43
+ function w(e) {
44
+ const t = c(o), u = l(e);
33
45
  t.has(u) ? t.delete(u) : t.set(u, e), n.value = [...t.values()];
34
46
  }
35
- function w() {
36
- const e = c(a);
37
- c(o.dataSource).forEach((t) => {
47
+ function x() {
48
+ const e = c(o);
49
+ c(a.dataSource).forEach((t) => {
38
50
  e.delete(l(t));
39
51
  }), n.value = [...e.values()];
40
52
  }
41
- function M() {
53
+ function h() {
42
54
  n.value = [];
43
55
  }
44
56
  return {
45
57
  select: d,
46
58
  unSelect: S,
47
- isSelected: f,
48
- selectAll: i,
49
- unSelectAll: w,
50
- clearAll: M,
51
- toggleSelect: v,
59
+ isSelected: r,
60
+ selectAll: M,
61
+ unSelectAll: x,
62
+ clearAll: h,
63
+ toggleSelect: w,
52
64
  selectedRows: n,
65
+ selectMulti: i,
66
+ unSelectMulti: v,
53
67
  rowSelection: s(() => ({
54
- ...o,
55
- onChange: r,
68
+ ...a,
69
+ onChange: f,
56
70
  selectedRowKeys: c(n).map((e) => l(e))
57
71
  }))
58
72
  };
59
73
  };
60
74
  export {
61
- g as default
75
+ m as default
62
76
  };
@@ -379,3 +379,7 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
379
379
  y: undefined;
380
380
  };
381
381
  };
382
+ export type ApTableContextRenderConfig = {
383
+ color: string;
384
+ className: string;
385
+ };
@@ -1891,7 +1891,7 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
1891
1891
  }) => any, tooltipColor?: string): number | boolean | void | VNodeArrayChildren | VNode< RendererNode, RendererElement, {
1892
1892
  [key: string]: any;
1893
1893
  }> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
1894
- export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
1894
+ export declare function recursionApColumns<ReturnType = any, ColumnsType extends Array<any> = (ColumnType | ColumnGroupType<any>)[]>(columns: ColumnsType, handler: (column: ColumnsType[0]) => ReturnType): ReturnType[];
1895
1895
  export declare function isEqualCustom(value: any, other: any): boolean | undefined;
1896
1896
  export declare function falseToUndefined(obj: any): any;
1897
1897
  export {};
@@ -23,6 +23,8 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
23
23
  isSelected: (item: any) => boolean;
24
24
  clearAll: () => void;
25
25
  toggleSelect: (item: any) => void;
26
+ selectMulti: (items: any[]) => void;
27
+ unSelectMulti: (items: any[]) => void;
26
28
  } | undefined;
27
29
  getShownColumns: () => TableColumnsType<any>;
28
30
  scrollBar: {
@@ -21,6 +21,8 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
21
21
  isSelected: (item: any) => boolean;
22
22
  clearAll: () => void;
23
23
  toggleSelect: (item: any) => void;
24
+ selectMulti: (items: any[]) => void;
25
+ unSelectMulti: (items: any[]) => void;
24
26
  } | undefined;
25
27
  getShownColumns: () => TableColumnsType<any>;
26
28
  scrollBar: {
@@ -20,6 +20,8 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
20
20
  isSelected: (item: any) => boolean;
21
21
  clearAll: () => void;
22
22
  toggleSelect: (item: any) => void;
23
+ selectMulti: (items: any[]) => void;
24
+ unSelectMulti: (items: any[]) => void;
23
25
  } | undefined;
24
26
  getShownColumns: () => TableColumnsType<any>;
25
27
  scrollBar: {
@@ -29,6 +29,8 @@ declare const ApTableModal: {
29
29
  isSelected: (item: any) => boolean;
30
30
  clearAll: () => void;
31
31
  toggleSelect: (item: any) => void;
32
+ selectMulti: (items: any[]) => void;
33
+ unSelectMulti: (items: any[]) => void;
32
34
  } | undefined;
33
35
  getShownColumns: () => TableColumnsType<any>;
34
36
  scrollBar: {
@@ -75,6 +77,8 @@ declare const ApTableModal: {
75
77
  unSelectAll: () => void;
76
78
  clearAll: () => void;
77
79
  toggleSelect: (item: any) => void;
80
+ selectMulti: (items: any[]) => void;
81
+ unSelectMulti: (items: any[]) => void;
78
82
  selectedRows: ComputedRef<any[]>;
79
83
  };
80
84
  scrollBar: {
@@ -113,6 +117,8 @@ declare const ApTableModal: {
113
117
  isSelected: (item: any) => boolean;
114
118
  clearAll: () => void;
115
119
  toggleSelect: (item: any) => void;
120
+ selectMulti: (items: any[]) => void;
121
+ unSelectMulti: (items: any[]) => void;
116
122
  } | undefined;
117
123
  getShownColumns: () => TableColumnsType<any>;
118
124
  scrollBar: {
@@ -165,6 +171,8 @@ declare const ApTableModal: {
165
171
  isSelected: (item: any) => boolean;
166
172
  clearAll: () => void;
167
173
  toggleSelect: (item: any) => void;
174
+ selectMulti: (items: any[]) => void;
175
+ unSelectMulti: (items: any[]) => void;
168
176
  } | undefined;
169
177
  getShownColumns: () => TableColumnsType<any>;
170
178
  scrollBar: {
@@ -22,6 +22,8 @@ declare const _default: DefineComponent<__VLS_Props, {
22
22
  isSelected: (item: any) => boolean;
23
23
  clearAll: () => void;
24
24
  toggleSelect: (item: any) => void;
25
+ selectMulti: (items: any[]) => void;
26
+ unSelectMulti: (items: any[]) => void;
25
27
  } | undefined;
26
28
  getShownColumns: () => TableColumnsType<any>;
27
29
  scrollBar: {
@@ -70,6 +72,8 @@ declare const _default: DefineComponent<__VLS_Props, {
70
72
  unSelectAll: () => void;
71
73
  clearAll: () => void;
72
74
  toggleSelect: (item: any) => void;
75
+ selectMulti: (items: any[]) => void;
76
+ unSelectMulti: (items: any[]) => void;
73
77
  selectedRows: ComputedRef<any[]>;
74
78
  };
75
79
  scrollBar: {
@@ -47,6 +47,8 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
47
47
  isSelected: (item: any) => boolean;
48
48
  clearAll: () => void;
49
49
  toggleSelect: (item: any) => void;
50
+ selectMulti: (items: any[]) => void;
51
+ unSelectMulti: (items: any[]) => void;
50
52
  } | undefined;
51
53
  getShownColumns: () => TableColumnsType<any>;
52
54
  scrollBar: {
package/es/src/index.d.ts CHANGED
@@ -22,3 +22,4 @@ export * from './scroll-view';
22
22
  export * from './portal';
23
23
  export * from './full-screen';
24
24
  export * from './resize-observer';
25
+ export * from './ap-grid';