@aplus-frontend/ui 6.11.0 → 6.13.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.
- package/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +118 -108
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +27 -19
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +31 -30
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +35 -35
- package/es/src/ap-grid/index.vue.mjs +221 -225
- package/es/src/ap-modal/interface.d.ts +8 -0
- package/es/src/ap-modal/utils/createModalStream.mjs +69 -66
- package/es/src/ap-table/ap-table.vue2.mjs +107 -111
- package/es/src/ap-table/constants.d.ts +7 -7
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +6 -5
- package/es/src/ap-table/utils.d.ts +5 -3247
- package/es/src/ap-table/utils.mjs +107 -121
- package/es/src/business/ap-card/ApCard.vue2.mjs +17 -17
- package/es/src/business/ap-summary/interface.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +76 -74
- package/es/src/business/ap-view/interface.d.ts +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -1
- package/es/src/business/batch-input-group/index.vue.mjs +56 -52
- package/es/src/business/batch-input-group/interface.d.ts +5 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +36 -32
- package/es/src/business/batch-input-group/utils.d.ts +8 -0
- package/es/src/business/batch-input-group/utils.mjs +10 -0
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +14 -5
- package/es/src/config-provider/config-provider.mjs +19 -18
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +28 -13
- package/es/src/utils/config-provider-preset.d.ts +6 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +8 -0
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +7 -7
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +5 -3247
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +1 -0
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +5 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
- package/lib/src/business/batch-input-group/utils.d.ts +8 -0
- package/lib/src/business/batch-input-group/utils.js +1 -0
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +14 -5
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +28 -13
- package/lib/src/utils/config-provider-preset.d.ts +6 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
- package/theme/ap-grid/index.css +3 -0
- package/theme/ap-grid/index.less +3 -4
- package/theme/index.css +3 -0
- package/es/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
- package/es/src/ap-table/components/dynamic-component/index.vue.mjs +0 -4
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +0 -15
- package/lib/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
- package/lib/src/ap-table/components/dynamic-component/index.vue.js +0 -1
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +0 -1
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { isObject as
|
|
3
|
-
import { apTableRenderItemMap as
|
|
4
|
-
import { isType as
|
|
1
|
+
import { isVNode as g, createVNode as u, mergeProps as f, cloneVNode as h, Fragment as j } from "vue";
|
|
2
|
+
import { isObject as d, isArray as c, isUndefined as E, isFunction as b, omit as O, isBoolean as N, isString as F, isEqual as S, sortBy as m, isPlainObject as y, every as v, isEmpty as C } from "lodash-unified";
|
|
3
|
+
import { apTableRenderItemMap as I, apTableFormItemMap as P } from "./constants.mjs";
|
|
4
|
+
import { isType as w } from "@fruits-chain/utils";
|
|
5
5
|
import "../ap-form/index.mjs";
|
|
6
|
-
import { Tooltip as
|
|
7
|
-
import { QuestionCircleOutlined as
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function R(t) {
|
|
12
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !E(t);
|
|
6
|
+
import { Tooltip as x } from "@aplus-frontend/antdv";
|
|
7
|
+
import { QuestionCircleOutlined as A } from "@ant-design/icons-vue";
|
|
8
|
+
import V from "../ap-form/item/index.vue.mjs";
|
|
9
|
+
function _(t) {
|
|
10
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !g(t);
|
|
13
11
|
}
|
|
14
12
|
const q = (t, e, n) => {
|
|
15
13
|
let o = {};
|
|
16
|
-
return
|
|
17
|
-
|
|
14
|
+
return d(t) ? Object.keys(t).forEach((r) => {
|
|
15
|
+
d(t[r]) ? o[r] = q(t[r], e[r], n) : o[r] = n(t[r], e);
|
|
18
16
|
}) : o = n(t, e), o;
|
|
19
|
-
},
|
|
17
|
+
}, X = (t, e) => {
|
|
20
18
|
switch (t) {
|
|
21
19
|
case "dayjs":
|
|
22
20
|
return e.valueOf();
|
|
@@ -28,7 +26,7 @@ const q = (t, e, n) => {
|
|
|
28
26
|
}
|
|
29
27
|
case "multiple":
|
|
30
28
|
case "multipleNumber":
|
|
31
|
-
return
|
|
29
|
+
return c(e) ? e : [e];
|
|
32
30
|
case "boolean":
|
|
33
31
|
return e;
|
|
34
32
|
case "object":
|
|
@@ -37,117 +35,105 @@ const q = (t, e, n) => {
|
|
|
37
35
|
return e;
|
|
38
36
|
}
|
|
39
37
|
};
|
|
40
|
-
function
|
|
41
|
-
return
|
|
38
|
+
function Y(t) {
|
|
39
|
+
return c(t) ? t.join(".") : t;
|
|
42
40
|
}
|
|
43
41
|
function W(t) {
|
|
44
42
|
const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
|
|
45
43
|
return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
|
|
46
44
|
}
|
|
47
|
-
const
|
|
48
|
-
const e = [], n =
|
|
49
|
-
return n.forEach((o,
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
if (typeof
|
|
45
|
+
const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})), T = (t) => {
|
|
46
|
+
const e = [], n = B(t);
|
|
47
|
+
return n.forEach((o, r) => {
|
|
48
|
+
const i = n.get(r) || n.get(`${r}`);
|
|
49
|
+
if (i) {
|
|
50
|
+
if (typeof i == "object" && (i != null && i.text)) {
|
|
53
51
|
e.push({
|
|
54
|
-
text:
|
|
55
|
-
value:
|
|
56
|
-
label:
|
|
57
|
-
disabled:
|
|
52
|
+
text: i == null ? void 0 : i.text,
|
|
53
|
+
value: r,
|
|
54
|
+
label: i == null ? void 0 : i.text,
|
|
55
|
+
disabled: i.disabled
|
|
58
56
|
});
|
|
59
57
|
return;
|
|
60
58
|
}
|
|
61
59
|
e.push({
|
|
62
|
-
text:
|
|
63
|
-
label:
|
|
64
|
-
value:
|
|
60
|
+
text: i,
|
|
61
|
+
label: i,
|
|
62
|
+
value: r
|
|
65
63
|
});
|
|
66
64
|
}
|
|
67
65
|
}), e;
|
|
68
|
-
},
|
|
69
|
-
function
|
|
70
|
-
return !t || !
|
|
66
|
+
}, Z = (t) => E(t) || t < 0 ? 0 : t;
|
|
67
|
+
function R(t, e) {
|
|
68
|
+
return !t || !b(t) ? t : t(e);
|
|
71
69
|
}
|
|
72
|
-
function
|
|
70
|
+
function k(t) {
|
|
73
71
|
let e = t.valueType || "text";
|
|
74
72
|
return t.valueEnum && (e = "status"), e;
|
|
75
73
|
}
|
|
76
|
-
function
|
|
74
|
+
function H(t, e, n, o) {
|
|
77
75
|
var s;
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
76
|
+
const r = I[t];
|
|
77
|
+
if (r)
|
|
78
|
+
return u(r, f(e, {
|
|
81
79
|
mode: "read"
|
|
82
80
|
}), null);
|
|
83
|
-
const
|
|
84
|
-
return ((s =
|
|
81
|
+
const i = o == null ? void 0 : o[t];
|
|
82
|
+
return ((s = i == null ? void 0 : i.render) == null ? void 0 : s.call(i, e.value, n, e)) || e.value;
|
|
85
83
|
}
|
|
86
|
-
function
|
|
84
|
+
function M(t, e) {
|
|
87
85
|
if (t.customRenderFormItem)
|
|
88
|
-
return {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...u.props || {},
|
|
96
|
-
// 需要额外设置的属性(用于显示和隐藏节点)
|
|
97
|
-
hidden: s.hidden,
|
|
98
|
-
class: s.class
|
|
99
|
-
});
|
|
100
|
-
}
|
|
86
|
+
return () => {
|
|
87
|
+
const r = t.customRenderFormItem(t);
|
|
88
|
+
return h(r, {
|
|
89
|
+
...t.fieldProps,
|
|
90
|
+
span: t.span,
|
|
91
|
+
...r.props || {}
|
|
92
|
+
});
|
|
101
93
|
};
|
|
102
|
-
const n =
|
|
94
|
+
const n = P[t.valueType];
|
|
103
95
|
if (n)
|
|
104
|
-
return {
|
|
105
|
-
|
|
106
|
-
};
|
|
96
|
+
return () => u(n, f(t.fieldProps, {
|
|
97
|
+
span: t.span
|
|
98
|
+
}), null);
|
|
107
99
|
const o = e == null ? void 0 : e[t.valueType];
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
const
|
|
111
|
-
return
|
|
112
|
-
hidden: r.hidden,
|
|
113
|
-
class: r.class,
|
|
100
|
+
return () => {
|
|
101
|
+
var i;
|
|
102
|
+
const r = (i = o == null ? void 0 : o.renderFormItem) == null ? void 0 : i.call(o, t.fieldProps.field);
|
|
103
|
+
return r ? u(V, f(t.fieldProps, {
|
|
114
104
|
span: t.span
|
|
115
|
-
}),
|
|
116
|
-
default: () => [
|
|
105
|
+
}), _(r) ? r : {
|
|
106
|
+
default: () => [r]
|
|
117
107
|
}) : null;
|
|
118
|
-
}
|
|
119
|
-
return {
|
|
120
|
-
Comp: y,
|
|
121
|
-
render: i
|
|
122
108
|
};
|
|
123
109
|
}
|
|
124
|
-
function
|
|
125
|
-
const n =
|
|
110
|
+
function tt(t, e) {
|
|
111
|
+
const n = R(t.fieldProps, e), o = (n == null ? void 0 : n.field) || n || {}, r = t.valueType === "switch", i = t.valueType === "index", s = r ? {
|
|
126
112
|
checked: e.value
|
|
127
113
|
} : {
|
|
128
|
-
value:
|
|
114
|
+
value: i ? e.index + 1 : e.value
|
|
129
115
|
};
|
|
130
116
|
return t.valueEnum && (o.valueEnum = t.valueEnum), {
|
|
131
|
-
...
|
|
117
|
+
...O(o, ["request"]),
|
|
132
118
|
...s
|
|
133
119
|
};
|
|
134
120
|
}
|
|
135
|
-
function
|
|
121
|
+
function et(t) {
|
|
136
122
|
const e = {
|
|
137
123
|
...t
|
|
138
124
|
};
|
|
139
|
-
return
|
|
125
|
+
return N(t.filters) && t.filters && t.valueEnum && (e.filters = T(t.valueEnum)), e;
|
|
140
126
|
}
|
|
141
|
-
function
|
|
127
|
+
function nt(t, e) {
|
|
142
128
|
var o;
|
|
143
129
|
const n = e || {};
|
|
144
130
|
return t.valueEnum && !((o = n.field) != null && o.options) && (n.field = {
|
|
145
131
|
...n.field,
|
|
146
|
-
options:
|
|
132
|
+
options: T(t.valueEnum)
|
|
147
133
|
}), n;
|
|
148
134
|
}
|
|
149
|
-
function
|
|
150
|
-
if (!
|
|
135
|
+
function rt(t) {
|
|
136
|
+
if (!w("Object")(t))
|
|
151
137
|
return t;
|
|
152
138
|
try {
|
|
153
139
|
return JSON.stringify(t);
|
|
@@ -155,76 +141,76 @@ function st(t) {
|
|
|
155
141
|
return t;
|
|
156
142
|
}
|
|
157
143
|
}
|
|
158
|
-
function
|
|
159
|
-
const
|
|
144
|
+
function ot(t, e, n, o) {
|
|
145
|
+
const r = n == null ? void 0 : n({
|
|
160
146
|
title: t.title,
|
|
161
147
|
column: t
|
|
162
|
-
}),
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
const
|
|
148
|
+
}), i = (r == null ? void 0 : r.filter((l) => l.type !== Symbol.for("v-cmt"))) || [];
|
|
149
|
+
if (r && i.length > 0)
|
|
150
|
+
return r;
|
|
151
|
+
const a = F(t.title) ? u("span", {
|
|
166
152
|
class: e,
|
|
167
153
|
title: t.title
|
|
168
|
-
}, [t.title]) : t.title,
|
|
169
|
-
return
|
|
154
|
+
}, [t.title]) : t.title, p = t.tooltip ? b(t.tooltip) ? t.tooltip(t) : u(j, null, [t.tooltip]) : null;
|
|
155
|
+
return p ? u("span", {
|
|
170
156
|
style: {
|
|
171
157
|
display: "inline-flex",
|
|
172
158
|
alignItems: "center",
|
|
173
159
|
maxWidth: "100%"
|
|
174
160
|
}
|
|
175
|
-
}, [
|
|
176
|
-
title:
|
|
161
|
+
}, [a, u(x, {
|
|
162
|
+
title: p,
|
|
177
163
|
placement: "bottom",
|
|
178
|
-
getPopupContainer: (
|
|
164
|
+
getPopupContainer: (l) => l.closest(".ant-table") || l.closest(".ant-modal") || l.closest(".vxe-table") || document.body
|
|
179
165
|
}, {
|
|
180
|
-
default: () => [
|
|
166
|
+
default: () => [u(A, {
|
|
181
167
|
style: {
|
|
182
168
|
paddingInline: "4px",
|
|
183
169
|
color: o,
|
|
184
170
|
verticalAlign: "middle"
|
|
185
171
|
}
|
|
186
172
|
}, null)]
|
|
187
|
-
})]) :
|
|
173
|
+
})]) : a;
|
|
188
174
|
}
|
|
189
|
-
function
|
|
175
|
+
function it(t, e) {
|
|
190
176
|
const n = [];
|
|
191
|
-
function o(
|
|
192
|
-
var
|
|
193
|
-
for (const s of
|
|
194
|
-
(
|
|
177
|
+
function o(r) {
|
|
178
|
+
var i;
|
|
179
|
+
for (const s of r)
|
|
180
|
+
(i = s.children) != null && i.length ? o(s.children) : n.push(e(s));
|
|
195
181
|
}
|
|
196
182
|
return o(t), n;
|
|
197
183
|
}
|
|
198
|
-
function
|
|
199
|
-
if (
|
|
200
|
-
return S(
|
|
201
|
-
if (
|
|
202
|
-
const n = (o) =>
|
|
184
|
+
function st(t, e) {
|
|
185
|
+
if (c(t) && c(e))
|
|
186
|
+
return S(m(t), m(e));
|
|
187
|
+
if (y(t) && y(e)) {
|
|
188
|
+
const n = (o) => v(o, (r) => r == null) || C(o);
|
|
203
189
|
if (n(t) && n(e))
|
|
204
190
|
return !0;
|
|
205
191
|
}
|
|
206
192
|
}
|
|
207
|
-
function
|
|
193
|
+
function ut(t) {
|
|
208
194
|
if (t !== !1)
|
|
209
195
|
return t;
|
|
210
196
|
}
|
|
211
197
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
198
|
+
et as apColumnToColumn,
|
|
199
|
+
Y as dataIndexToStr,
|
|
200
|
+
ut as falseToUndefined,
|
|
215
201
|
q as formatParamsValueType,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
202
|
+
Z as getColumnOrder,
|
|
203
|
+
R as getFieldProps,
|
|
204
|
+
M as getSearchFormItemRenderNode,
|
|
205
|
+
H as getTableCellRenderNode,
|
|
206
|
+
tt as getTableRenderProps,
|
|
207
|
+
k as getTableRenderType,
|
|
208
|
+
ot as getTableTitle,
|
|
209
|
+
st as isEqualCustom,
|
|
210
|
+
B as objectToMap,
|
|
211
|
+
rt as objectToString,
|
|
212
|
+
X as parseFieldValue,
|
|
213
|
+
it as recursionApColumns,
|
|
214
|
+
nt as updateFormProps,
|
|
215
|
+
T as valueEnumToArray
|
|
230
216
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as $, computed as
|
|
1
|
+
import { defineComponent as h, useSlots as $, computed as l, createElementBlock as o, openBlock as r, normalizeStyle as B, normalizeClass as N, unref as s, createBlock as c, createCommentVNode as P, renderSlot as d, mergeProps as b, createSlots as z, withCtx as y, isVNode as k, resolveDynamicComponent as v, toDisplayString as _ } from "vue";
|
|
2
2
|
import "../ap-title/ApTitle.vue.mjs";
|
|
3
3
|
import { omit as D } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -11,49 +11,49 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
|
|
|
11
11
|
padding: {}
|
|
12
12
|
},
|
|
13
13
|
setup(S) {
|
|
14
|
-
const e = S, t = $(), { b:
|
|
14
|
+
const e = S, t = $(), { b: m } = V("ap-card"), g = l(
|
|
15
15
|
() => D((e == null ? void 0 : e.titleProps) || {}, ["prefix", "suffix"])
|
|
16
|
-
), p =
|
|
16
|
+
), p = l(() => {
|
|
17
17
|
var i;
|
|
18
18
|
return (i = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : i.length;
|
|
19
|
-
}), C =
|
|
19
|
+
}), C = l(() => e.padding ?? "var(--ap-card-padding, 12px 16px)");
|
|
20
20
|
return (i, E) => {
|
|
21
|
-
var u,
|
|
22
|
-
return r(),
|
|
23
|
-
class: N([
|
|
21
|
+
var u, x;
|
|
22
|
+
return r(), o("div", {
|
|
23
|
+
class: N([s(m)()]),
|
|
24
24
|
style: B({
|
|
25
25
|
padding: C.value
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
p.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (r(),
|
|
28
|
+
p.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (r(), c(j, b({
|
|
29
29
|
key: 0,
|
|
30
|
-
class: [`${
|
|
30
|
+
class: [`${s(m)()}-title`]
|
|
31
31
|
}, {
|
|
32
32
|
...g.value
|
|
33
33
|
}), z({ _: 2 }, [
|
|
34
|
-
(u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
|
|
34
|
+
t != null && t.titleSuffix || (u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
|
|
35
35
|
name: "suffix",
|
|
36
36
|
fn: y(() => {
|
|
37
|
-
var f,
|
|
37
|
+
var f, n, a;
|
|
38
38
|
return [
|
|
39
|
-
t != null && t.titleSuffix ?
|
|
39
|
+
t != null && t.titleSuffix ? d(i.$slots, "titleSuffix", { key: 0 }) : k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), { key: 1 })) : (r(), o("div", w, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.suffix), 1))
|
|
40
40
|
];
|
|
41
41
|
}),
|
|
42
42
|
key: "0"
|
|
43
43
|
} : void 0,
|
|
44
|
-
(
|
|
44
|
+
t != null && t.titlePrefix || (x = e == null ? void 0 : e.titleProps) != null && x.prefix ? {
|
|
45
45
|
name: "prefix",
|
|
46
46
|
fn: y(() => {
|
|
47
|
-
var f,
|
|
47
|
+
var f, n, a;
|
|
48
48
|
return [
|
|
49
|
-
t != null && t.titlePrefix ?
|
|
50
|
-
k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(),
|
|
49
|
+
t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) : P("", !0),
|
|
50
|
+
k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), { key: 1 })) : (r(), o("div", A, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.prefix), 1))
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
key: "1"
|
|
54
54
|
} : void 0
|
|
55
55
|
]), 1040, ["class"])) : P("", !0),
|
|
56
|
-
|
|
56
|
+
d(i.$slots, "default")
|
|
57
57
|
], 6);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -2,7 +2,7 @@ import { ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
|
2
2
|
import { AlignType, DataIndex, Key } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
3
3
|
import { ApColumnType } from '../../ap-table';
|
|
4
4
|
import { ApGridColumnType } from '../../ap-grid';
|
|
5
|
-
export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | ColumnsType;
|
|
5
|
+
export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | ColumnsType | any[];
|
|
6
6
|
export type ValueType = {
|
|
7
7
|
[key in string]: any;
|
|
8
8
|
};
|