@aplus-frontend/ui 0.2.15 → 0.2.17
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-table/ap-table.vue2.mjs +114 -112
- package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +9 -0
- package/es/src/ap-table/hooks/use-sorted-filtered.mjs +30 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +3 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +122 -113
- package/es/src/ap-table/utils.d.ts +1 -0
- package/es/src/ap-table/utils.mjs +113 -103
- package/es/src/business/batch-input-group/index.vue.mjs +63 -50
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +9 -0
- package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +3 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/package.json +3 -3
|
@@ -1,164 +1,173 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { parseFieldValue as
|
|
3
|
-
import { isArray as
|
|
1
|
+
import { ref as P, nextTick as ae, unref as o, onMounted as oe, computed as V, createVNode as b } from "vue";
|
|
2
|
+
import { parseFieldValue as re, dataIndexToStr as ne, isEqualCustom as se } from "../utils.mjs";
|
|
3
|
+
import { isArray as q, isEqualWith as ie } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
import { useTableSortedAndFiltered as le } from "./use-sorted-filtered.mjs";
|
|
6
|
+
import { useLocale as ce } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const Te = ({
|
|
9
|
+
manual: B = !1,
|
|
10
|
+
defaultCurrent: K = 1,
|
|
11
|
+
defaultPageSize: y = 10,
|
|
12
|
+
request: M,
|
|
13
|
+
defaultParams: N = {},
|
|
14
|
+
defaultData: $ = [],
|
|
15
|
+
formatParams: w,
|
|
16
|
+
paramsValueTypeMap: A,
|
|
16
17
|
resetFieldsIgnores: D,
|
|
17
18
|
filterFields: J,
|
|
18
|
-
sortFields:
|
|
19
|
-
showLessItems:
|
|
20
|
-
showTotal:
|
|
19
|
+
sortFields: L,
|
|
20
|
+
showLessItems: z = !1,
|
|
21
|
+
showTotal: Q = !0
|
|
21
22
|
}) => {
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} =
|
|
23
|
+
let C = 0, s = {};
|
|
24
|
+
const W = (e) => w ? w(e) : e, u = P(), c = P(K), p = P(y), {
|
|
25
|
+
getColumnSFConfig: G,
|
|
26
|
+
setSF: H,
|
|
27
|
+
clearAll: U
|
|
28
|
+
} = le(), {
|
|
29
|
+
t: T
|
|
30
|
+
} = ce(), {
|
|
31
|
+
b: F
|
|
32
|
+
} = ue("ap-table"), r = P({
|
|
28
33
|
total: 0,
|
|
29
|
-
records:
|
|
34
|
+
records: $,
|
|
30
35
|
loading: !1
|
|
31
|
-
}),
|
|
32
|
-
var
|
|
33
|
-
const a =
|
|
34
|
-
|
|
36
|
+
}), E = async (e) => {
|
|
37
|
+
var n;
|
|
38
|
+
const a = W(e), t = Date.now();
|
|
39
|
+
C = t, r.value.loading = !0;
|
|
35
40
|
try {
|
|
36
|
-
const
|
|
37
|
-
|
|
41
|
+
const i = await M({
|
|
42
|
+
...N,
|
|
38
43
|
...a
|
|
39
44
|
});
|
|
40
|
-
|
|
45
|
+
C === t && (r.value.total = i.total || ((n = i.data) == null ? void 0 : n.length) || 0, r.value.records = [...i.data || []]);
|
|
41
46
|
} catch {
|
|
42
|
-
|
|
47
|
+
C === t && (r.value.records = [], r.value.total = 0);
|
|
43
48
|
} finally {
|
|
44
|
-
|
|
49
|
+
r.value.loading = !1;
|
|
45
50
|
}
|
|
46
|
-
},
|
|
51
|
+
}, O = (e) => {
|
|
47
52
|
const a = {};
|
|
48
|
-
return Object.entries(e).forEach(([t,
|
|
49
|
-
if (a[t] =
|
|
50
|
-
const
|
|
51
|
-
|
|
53
|
+
return Object.entries(e).forEach(([t, n]) => {
|
|
54
|
+
if (a[t] = n, A && n) {
|
|
55
|
+
const i = A[t];
|
|
56
|
+
i && (a[t] = re(i, n));
|
|
52
57
|
}
|
|
53
58
|
}), a;
|
|
54
|
-
},
|
|
55
|
-
var
|
|
56
|
-
const a = ((
|
|
57
|
-
Object.entries(a).forEach(([v,
|
|
58
|
-
D && D.indexOf(v) > -1 && (t[v] =
|
|
59
|
-
}), await ((d = (g = u.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (f = (m = u.value) == null ? void 0 : m.apForm) == null ? void 0 : f.setFieldsValue) == null || h.call(f, t),
|
|
59
|
+
}, X = async (e) => {
|
|
60
|
+
var n, i, g, d, m, f, h;
|
|
61
|
+
const a = ((i = (n = u.value) == null ? void 0 : n.apForm) == null ? void 0 : i.getFieldsValueTransformed(!0)) || {}, t = {};
|
|
62
|
+
Object.entries(a).forEach(([v, x]) => {
|
|
63
|
+
D && D.indexOf(v) > -1 && (t[v] = x);
|
|
64
|
+
}), await ((d = (g = u.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (f = (m = u.value) == null ? void 0 : m.apForm) == null ? void 0 : f.setFieldsValue) == null || h.call(f, t), ae(() => {
|
|
60
65
|
e == null || e();
|
|
61
66
|
});
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
const a =
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
...
|
|
67
|
+
}, S = (e) => {
|
|
68
|
+
s = e;
|
|
69
|
+
const a = O(e);
|
|
70
|
+
E(a);
|
|
71
|
+
}, Y = (e) => {
|
|
72
|
+
S({
|
|
73
|
+
...s,
|
|
69
74
|
...e
|
|
70
75
|
});
|
|
71
|
-
},
|
|
76
|
+
}, R = () => {
|
|
72
77
|
var a, t;
|
|
73
|
-
const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.
|
|
74
|
-
c.value = 1,
|
|
78
|
+
const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
79
|
+
c.value = 1, S({
|
|
75
80
|
...e,
|
|
76
|
-
filter:
|
|
77
|
-
sort:
|
|
81
|
+
filter: s.filter,
|
|
82
|
+
sort: s.sort,
|
|
78
83
|
current: 1,
|
|
79
|
-
pageSize:
|
|
84
|
+
pageSize: s.pageSize || y
|
|
80
85
|
});
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
const a = o(
|
|
87
|
-
|
|
88
|
-
current:
|
|
86
|
+
}, Z = () => {
|
|
87
|
+
U(), s.sort = {}, s.filter = {}, X(R);
|
|
88
|
+
}, _ = () => {
|
|
89
|
+
S(s);
|
|
90
|
+
}, I = (e) => {
|
|
91
|
+
const a = o(r).total - e, t = Math.ceil(a / o(p)), n = o(c) > t ? t : o(c);
|
|
92
|
+
Y({
|
|
93
|
+
current: n > 0 ? n : 1
|
|
89
94
|
});
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
const
|
|
93
|
-
c.value = e.current, p.value = e.pageSize;
|
|
94
|
-
const
|
|
95
|
-
for (const
|
|
96
|
-
(
|
|
95
|
+
}, j = (e, a, t) => {
|
|
96
|
+
var f, h, v, x;
|
|
97
|
+
const n = ((h = (f = u.value) == null ? void 0 : f.apForm) == null ? void 0 : h.getFieldsValueTransformed(!0)) || {};
|
|
98
|
+
c.value = e.current, p.value = e.pageSize, H(a, t);
|
|
99
|
+
const i = q(t) ? [...t] : [t], g = {};
|
|
100
|
+
for (const l of i)
|
|
101
|
+
(v = o(L)) != null && v.includes(l.columnKey || l.field) && (g[ne(l.columnKey || l.field)] = l.order);
|
|
97
102
|
const d = {};
|
|
98
|
-
for (const
|
|
99
|
-
(
|
|
100
|
-
|
|
101
|
-
...
|
|
103
|
+
for (const l of Object.keys(a))
|
|
104
|
+
(x = o(J)) != null && x.includes(l) && (d[l] = a[l]);
|
|
105
|
+
const m = {
|
|
106
|
+
...n,
|
|
102
107
|
filter: d,
|
|
103
108
|
sort: g,
|
|
104
109
|
current: e.current,
|
|
105
110
|
pageSize: e.pageSize
|
|
106
|
-
}
|
|
111
|
+
};
|
|
112
|
+
ie(s, m, se) || S(m);
|
|
107
113
|
};
|
|
108
|
-
|
|
114
|
+
oe(() => {
|
|
109
115
|
var a, t;
|
|
110
|
-
const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.
|
|
111
|
-
if (
|
|
116
|
+
const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
117
|
+
if (s = {
|
|
112
118
|
current: o(c),
|
|
113
119
|
pageSize: o(p),
|
|
120
|
+
filter: {},
|
|
121
|
+
sort: {},
|
|
114
122
|
...e
|
|
115
|
-
}, !
|
|
116
|
-
const
|
|
117
|
-
|
|
123
|
+
}, !B) {
|
|
124
|
+
const n = O(s);
|
|
125
|
+
E(n);
|
|
118
126
|
}
|
|
119
127
|
});
|
|
120
|
-
const
|
|
121
|
-
function
|
|
122
|
-
|
|
128
|
+
const k = V(() => o(r).total === 0 ? "-" : `${o(c.value)}/${Math.ceil(o(r).total / o(p))}`);
|
|
129
|
+
function ee(e) {
|
|
130
|
+
q(e) && (r.value.records = e, r.value.total = e.length);
|
|
123
131
|
}
|
|
124
|
-
const
|
|
125
|
-
loading: o(
|
|
132
|
+
const te = V(() => ({
|
|
133
|
+
loading: o(r).loading,
|
|
126
134
|
pagination: {
|
|
127
135
|
current: o(c),
|
|
128
136
|
pageSize: o(p),
|
|
129
|
-
total: o(
|
|
130
|
-
showSizeChanger: !
|
|
131
|
-
showQuickJumper: !
|
|
132
|
-
showLessItems:
|
|
137
|
+
total: o(r).total,
|
|
138
|
+
showSizeChanger: !z,
|
|
139
|
+
showQuickJumper: !z,
|
|
140
|
+
showLessItems: z,
|
|
133
141
|
size: "default",
|
|
134
|
-
showTotal:
|
|
135
|
-
class:
|
|
136
|
-
}, [
|
|
137
|
-
class:
|
|
138
|
-
}, [e]), " ",
|
|
139
|
-
class:
|
|
140
|
-
}, [
|
|
141
|
-
class:
|
|
142
|
-
}, [o(
|
|
142
|
+
showTotal: Q ? (e) => b("span", {
|
|
143
|
+
class: F("pagination-total-wrapper")
|
|
144
|
+
}, [T("ap.apTable.pagination.totalLeftPrefix"), " ", b("span", {
|
|
145
|
+
class: F("pagination-count-text")
|
|
146
|
+
}, [e]), " ", T("ap.apTable.pagination.totalLeftSuffix"), b("span", {
|
|
147
|
+
class: F("pagination--total-right")
|
|
148
|
+
}, [T("ap.apTable.pagination.totalRightPrefix"), " ", b("span", {
|
|
149
|
+
class: F("pagination-count-text")
|
|
150
|
+
}, [o(k)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
143
151
|
},
|
|
144
|
-
onChange:
|
|
145
|
-
dataSource: o(
|
|
152
|
+
onChange: j,
|
|
153
|
+
dataSource: o(r).records
|
|
146
154
|
}));
|
|
147
155
|
return {
|
|
148
156
|
formRef: u,
|
|
149
|
-
submit:
|
|
150
|
-
reset:
|
|
151
|
-
refresh:
|
|
152
|
-
refreshByDelete:
|
|
153
|
-
data:
|
|
157
|
+
submit: R,
|
|
158
|
+
reset: Z,
|
|
159
|
+
refresh: _,
|
|
160
|
+
refreshByDelete: I,
|
|
161
|
+
data: r,
|
|
154
162
|
current: c,
|
|
155
163
|
pageSize: p,
|
|
156
|
-
handleTableChange:
|
|
157
|
-
tableProps:
|
|
158
|
-
dataSource: V(() => o(
|
|
159
|
-
setDataSource:
|
|
164
|
+
handleTableChange: j,
|
|
165
|
+
tableProps: te,
|
|
166
|
+
dataSource: V(() => o(r).records),
|
|
167
|
+
setDataSource: ee,
|
|
168
|
+
getColumnSFConfig: G
|
|
160
169
|
};
|
|
161
170
|
};
|
|
162
171
|
export {
|
|
163
|
-
|
|
172
|
+
Te as useTablePaging
|
|
164
173
|
};
|
|
@@ -8546,4 +8546,5 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
|
|
|
8546
8546
|
[key: string]: any;
|
|
8547
8547
|
}> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
|
|
8548
8548
|
export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
|
|
8549
|
+
export declare function isEqualCustom(value: any, other: any): boolean | undefined;
|
|
8549
8550
|
export {};
|
|
@@ -1,32 +1,32 @@
|
|
|
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 m, cloneVNode as h, Fragment as j } from "vue";
|
|
2
|
+
import { isObject as a, isArray as l, isUndefined as E, isFunction as y, omit as O, isBoolean as F, isString as N, isEqual as S, sortBy as p, isPlainObject as d, every as I, isEmpty as v } from "lodash-unified";
|
|
3
|
+
import { apTableRenderItemMap as C, apTableFormItemMap as P } from "./constants.mjs";
|
|
4
|
+
import { isType as V } from "@fruits-chain/utils";
|
|
5
5
|
import "../ap-form/index.mjs";
|
|
6
|
-
import { Tooltip as
|
|
7
|
-
import { QuestionCircleOutlined as
|
|
8
|
-
import
|
|
9
|
-
function
|
|
10
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
6
|
+
import { Tooltip as w } from "@aplus-frontend/antdv";
|
|
7
|
+
import { QuestionCircleOutlined as A } from "@ant-design/icons-vue";
|
|
8
|
+
import x from "../ap-form/item/index.vue.mjs";
|
|
9
|
+
function _(t) {
|
|
10
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !g(t);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
}) :
|
|
17
|
-
},
|
|
12
|
+
const q = (t, e, n) => {
|
|
13
|
+
let o = {};
|
|
14
|
+
return a(t) ? Object.keys(t).forEach((r) => {
|
|
15
|
+
a(t[r]) ? o[r] = q(t[r], e[r], n) : o[r] = n(t[r], e);
|
|
16
|
+
}) : o = n(t, e), o;
|
|
17
|
+
}, X = (t, e) => {
|
|
18
18
|
switch (t) {
|
|
19
19
|
case "dayjs":
|
|
20
20
|
return e.valueOf();
|
|
21
21
|
case "dayjsRange":
|
|
22
22
|
return e.map((n) => n.valueOf());
|
|
23
23
|
case "dayjsDayRange": {
|
|
24
|
-
const [n,
|
|
25
|
-
return [n.startOf("day").valueOf(),
|
|
24
|
+
const [n, o] = e;
|
|
25
|
+
return [n.startOf("day").valueOf(), o.endOf("day").valueOf()];
|
|
26
26
|
}
|
|
27
27
|
case "multiple":
|
|
28
28
|
case "multipleNumber":
|
|
29
|
-
return
|
|
29
|
+
return l(e) ? e : [e];
|
|
30
30
|
case "boolean":
|
|
31
31
|
return e;
|
|
32
32
|
case "object":
|
|
@@ -35,103 +35,103 @@ const w = (t, e, n) => {
|
|
|
35
35
|
return e;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function Y(t) {
|
|
39
|
+
return l(t) ? t.join(".") : t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function W(t) {
|
|
42
42
|
const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
|
|
43
43
|
return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
const e = [], n =
|
|
47
|
-
return n.forEach((
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
45
|
+
const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})), b = (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)) {
|
|
51
51
|
e.push({
|
|
52
|
-
text:
|
|
53
|
-
value:
|
|
54
|
-
label:
|
|
55
|
-
disabled:
|
|
52
|
+
text: i == null ? void 0 : i.text,
|
|
53
|
+
value: r,
|
|
54
|
+
label: i == null ? void 0 : i.text,
|
|
55
|
+
disabled: i.disabled
|
|
56
56
|
});
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
e.push({
|
|
60
|
-
text:
|
|
61
|
-
label:
|
|
62
|
-
value:
|
|
60
|
+
text: i,
|
|
61
|
+
label: i,
|
|
62
|
+
value: r
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}), e;
|
|
66
|
-
},
|
|
67
|
-
function
|
|
68
|
-
return !t || !
|
|
66
|
+
}, Z = (t) => E(t) || t < 0 ? 0 : t;
|
|
67
|
+
function R(t, e) {
|
|
68
|
+
return !t || !y(t) ? t : t(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function k(t) {
|
|
71
71
|
let e = t.valueType || "text";
|
|
72
72
|
return t.valueEnum && (e = "status"), e;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function H(t, e, n, o) {
|
|
75
75
|
var s;
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
return u(
|
|
76
|
+
const r = C[t];
|
|
77
|
+
if (r)
|
|
78
|
+
return u(r, m(e, {
|
|
79
79
|
mode: "read"
|
|
80
80
|
}), null);
|
|
81
|
-
const
|
|
82
|
-
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;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function M(t, e) {
|
|
85
85
|
if (t.customRenderFormItem)
|
|
86
86
|
return () => {
|
|
87
|
-
const
|
|
88
|
-
return
|
|
87
|
+
const r = t.customRenderFormItem(t);
|
|
88
|
+
return h(r, {
|
|
89
89
|
...t.fieldProps,
|
|
90
90
|
span: t.span,
|
|
91
|
-
...
|
|
91
|
+
...r.props || {}
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
|
-
const n =
|
|
94
|
+
const n = P[t.valueType];
|
|
95
95
|
if (n)
|
|
96
96
|
return n;
|
|
97
|
-
const
|
|
97
|
+
const o = e == null ? void 0 : e[t.valueType];
|
|
98
98
|
return () => {
|
|
99
|
-
var
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
var i;
|
|
100
|
+
const r = (i = o == null ? void 0 : o.renderFormItem) == null ? void 0 : i.call(o, t.fieldProps.field);
|
|
101
|
+
return r ? u(x, m(t.fieldProps, {
|
|
102
102
|
span: t.span
|
|
103
|
-
}),
|
|
104
|
-
default: () => [
|
|
103
|
+
}), _(r) ? r : {
|
|
104
|
+
default: () => [r]
|
|
105
105
|
}) : null;
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const n =
|
|
108
|
+
function tt(t, e) {
|
|
109
|
+
const n = R(t.fieldProps, e), o = (n == null ? void 0 : n.field) || n || {}, r = t.valueType === "switch", i = t.valueType === "index", s = r ? {
|
|
110
110
|
checked: e.value
|
|
111
111
|
} : {
|
|
112
|
-
value:
|
|
112
|
+
value: i ? e.index + 1 : e.value
|
|
113
113
|
};
|
|
114
|
-
return t.valueEnum && (
|
|
115
|
-
...
|
|
114
|
+
return t.valueEnum && (o.valueEnum = t.valueEnum), {
|
|
115
|
+
...O(o, ["request"]),
|
|
116
116
|
...s
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function et(t) {
|
|
120
120
|
const e = {
|
|
121
121
|
...t
|
|
122
122
|
};
|
|
123
|
-
return
|
|
123
|
+
return F(t.filters) && t.filters && t.valueEnum && (e.filters = b(t.valueEnum)), e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
var
|
|
125
|
+
function nt(t, e) {
|
|
126
|
+
var o;
|
|
127
127
|
const n = e || {};
|
|
128
|
-
return t.valueEnum && !((
|
|
128
|
+
return t.valueEnum && !((o = n.field) != null && o.options) && (n.field = {
|
|
129
129
|
...n.field,
|
|
130
|
-
options:
|
|
130
|
+
options: b(t.valueEnum)
|
|
131
131
|
}), n;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
133
|
+
function rt(t) {
|
|
134
|
+
if (!V("Object")(t))
|
|
135
135
|
return t;
|
|
136
136
|
try {
|
|
137
137
|
return JSON.stringify(t);
|
|
@@ -139,60 +139,70 @@ function H(t) {
|
|
|
139
139
|
return t;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const
|
|
142
|
+
function ot(t, e, n, o) {
|
|
143
|
+
const r = n == null ? void 0 : n({
|
|
144
144
|
title: t.title,
|
|
145
145
|
column: t
|
|
146
|
-
}),
|
|
147
|
-
if (
|
|
148
|
-
return
|
|
149
|
-
const
|
|
146
|
+
}), i = (r == null ? void 0 : r.filter((T) => T.type !== Symbol.for("v-cmt"))) || [];
|
|
147
|
+
if (r && i.length > 0)
|
|
148
|
+
return r;
|
|
149
|
+
const c = N(t.title) ? u("span", {
|
|
150
150
|
class: e,
|
|
151
151
|
title: t.title
|
|
152
|
-
}, [t.title]) : t.title,
|
|
153
|
-
return
|
|
152
|
+
}, [t.title]) : t.title, f = t.tooltip ? y(t.tooltip) ? t.tooltip(t) : u(j, null, [t.tooltip]) : null;
|
|
153
|
+
return f ? u("span", {
|
|
154
154
|
style: {
|
|
155
155
|
display: "inline-flex",
|
|
156
156
|
alignItems: "center",
|
|
157
157
|
maxWidth: "100%"
|
|
158
158
|
}
|
|
159
|
-
}, [
|
|
160
|
-
title:
|
|
159
|
+
}, [c, u(w, {
|
|
160
|
+
title: f,
|
|
161
161
|
placement: "bottom"
|
|
162
162
|
}, {
|
|
163
|
-
default: () => [u(
|
|
163
|
+
default: () => [u(A, {
|
|
164
164
|
style: {
|
|
165
165
|
padding: "4px",
|
|
166
|
-
color:
|
|
166
|
+
color: o,
|
|
167
167
|
verticalAlign: "middle"
|
|
168
168
|
}
|
|
169
169
|
}, null)]
|
|
170
|
-
})]) :
|
|
170
|
+
})]) : c;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function it(t, e) {
|
|
173
173
|
const n = [];
|
|
174
|
-
function
|
|
175
|
-
var
|
|
176
|
-
for (const s of
|
|
177
|
-
(
|
|
174
|
+
function o(r) {
|
|
175
|
+
var i;
|
|
176
|
+
for (const s of r)
|
|
177
|
+
(i = s.children) != null && i.length ? o(s.children) : n.push(e(s));
|
|
178
|
+
}
|
|
179
|
+
return o(t), n;
|
|
180
|
+
}
|
|
181
|
+
function st(t, e) {
|
|
182
|
+
if (l(t) && l(e))
|
|
183
|
+
return S(p(t), p(e));
|
|
184
|
+
if (d(t) && d(e)) {
|
|
185
|
+
const n = (o) => I(o, (r) => r == null) || v(o);
|
|
186
|
+
if (n(t) && n(e))
|
|
187
|
+
return !0;
|
|
178
188
|
}
|
|
179
|
-
return i(t), n;
|
|
180
189
|
}
|
|
181
190
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
et as apColumnToColumn,
|
|
192
|
+
Y as dataIndexToStr,
|
|
193
|
+
q as formatParamsValueType,
|
|
194
|
+
Z as getColumnOrder,
|
|
195
|
+
R as getFieldProps,
|
|
196
|
+
M as getSearchFormItemRenderNode,
|
|
197
|
+
H as getTableCellRenderNode,
|
|
198
|
+
tt as getTableRenderProps,
|
|
199
|
+
k as getTableRenderType,
|
|
200
|
+
ot as getTableTitle,
|
|
201
|
+
st as isEqualCustom,
|
|
202
|
+
B as objectToMap,
|
|
203
|
+
rt as objectToString,
|
|
204
|
+
X as parseFieldValue,
|
|
205
|
+
it as recursionApColumns,
|
|
206
|
+
nt as updateFormProps,
|
|
207
|
+
b as valueEnumToArray
|
|
198
208
|
};
|