@aplus-frontend/ui 0.0.32 → 0.0.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 (91) hide show
  1. package/es/index.mjs +217 -215
  2. package/es/src/ap-field/select/index.vue.mjs +36 -32
  3. package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
  4. package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
  5. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +30 -31
  6. package/es/src/ap-form/ap-form.vue2.mjs +11 -11
  7. package/es/src/ap-form/modal-form/index.vue.d.ts +2 -1
  8. package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
  9. package/es/src/ap-form/search-form/index.vue.mjs +79 -78
  10. package/es/src/ap-modal/utils/createModal.mjs +34 -31
  11. package/es/src/ap-table/ap-table.vue.d.ts +54 -11
  12. package/es/src/ap-table/ap-table.vue.mjs +171 -148
  13. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  14. package/es/src/ap-table/hooks/use-table-paging.mjs +47 -46
  15. package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
  16. package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
  17. package/es/src/ap-table/interface.d.ts +14 -2
  18. package/es/src/ap-table/style/ap-table.css +2 -0
  19. package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
  20. package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
  21. package/es/src/ap-tag/interface.d.ts +24 -0
  22. package/es/src/ap-tag/style/ap-tag-group.css +8 -0
  23. package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
  24. package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
  25. package/es/src/business/ap-select-layout/index.css +117 -0
  26. package/es/src/business/ap-select-layout/index.d.ts +4 -0
  27. package/es/src/business/ap-select-layout/interface.d.ts +9 -0
  28. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
  29. package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
  30. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
  31. package/es/src/business/index.d.ts +76 -1
  32. package/es/src/business/index.mjs +9 -6
  33. package/es/src/config-provider/config-provider.d.ts +144 -1
  34. package/es/src/config-provider/config-provider.mjs +35 -29
  35. package/es/src/config-provider/index.mjs +22 -20
  36. package/es/src/design-token/index.mjs +6 -2
  37. package/es/src/editable-table/form-item.vue.d.ts +7 -7
  38. package/es/src/editable-table/form-item.vue.mjs +2 -2
  39. package/es/src/editable-table/index.vue.d.ts +7 -7
  40. package/es/src/editable-table/index.vue.mjs +10 -10
  41. package/es/src/editable-table/interface.d.ts +1 -1
  42. package/es/src/index.mjs +188 -186
  43. package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
  44. package/es/src/theme/ap-table/ap-table.css +2 -0
  45. package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
  46. package/lib/index.js +1 -1
  47. package/lib/src/ap-field/select/index.vue.js +1 -1
  48. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
  49. package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
  50. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  51. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  52. package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -1
  53. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  54. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  55. package/lib/src/ap-modal/utils/createModal.js +1 -1
  56. package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
  57. package/lib/src/ap-table/ap-table.vue.js +1 -1
  58. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  59. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  60. package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
  61. package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
  62. package/lib/src/ap-table/interface.d.ts +14 -2
  63. package/lib/src/ap-table/style/ap-table.css +2 -0
  64. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
  65. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  66. package/lib/src/ap-tag/interface.d.ts +24 -0
  67. package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
  68. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
  69. package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
  70. package/lib/src/business/ap-select-layout/index.css +117 -0
  71. package/lib/src/business/ap-select-layout/index.d.ts +4 -0
  72. package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
  73. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
  74. package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
  75. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
  76. package/lib/src/business/index.d.ts +76 -1
  77. package/lib/src/business/index.js +1 -1
  78. package/lib/src/config-provider/config-provider.d.ts +144 -1
  79. package/lib/src/config-provider/config-provider.js +1 -1
  80. package/lib/src/config-provider/index.js +1 -1
  81. package/lib/src/design-token/index.js +1 -1
  82. package/lib/src/editable-table/form-item.vue.d.ts +7 -7
  83. package/lib/src/editable-table/form-item.vue.js +1 -1
  84. package/lib/src/editable-table/index.vue.d.ts +7 -7
  85. package/lib/src/editable-table/index.vue.js +1 -1
  86. package/lib/src/editable-table/interface.d.ts +1 -1
  87. package/lib/src/index.js +1 -1
  88. package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
  89. package/lib/src/theme/ap-table/ap-table.css +2 -0
  90. package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
  91. package/package.json +2 -2
@@ -1,24 +1,25 @@
1
- import { isVNode as te, defineComponent as ae, useSlots as oe, ref as le, unref as t, shallowRef as j, computed as g, watch as D, cloneVNode as ne, createVNode as l, Fragment as F, openBlock as c, createBlock as h, mergeProps as re, withCtx as R, resolveDynamicComponent as b, createElementBlock as se, renderList as ue } from "vue";
2
- import { Col as v, Flex as O, Space as ie, Button as B, Row as pe } from "ant-design-vue";
1
+ import { isVNode as oe, defineComponent as ae, useSlots as le, ref as ne, unref as t, shallowRef as j, computed as g, watch as M, cloneVNode as re, createVNode as l, Fragment as S, openBlock as c, createBlock as h, mergeProps as se, withCtx as B, resolveDynamicComponent as R, createElementBlock as ue, renderList as ie } from "vue";
2
+ import { Col as b, Flex as D, Space as pe, Button as v, Row as ce } from "ant-design-vue";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../ap-form-item.vue2.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { genRealChildren as $ } from "../ap-form-item-group/helper.mjs";
7
- import { DoubleRightOutlined as ce } from "@ant-design/icons-vue";
6
+ import { genRealChildren as O } from "../ap-form-item-group/helper.mjs";
7
+ import { DoubleRightOutlined as de } from "@ant-design/icons-vue";
8
8
  import "../../config-provider/index.mjs";
9
9
  import "../style/search-form.css";
10
- import { isArray as de, omit as fe } from "lodash-unified";
11
- import { isDef as me } from "../../utils/index.mjs";
12
- import { diffFormItem as he } from "./utils.mjs";
13
- import { useControllableValue as xe } from "../../hooks/useControllableValue.mjs";
14
- import { useNamespace as Ce } from "../../config-provider/hooks/use-namespace.mjs";
15
- import { useLocale as ge } from "../../config-provider/hooks/use-locale.mjs";
16
- import L from "../ap-form-item.vue.mjs";
17
- import ye from "../ap-form.vue2.mjs";
18
- function _e(d) {
19
- return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !te(d);
10
+ import { isArray as fe, omit as me } from "lodash-unified";
11
+ import { isDef as he } from "../../utils/index.mjs";
12
+ import { diffFormItem as xe } from "./utils.mjs";
13
+ import { useControllableValue as Ce } from "../../hooks/useControllableValue.mjs";
14
+ import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
15
+ import { useGlobalConfig as ye } from "../../config-provider/hooks/use-global-config.mjs";
16
+ import { useLocale as _e } from "../../config-provider/hooks/use-locale.mjs";
17
+ import $ from "../ap-form-item.vue.mjs";
18
+ import Fe from "../ap-form.vue2.mjs";
19
+ function Se(d) {
20
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !oe(d);
20
21
  }
21
- const i = 24, $e = /* @__PURE__ */ ae({
22
+ const i = 24, qe = /* @__PURE__ */ ae({
22
23
  name: "ApFormSearchForm",
23
24
  __name: "index",
24
25
  props: {
@@ -98,55 +99,55 @@ const i = 24, $e = /* @__PURE__ */ ae({
98
99
  },
99
100
  emits: ["update:collapse"],
100
101
  setup(d, {
101
- expose: M,
102
+ expose: L,
102
103
  emit: q
103
104
  }) {
104
105
  var k;
105
- const r = oe(), a = d, z = q, {
106
+ const r = le(), o = d, z = q, {
106
107
  value: f,
107
108
  updateValue: U
108
- } = xe(a, z, {
109
+ } = Ce(o, z, {
109
110
  valuePropName: "collapse",
110
111
  defaultValuePropName: "defaultCollapse"
111
112
  }), {
112
113
  b: W
113
- } = Ce("ap-form-search-form"), {
114
+ } = ge("ap-form-search-form"), G = ye("uiMode"), {
114
115
  t: w
115
- } = ge(), x = le();
116
- function G() {
117
- U(!t(f));
118
- }
116
+ } = _e(), x = ne();
119
117
  function H() {
120
- var e, o;
121
- (o = (e = x.value) == null ? void 0 : e.validateFields()) == null || o.then(a.onSubmit);
118
+ U(!t(f));
122
119
  }
123
120
  function J() {
124
- var e, o, n;
125
- a.customReset || (o = (e = x.value) == null ? void 0 : e.resetFields) == null || o.call(e), (n = a.onReset) == null || n.call(a);
121
+ var e, a;
122
+ (a = (e = x.value) == null ? void 0 : e.validateFields()) == null || a.then(o.onSubmit);
123
+ }
124
+ function K() {
125
+ var e, a, n;
126
+ o.customReset || (a = (e = x.value) == null ? void 0 : e.resetFields) == null || a.call(e), (n = o.onReset) == null || n.call(o);
126
127
  }
127
128
  let E = [];
128
- const y = j($(r.default())), m = j((k = r.extra) == null ? void 0 : k.call(r)), N = g(() => Math.floor(i / a.countPerRow));
129
- D(() => r.default(), (e) => {
130
- E = y.value, y.value = $(e);
131
- }), D(() => {
129
+ const y = j(O(r.default())), m = j((k = r.extra) == null ? void 0 : k.call(r)), N = g(() => Math.floor(i / o.countPerRow));
130
+ M(() => r.default(), (e) => {
131
+ E = y.value, y.value = O(e);
132
+ }), M(() => {
132
133
  var e;
133
134
  return (e = r.extra) == null ? void 0 : e.call(r);
134
135
  }, (e) => {
135
136
  m.value = e;
136
137
  });
137
- const K = (e) => me(e) ? (de(e) ? e : [e]).join("") : Date.now(), _ = g(() => {
138
- const e = he(E, y.value), o = [], n = [], s = t(N);
139
- let S = 0;
138
+ const Q = (e) => he(e) ? (fe(e) ? e : [e]).join("") : Date.now(), _ = g(() => {
139
+ const e = xe(E, y.value), a = [], n = [], s = t(N);
140
+ let F = 0;
140
141
  e.forEach((u) => {
141
142
  const p = u.props;
142
- p != null && p.hidden ? o.push(u) : (S += p.span || s, n.push(u));
143
+ p != null && p.hidden ? a.push(u) : (F += p.span || s, n.push(u));
143
144
  });
144
- const A = i - (S + s) % i, X = A < s ? i : A, P = i - s * (t(m) && !a.extraInAction ? 2 : 1), Y = !a.forceExpand && S > P;
145
+ const A = i - (F + s) % i, Y = A < s ? i : A, P = i - s * (t(m) && !o.extraInAction ? 2 : 1), Z = !o.forceExpand && F > P;
145
146
  let T = 0, V = 0;
146
- const Z = n.map((u, p) => {
147
+ const ee = n.map((u, p) => {
147
148
  const C = u.props, I = C.span || s;
148
- if (T += I, !a.forceExpand && t(f) && T > P) {
149
- o.push(ne(u, {
149
+ if (T += I, !o.forceExpand && t(f) && T > P) {
150
+ a.push(re(u, {
150
151
  hidden: !0
151
152
  }));
152
153
  return;
@@ -154,77 +155,77 @@ const i = 24, $e = /* @__PURE__ */ ae({
154
155
  return V += I, {
155
156
  node: u,
156
157
  span: C.span || s,
157
- key: `ApFormSearchFormItem-${p}-${K(C.name)}-${C._signal}`
158
+ key: `ApFormSearchFormItem-${p}-${Q(C.name)}-${C._signal}`
158
159
  };
159
- }).filter(Boolean), ee = i - V - s;
160
+ }).filter(Boolean), te = i - V - s;
160
161
  return {
161
- hideNode: l(F, null, [o]),
162
- nodes: Z,
163
- defaultExtraSpan: X,
164
- actualExtraSpan: ee,
165
- showCollapse: Y
162
+ hideNode: l(S, null, [a]),
163
+ nodes: ee,
164
+ defaultExtraSpan: Y,
165
+ actualExtraSpan: te,
166
+ showCollapse: Z
166
167
  };
167
- }), Q = g(() => {
168
+ }), X = g(() => {
168
169
  let e;
169
- const o = t(_);
170
- return l(F, null, [l(v, {
170
+ const a = t(_);
171
+ return l(S, null, [l(b, {
171
172
  span: t(t(N))
172
173
  }, {
173
- default: () => [l(L, null, {
174
- default: () => [l(O, {
174
+ default: () => [l($, null, {
175
+ default: () => [l(D, {
175
176
  justify: "space-between"
176
177
  }, {
177
- default: () => [l(ie, null, {
178
- default: () => [l(B, {
178
+ default: () => [l(pe, null, {
179
+ default: () => [l(v, {
179
180
  type: "primary",
180
- onClick: H,
181
- loading: a.submitLoading,
181
+ onClick: J,
182
+ loading: o.submitLoading,
182
183
  htmlType: "submit"
183
184
  }, {
184
- default: () => [a.searchText || w("ap.apForm.search.search")]
185
- }), l(B, {
186
- onClick: J
185
+ default: () => [o.searchText || w("ap.apForm.search.search")]
186
+ }), l(v, {
187
+ onClick: K
187
188
  }, {
188
- default: () => [a.resetText || w("ap.apForm.search.reset")]
189
- }), o.showCollapse ? l(B, {
190
- onClick: G,
191
- icon: l(ce, {
192
- style: "color:#B8C3D1",
189
+ default: () => [o.resetText || w("ap.apForm.search.reset")]
190
+ }), a.showCollapse ? l(v, {
191
+ onClick: H,
192
+ icon: l(de, {
193
+ style: G.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
193
194
  rotate: t(f) ? 90 : -90
194
195
  }, null)
195
196
  }, null) : null]
196
- }), a.extraInAction ? t(m) : null]
197
+ }), o.extraInAction ? t(m) : null]
197
198
  })]
198
199
  })]
199
- }), !a.extraInAction && t(m) ? l(v, {
200
- span: t(f) ? o.actualExtraSpan : o.defaultExtraSpan
200
+ }), !o.extraInAction && t(m) ? l(b, {
201
+ span: t(f) ? a.actualExtraSpan : a.defaultExtraSpan
201
202
  }, {
202
- default: () => [l(L, null, {
203
- default: () => [l(O, {
204
- justify: !t(f) && o.defaultExtraSpan === i ? "start" : "end"
205
- }, _e(e = t(m)) ? e : {
203
+ default: () => [l($, null, {
204
+ default: () => [l(D, {
205
+ justify: !t(f) && a.defaultExtraSpan === i ? "start" : "end"
206
+ }, Se(e = t(m)) ? e : {
206
207
  default: () => [e]
207
208
  })]
208
209
  })]
209
210
  }) : null]);
210
211
  });
211
- return M({
212
+ return L({
212
213
  apForm: g(() => t(x))
213
- }), (e, o) => (c(), h(ye, re({
214
+ }), (e, a) => (c(), h(Fe, se({
214
215
  class: t(W)(),
215
216
  ref_key: "apForm",
216
217
  ref: x
217
- }, t(fe)(a, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
218
- default: R(() => [(c(), h(b(_.value.hideNode))), l(t(pe), {
218
+ }, t(me)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
219
+ default: B(() => [(c(), h(R(_.value.hideNode))), l(t(ce), {
219
220
  gutter: 16
220
221
  }, {
221
- default: R(() => [(c(!0), se(F, null, ue(_.value.nodes, (n) => (c(), h(t(v), {
222
+ default: B(() => [(c(!0), ue(S, null, ie(_.value.nodes, (n) => (c(), h(t(b), {
222
223
  key: n.key,
223
224
  span: n.span
224
225
  }, {
225
- default: R(() => [(c(), h(b(n.node)))]),
226
+ default: B(() => [(c(), h(R(n.node)))]),
226
227
  _: 2
227
- }, 1032, ["span"]))), 128)), (c(), h(b(Q.value)))]),
228
+ }, 1032, ["span"]))), 128)), (c(), h(R(X.value)))]),
228
229
  _: 1
229
230
  })]),
230
231
  _: 1
@@ -232,5 +233,5 @@ const i = 24, $e = /* @__PURE__ */ ae({
232
233
  }
233
234
  });
234
235
  export {
235
- $e as default
236
+ qe as default
236
237
  };
@@ -1,37 +1,38 @@
1
- import { render as d, defineComponent as h, createVNode as m, mergeProps as f, h as u } from "vue";
2
- import { Modal as C } from "ant-design-vue";
3
- const k = (a) => {
4
- let r, t;
5
- function s() {
1
+ import { render as p, defineComponent as f, createVNode as l, mergeProps as m, h as u } from "vue";
2
+ import { ConfigProvider as C, Modal as g } from "ant-design-vue";
3
+ import { globalConfigCached as O } from "../../config-provider/config-provider.mjs";
4
+ const L = (s) => {
5
+ let r, n;
6
+ function a() {
6
7
  r && r(!1), setTimeout(() => {
7
- d(null, o), i.removeChild(o);
8
+ p(null, t), i.removeChild(t);
8
9
  }, 500);
9
10
  }
10
11
  function c(e) {
11
- t && t(e);
12
+ n && n(e);
12
13
  }
13
- const l = /* @__PURE__ */ h({
14
+ const h = /* @__PURE__ */ f({
14
15
  data() {
15
16
  return {
16
17
  open: !0,
17
- props: a
18
+ props: s
18
19
  };
19
20
  },
20
21
  methods: {
21
22
  async handleCancel(e) {
22
- var n, p;
23
- (n = this.props) != null && n.onCancel && await ((p = this.props) == null ? void 0 : p.onCancel(e)), s();
23
+ var o, d;
24
+ (o = this.props) != null && o.onCancel && await ((d = this.props) == null ? void 0 : d.onCancel(e)), a();
24
25
  },
25
26
  async handleOk(e) {
26
- var n;
27
+ var o;
27
28
  try {
28
- t({
29
+ n({
29
30
  confirmLoading: !0
30
- }), (n = this.props) != null && n.onOk && await this.props.onOk(e), t({
31
+ }), (o = this.props) != null && o.onOk && await this.props.onOk(e), n({
31
32
  confirmLoading: !1
32
- }), s();
33
+ }), a();
33
34
  } catch {
34
- t({
35
+ n({
35
36
  confirmLoading: !1
36
37
  });
37
38
  }
@@ -40,7 +41,7 @@ const k = (a) => {
40
41
  created() {
41
42
  r = (e) => {
42
43
  this.open = e;
43
- }, t = (e) => {
44
+ }, n = (e) => {
44
45
  this.props = {
45
46
  ...this.props,
46
47
  ...e
@@ -51,24 +52,26 @@ const k = (a) => {
51
52
  const {
52
53
  ...e
53
54
  } = this.props;
54
- return delete e.onCancel, delete e.onOk, m(C, f({
55
- open: this.open,
56
- destroyOnClose: !0,
57
- onCancel: this.handleCancel,
58
- onOk: this.handleOk
59
- }, e), {
60
- default: () => {
61
- var n;
62
- return [(n = this.props) == null ? void 0 : n.content];
63
- }
55
+ return delete e.onCancel, delete e.onOk, l(C, O.value, {
56
+ default: () => [l(g, m({
57
+ open: this.open,
58
+ destroyOnClose: !0,
59
+ onCancel: this.handleCancel,
60
+ onOk: this.handleOk
61
+ }, e), {
62
+ default: () => {
63
+ var o;
64
+ return [(o = this.props) == null ? void 0 : o.content];
65
+ }
66
+ })]
64
67
  });
65
68
  }
66
- }), i = a.getContainer || document.body, o = document.createElement("div");
67
- return i.appendChild(o), d(u(l), o), {
68
- destroy: s,
69
+ }), i = s.getContainer || document.body, t = document.createElement("div");
70
+ return i.appendChild(t), p(u(h), t), {
71
+ destroy: a,
69
72
  update: c
70
73
  };
71
74
  };
72
75
  export {
73
- k as createModal
76
+ L as createModal
74
77
  };
@@ -1,9 +1,10 @@
1
- import { ApColumnType, ApTableProps, ValueEnum, RequestData } from './interface';
1
+ import { ApColumnType, ApTableProps, ValueEnum, ApTableRowSelection, RequestData } from './interface';
2
2
  import { ComputedRef, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef } from 'vue';
3
3
  import { ColumnType } from 'ant-design-vue/es/table';
4
+ import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
5
  import { SpinSize } from 'ant-design-vue/es/spin/Spin';
5
6
  import { VueTypeValidableDef } from '../../node_modules/vue-types';
6
- import { GetPopupContainer, FilterValue, SorterResult, TableCurrentDataSource, TableLocale, CompareFn, ColumnFilterItem, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
7
+ import { GetPopupContainer, FilterValue, SorterResult, TableCurrentDataSource, TableLocale, CompareFn, ColumnFilterItem, SortOrder } from 'ant-design-vue/es/table/interface';
7
8
  import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, GetRowKey, TableSticky, RowClassName, GetComponentProps, ColumnType, Key, ExpandedRowRender } from 'ant-design-vue/es/vc-table/interface';
8
9
  import { TablePaginationConfig } from 'ant-design-vue';
9
10
  import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
@@ -671,6 +672,7 @@ declare const _default: <RecordType>(__VLS_props: {
671
672
  onOpenChange: PropType<(vis: boolean) => void>;
672
673
  'onUpdate:open': PropType<(vis: boolean) => void>;
673
674
  }>> | undefined;
675
+ rowSelection?: true | ApTableRowSelection<RecordType> | undefined;
674
676
  rowClassName?: string | RowClassName<RecordType> | undefined;
675
677
  showHeader?: boolean | undefined;
676
678
  customRow?: GetComponentProps<RecordType> | undefined;
@@ -690,7 +692,6 @@ declare const _default: <RecordType>(__VLS_props: {
690
692
  childrenColumnName?: string | undefined;
691
693
  rowExpandable?: ((record: RecordType) => boolean) | undefined;
692
694
  onResizeColumn?: ((w: number, col: ColumnType<any>) => void) | undefined;
693
- rowSelection?: TableRowSelection<RecordType> | undefined;
694
695
  manual?: boolean | undefined;
695
696
  request?: ((params: Partial<any> & {
696
697
  pageSize: number;
@@ -712,7 +713,9 @@ declare const _default: <RecordType>(__VLS_props: {
712
713
  default: any;
713
714
  emptyText?: any;
714
715
  expandIcon?: any;
715
- title?: any;
716
+ title?: ((params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
717
+ selectedRows: RecordType[];
718
+ }) => any) | undefined;
716
719
  footer?: any;
717
720
  summary?: any;
718
721
  expandedRowRender?: any;
@@ -728,7 +731,9 @@ declare const _default: <RecordType>(__VLS_props: {
728
731
  default: any;
729
732
  emptyText?: any;
730
733
  expandIcon?: any;
731
- title?: any;
734
+ title?: ((params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
735
+ selectedRows: RecordType[];
736
+ }) => any) | undefined;
732
737
  footer?: any;
733
738
  summary?: any;
734
739
  expandedRowRender?: any;
@@ -748,6 +753,16 @@ declare const _default: <RecordType>(__VLS_props: {
748
753
  setSearchFormValues: (fields: any) => void;
749
754
  getSearchFormValues: () => Partial<any> | undefined;
750
755
  dataSource: ComputedRef<RecordType[]>;
756
+ rowSelection: {
757
+ select: (item: RecordType) => void;
758
+ unSelect: (item: RecordType) => void;
759
+ isSelected: (item: RecordType) => boolean;
760
+ selectAll: () => void;
761
+ unSelectAll: () => void;
762
+ clearAll: () => void;
763
+ toggleSelect: (item: RecordType) => void;
764
+ selectedRows: ComputedRef<RecordType[]>;
765
+ };
751
766
  }>) => void) | undefined, __VLS_setup?: Promise<{
752
767
  props: {
753
768
  loading?: boolean | Partial< ExtractPropTypes<{
@@ -1402,6 +1417,7 @@ declare const _default: <RecordType>(__VLS_props: {
1402
1417
  onOpenChange: PropType<(vis: boolean) => void>;
1403
1418
  'onUpdate:open': PropType<(vis: boolean) => void>;
1404
1419
  }>> | undefined;
1420
+ rowSelection?: true | ApTableRowSelection<RecordType> | undefined;
1405
1421
  rowClassName?: string | RowClassName<RecordType> | undefined;
1406
1422
  showHeader?: boolean | undefined;
1407
1423
  customRow?: GetComponentProps<RecordType> | undefined;
@@ -1421,7 +1437,6 @@ declare const _default: <RecordType>(__VLS_props: {
1421
1437
  childrenColumnName?: string | undefined;
1422
1438
  rowExpandable?: ((record: RecordType) => boolean) | undefined;
1423
1439
  onResizeColumn?: ((w: number, col: ColumnType<any>) => void) | undefined;
1424
- rowSelection?: TableRowSelection<RecordType> | undefined;
1425
1440
  manual?: boolean | undefined;
1426
1441
  request?: ((params: Partial<any> & {
1427
1442
  pageSize: number;
@@ -1444,13 +1459,25 @@ declare const _default: <RecordType>(__VLS_props: {
1444
1459
  setSearchFormValues: (fields: any) => void;
1445
1460
  getSearchFormValues: () => Partial<any> | undefined;
1446
1461
  dataSource: ComputedRef<RecordType[]>;
1462
+ rowSelection: {
1463
+ select: (item: RecordType) => void;
1464
+ unSelect: (item: RecordType) => void;
1465
+ isSelected: (item: RecordType) => boolean;
1466
+ selectAll: () => void;
1467
+ unSelectAll: () => void;
1468
+ clearAll: () => void;
1469
+ toggleSelect: (item: RecordType) => void;
1470
+ selectedRows: ComputedRef<RecordType[]>;
1471
+ };
1447
1472
  }>): void;
1448
1473
  attrs: any;
1449
1474
  slots: Readonly<{
1450
1475
  default: any;
1451
1476
  emptyText?: any;
1452
1477
  expandIcon?: any;
1453
- title?: any;
1478
+ title?: ((params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
1479
+ selectedRows: RecordType[];
1480
+ }) => any) | undefined;
1454
1481
  footer?: any;
1455
1482
  summary?: any;
1456
1483
  expandedRowRender?: any;
@@ -1466,7 +1493,9 @@ declare const _default: <RecordType>(__VLS_props: {
1466
1493
  default: any;
1467
1494
  emptyText?: any;
1468
1495
  expandIcon?: any;
1469
- title?: any;
1496
+ title?: ((params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
1497
+ selectedRows: RecordType[];
1498
+ }) => any) | undefined;
1470
1499
  footer?: any;
1471
1500
  summary?: any;
1472
1501
  expandedRowRender?: any;
@@ -2137,6 +2166,7 @@ declare const _default: <RecordType>(__VLS_props: {
2137
2166
  onOpenChange: PropType<(vis: boolean) => void>;
2138
2167
  'onUpdate:open': PropType<(vis: boolean) => void>;
2139
2168
  }>> | undefined;
2169
+ rowSelection?: true | ApTableRowSelection<RecordType> | undefined;
2140
2170
  rowClassName?: string | RowClassName<RecordType> | undefined;
2141
2171
  showHeader?: boolean | undefined;
2142
2172
  customRow?: GetComponentProps<RecordType> | undefined;
@@ -2156,7 +2186,6 @@ declare const _default: <RecordType>(__VLS_props: {
2156
2186
  childrenColumnName?: string | undefined;
2157
2187
  rowExpandable?: ((record: RecordType) => boolean) | undefined;
2158
2188
  onResizeColumn?: ((w: number, col: ColumnType<any>) => void) | undefined;
2159
- rowSelection?: TableRowSelection<RecordType> | undefined;
2160
2189
  manual?: boolean | undefined;
2161
2190
  request?: ((params: Partial<any> & {
2162
2191
  pageSize: number;
@@ -2179,13 +2208,25 @@ declare const _default: <RecordType>(__VLS_props: {
2179
2208
  setSearchFormValues: (fields: any) => void;
2180
2209
  getSearchFormValues: () => Partial<any> | undefined;
2181
2210
  dataSource: ComputedRef<RecordType[]>;
2211
+ rowSelection: {
2212
+ select: (item: RecordType) => void;
2213
+ unSelect: (item: RecordType) => void;
2214
+ isSelected: (item: RecordType) => boolean;
2215
+ selectAll: () => void;
2216
+ unSelectAll: () => void;
2217
+ clearAll: () => void;
2218
+ toggleSelect: (item: RecordType) => void;
2219
+ selectedRows: ComputedRef<RecordType[]>;
2220
+ };
2182
2221
  }>): void;
2183
2222
  attrs: any;
2184
2223
  slots: Readonly<{
2185
2224
  default: any;
2186
2225
  emptyText?: any;
2187
2226
  expandIcon?: any;
2188
- title?: any;
2227
+ title?: ((params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
2228
+ selectedRows: RecordType[];
2229
+ }) => any) | undefined;
2189
2230
  footer?: any;
2190
2231
  summary?: any;
2191
2232
  expandedRowRender?: any;
@@ -2201,7 +2242,9 @@ declare const _default: <RecordType>(__VLS_props: {
2201
2242
  default: any;
2202
2243
  emptyText?: any;
2203
2244
  expandIcon?: any;
2204
- title?: any;
2245
+ title?: ((params: Omit<RowSelectionReturnType<RecordType>, "rowSelection" | "selectedRows"> & {
2246
+ selectedRows: RecordType[];
2247
+ }) => any) | undefined;
2205
2248
  footer?: any;
2206
2249
  summary?: any;
2207
2250
  expandedRowRender?: any;