@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.
- package/es/index.mjs +217 -215
- package/es/src/ap-field/select/index.vue.mjs +36 -32
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +30 -31
- package/es/src/ap-form/ap-form.vue2.mjs +11 -11
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
- package/es/src/ap-form/search-form/index.vue.mjs +79 -78
- package/es/src/ap-modal/utils/createModal.mjs +34 -31
- package/es/src/ap-table/ap-table.vue.d.ts +54 -11
- package/es/src/ap-table/ap-table.vue.mjs +171 -148
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +47 -46
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
- package/es/src/ap-table/interface.d.ts +14 -2
- package/es/src/ap-table/style/ap-table.css +2 -0
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
- package/es/src/ap-tag/interface.d.ts +24 -0
- package/es/src/ap-tag/style/ap-tag-group.css +8 -0
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/es/src/business/ap-select-layout/index.css +117 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -0
- package/es/src/business/ap-select-layout/interface.d.ts +9 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
- package/es/src/business/index.d.ts +76 -1
- package/es/src/business/index.mjs +9 -6
- package/es/src/config-provider/config-provider.d.ts +144 -1
- package/es/src/config-provider/config-provider.mjs +35 -29
- package/es/src/config-provider/index.mjs +22 -20
- package/es/src/design-token/index.mjs +6 -2
- package/es/src/editable-table/form-item.vue.d.ts +7 -7
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +7 -7
- package/es/src/editable-table/index.vue.mjs +10 -10
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/index.mjs +188 -186
- package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/es/src/theme/ap-table/ap-table.css +2 -0
- package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
- package/lib/src/ap-table/interface.d.ts +14 -2
- package/lib/src/ap-table/style/ap-table.css +2 -0
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +24 -0
- package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/lib/src/business/ap-select-layout/index.css +117 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -0
- package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
- package/lib/src/business/index.d.ts +76 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +144 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +7 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +7 -7
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/lib/src/theme/ap-table/ap-table.css +2 -0
- package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/package.json +2 -2
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
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
|
|
7
|
-
import { DoubleRightOutlined as
|
|
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
|
|
11
|
-
import { isDef as
|
|
12
|
-
import { diffFormItem as
|
|
13
|
-
import { useControllableValue as
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
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,
|
|
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:
|
|
102
|
+
expose: L,
|
|
102
103
|
emit: q
|
|
103
104
|
}) {
|
|
104
105
|
var k;
|
|
105
|
-
const r =
|
|
106
|
+
const r = le(), o = d, z = q, {
|
|
106
107
|
value: f,
|
|
107
108
|
updateValue: U
|
|
108
|
-
} =
|
|
109
|
+
} = Ce(o, z, {
|
|
109
110
|
valuePropName: "collapse",
|
|
110
111
|
defaultValuePropName: "defaultCollapse"
|
|
111
112
|
}), {
|
|
112
113
|
b: W
|
|
113
|
-
} =
|
|
114
|
+
} = ge("ap-form-search-form"), G = ye("uiMode"), {
|
|
114
115
|
t: w
|
|
115
|
-
} =
|
|
116
|
-
function G() {
|
|
117
|
-
U(!t(f));
|
|
118
|
-
}
|
|
116
|
+
} = _e(), x = ne();
|
|
119
117
|
function H() {
|
|
120
|
-
|
|
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,
|
|
125
|
-
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(
|
|
129
|
-
|
|
130
|
-
E = y.value, y.value =
|
|
131
|
-
}),
|
|
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
|
|
138
|
-
const e =
|
|
139
|
-
let
|
|
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 ?
|
|
143
|
+
p != null && p.hidden ? a.push(u) : (F += p.span || s, n.push(u));
|
|
143
144
|
});
|
|
144
|
-
const A = i - (
|
|
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
|
|
147
|
+
const ee = n.map((u, p) => {
|
|
147
148
|
const C = u.props, I = C.span || s;
|
|
148
|
-
if (T += I, !
|
|
149
|
-
|
|
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}-${
|
|
158
|
+
key: `ApFormSearchFormItem-${p}-${Q(C.name)}-${C._signal}`
|
|
158
159
|
};
|
|
159
|
-
}).filter(Boolean),
|
|
160
|
+
}).filter(Boolean), te = i - V - s;
|
|
160
161
|
return {
|
|
161
|
-
hideNode: l(
|
|
162
|
-
nodes:
|
|
163
|
-
defaultExtraSpan:
|
|
164
|
-
actualExtraSpan:
|
|
165
|
-
showCollapse:
|
|
162
|
+
hideNode: l(S, null, [a]),
|
|
163
|
+
nodes: ee,
|
|
164
|
+
defaultExtraSpan: Y,
|
|
165
|
+
actualExtraSpan: te,
|
|
166
|
+
showCollapse: Z
|
|
166
167
|
};
|
|
167
|
-
}),
|
|
168
|
+
}), X = g(() => {
|
|
168
169
|
let e;
|
|
169
|
-
const
|
|
170
|
-
return l(
|
|
170
|
+
const a = t(_);
|
|
171
|
+
return l(S, null, [l(b, {
|
|
171
172
|
span: t(t(N))
|
|
172
173
|
}, {
|
|
173
|
-
default: () => [l(
|
|
174
|
-
default: () => [l(
|
|
174
|
+
default: () => [l($, null, {
|
|
175
|
+
default: () => [l(D, {
|
|
175
176
|
justify: "space-between"
|
|
176
177
|
}, {
|
|
177
|
-
default: () => [l(
|
|
178
|
-
default: () => [l(
|
|
178
|
+
default: () => [l(pe, null, {
|
|
179
|
+
default: () => [l(v, {
|
|
179
180
|
type: "primary",
|
|
180
|
-
onClick:
|
|
181
|
-
loading:
|
|
181
|
+
onClick: J,
|
|
182
|
+
loading: o.submitLoading,
|
|
182
183
|
htmlType: "submit"
|
|
183
184
|
}, {
|
|
184
|
-
default: () => [
|
|
185
|
-
}), l(
|
|
186
|
-
onClick:
|
|
185
|
+
default: () => [o.searchText || w("ap.apForm.search.search")]
|
|
186
|
+
}), l(v, {
|
|
187
|
+
onClick: K
|
|
187
188
|
}, {
|
|
188
|
-
default: () => [
|
|
189
|
-
}),
|
|
190
|
-
onClick:
|
|
191
|
-
icon: l(
|
|
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
|
-
}),
|
|
197
|
+
}), o.extraInAction ? t(m) : null]
|
|
197
198
|
})]
|
|
198
199
|
})]
|
|
199
|
-
}), !
|
|
200
|
-
span: t(f) ?
|
|
200
|
+
}), !o.extraInAction && t(m) ? l(b, {
|
|
201
|
+
span: t(f) ? a.actualExtraSpan : a.defaultExtraSpan
|
|
201
202
|
}, {
|
|
202
|
-
default: () => [l(
|
|
203
|
-
default: () => [l(
|
|
204
|
-
justify: !t(f) &&
|
|
205
|
-
},
|
|
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
|
|
212
|
+
return L({
|
|
212
213
|
apForm: g(() => t(x))
|
|
213
|
-
}), (e,
|
|
214
|
+
}), (e, a) => (c(), h(Fe, se({
|
|
214
215
|
class: t(W)(),
|
|
215
216
|
ref_key: "apForm",
|
|
216
217
|
ref: x
|
|
217
|
-
}, t(
|
|
218
|
-
default:
|
|
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:
|
|
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:
|
|
226
|
+
default: B(() => [(c(), h(R(n.node)))]),
|
|
226
227
|
_: 2
|
|
227
|
-
}, 1032, ["span"]))), 128)), (c(), h(
|
|
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
|
-
|
|
236
|
+
qe as default
|
|
236
237
|
};
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { render as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
+
p(null, t), i.removeChild(t);
|
|
8
9
|
}, 500);
|
|
9
10
|
}
|
|
10
11
|
function c(e) {
|
|
11
|
-
|
|
12
|
+
n && n(e);
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const h = /* @__PURE__ */ f({
|
|
14
15
|
data() {
|
|
15
16
|
return {
|
|
16
17
|
open: !0,
|
|
17
|
-
props:
|
|
18
|
+
props: s
|
|
18
19
|
};
|
|
19
20
|
},
|
|
20
21
|
methods: {
|
|
21
22
|
async handleCancel(e) {
|
|
22
|
-
var
|
|
23
|
-
(
|
|
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
|
|
27
|
+
var o;
|
|
27
28
|
try {
|
|
28
|
-
|
|
29
|
+
n({
|
|
29
30
|
confirmLoading: !0
|
|
30
|
-
}), (
|
|
31
|
+
}), (o = this.props) != null && o.onOk && await this.props.onOk(e), n({
|
|
31
32
|
confirmLoading: !1
|
|
32
|
-
}),
|
|
33
|
+
}), a();
|
|
33
34
|
} catch {
|
|
34
|
-
|
|
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
|
-
},
|
|
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,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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 =
|
|
67
|
-
return i.appendChild(
|
|
68
|
-
destroy:
|
|
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
|
-
|
|
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
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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;
|