@aplus-frontend/ui 7.12.0 → 7.12.2
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/ag-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ag-grid/index.vue.mjs +124 -122
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -1
- package/es/src/ap-grid/index.vue.mjs +95 -93
- package/es/src/ap-table/ap-table.vue2.mjs +73 -71
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +7 -6
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +60 -59
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +117 -97
- package/es/src/business/ap-upload/apUpload.vue.d.ts +3 -3
- package/es/src/business/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +13 -12
- package/es/src/config-provider/config-provider-props.d.ts +13 -1
- package/es/src/config-provider/config-provider.d.ts +28 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +13 -1
- package/es/src/config-provider/index.d.ts +46 -1
- package/es/src/utils/config-provider-preset.d.ts +7 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +3 -3
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
- package/lib/src/config-provider/config-provider-props.d.ts +13 -1
- package/lib/src/config-provider/config-provider.d.ts +28 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +13 -1
- package/lib/src/config-provider/index.d.ts +46 -1
- package/lib/src/utils/config-provider-preset.d.ts +7 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isArray as B, isEqualWith as
|
|
1
|
+
import { ref as pe, reactive as k, unref as g, nextTick as he, onMounted as me, watch as Se, computed as L, createVNode as C } from "vue";
|
|
2
|
+
import { cloneDeep as ze, isArray as B, isEqualWith as Pe, isUndefined as Te } from "lodash-unified";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import "../../utils/index.mjs";
|
|
5
|
-
import { parseFieldValue as
|
|
6
|
-
import { useTableSortedAndFiltered as
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useNamespace as
|
|
5
|
+
import { parseFieldValue as be, dataIndexToStr as Ce, isEqualCustom as xe } from "../utils.mjs";
|
|
6
|
+
import { useTableSortedAndFiltered as Fe } from "./use-sorted-filtered.mjs";
|
|
7
|
+
import { useLocale as we } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as De } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { isDef as J } from "../../utils/is.mjs";
|
|
10
|
-
const d = 1,
|
|
10
|
+
const d = 1, O = 20, K = {
|
|
11
11
|
defaultCurrent: d,
|
|
12
|
-
defaultPageSize:
|
|
12
|
+
defaultPageSize: O,
|
|
13
13
|
showLessItems: !1,
|
|
14
14
|
showTotal: !0
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function Ee(i) {
|
|
17
17
|
return i === !1 ? {} : i == null || i === !0 ? K : {
|
|
18
18
|
...K,
|
|
19
19
|
...i
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ve(i) {
|
|
23
23
|
const f = {};
|
|
24
|
-
return i === !1 || (i === !0 || i == null ? (f.current = d, f.pageSize =
|
|
24
|
+
return i === !1 || (i === !0 || i == null ? (f.current = d, f.pageSize = O) : (f.current = i.defaultCurrent || d, f.pageSize = i.defaultPageSize || O)), f;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const je = ({
|
|
27
27
|
manual: i = !1,
|
|
28
28
|
request: f,
|
|
29
29
|
params: y = {},
|
|
@@ -39,17 +39,17 @@ const Ne = ({
|
|
|
39
39
|
onAfterRequest: Z
|
|
40
40
|
}) => {
|
|
41
41
|
let x = 0, s = {};
|
|
42
|
-
const H =
|
|
42
|
+
const H = Ee(p), X = (e) => I ? I(e) : e, h = pe(), c = k(ve(p)), {
|
|
43
43
|
getColumnSFConfig: Y,
|
|
44
44
|
setSF: ee,
|
|
45
45
|
clearAll: te,
|
|
46
46
|
sortedInfo: V,
|
|
47
47
|
filteredInfo: j
|
|
48
|
-
} =
|
|
48
|
+
} = Fe(), {
|
|
49
49
|
t: m
|
|
50
|
-
} =
|
|
50
|
+
} = we(), {
|
|
51
51
|
b: S
|
|
52
|
-
} =
|
|
52
|
+
} = De($), a = k({
|
|
53
53
|
total: R.length,
|
|
54
54
|
records: R,
|
|
55
55
|
loading: !1
|
|
@@ -76,14 +76,14 @@ const Ne = ({
|
|
|
76
76
|
return Object.entries(e).forEach(([n, r]) => {
|
|
77
77
|
if (t[n] = r, M && r) {
|
|
78
78
|
const o = M[n];
|
|
79
|
-
o && (t[n] =
|
|
79
|
+
o && (t[n] = be(o, r));
|
|
80
80
|
}
|
|
81
81
|
}), t;
|
|
82
82
|
}, ne = async (e) => {
|
|
83
83
|
const t = z(), n = {};
|
|
84
84
|
Object.entries(t).forEach(([r, o]) => {
|
|
85
85
|
N && N.indexOf(r) > -1 && (n[r] = o);
|
|
86
|
-
}), await h.value?.apForm?.resetFields(), h.value?.apForm?.setFieldsValue?.(n),
|
|
86
|
+
}), await h.value?.apForm?.resetFields(), h.value?.apForm?.setFieldsValue?.(n), he(() => {
|
|
87
87
|
e?.();
|
|
88
88
|
});
|
|
89
89
|
}, P = (e) => {
|
|
@@ -96,12 +96,12 @@ const Ne = ({
|
|
|
96
96
|
...e
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
let T,
|
|
99
|
+
let T, D = !0;
|
|
100
100
|
function U() {
|
|
101
|
-
T = void 0,
|
|
101
|
+
T = void 0, D = !0;
|
|
102
102
|
}
|
|
103
103
|
const ae = () => {
|
|
104
|
-
if (!
|
|
104
|
+
if (!D)
|
|
105
105
|
return;
|
|
106
106
|
const e = T ? T + 1 : 2, t = {
|
|
107
107
|
...s,
|
|
@@ -112,10 +112,10 @@ const Ne = ({
|
|
|
112
112
|
F(n, {
|
|
113
113
|
cache: !0,
|
|
114
114
|
onSuccess(r, o) {
|
|
115
|
-
T = r.current,
|
|
115
|
+
T = r.current, D = o;
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
},
|
|
118
|
+
}, oe = () => ze(s), E = () => {
|
|
119
119
|
q(!0), U();
|
|
120
120
|
}, q = (e = !1) => {
|
|
121
121
|
const t = z(), n = p !== !1;
|
|
@@ -126,13 +126,13 @@ const Ne = ({
|
|
|
126
126
|
current: n ? e ? d : s.current || c.current : void 0,
|
|
127
127
|
pageSize: n ? s.pageSize || c.pageSize : void 0
|
|
128
128
|
});
|
|
129
|
-
},
|
|
130
|
-
te(), s.sort = {}, s.filter = {}, G?.(), ne(
|
|
131
|
-
},
|
|
129
|
+
}, se = () => {
|
|
130
|
+
te(), s.sort = {}, s.filter = {}, G?.(), ne(E), U();
|
|
131
|
+
}, v = () => {
|
|
132
132
|
P(s);
|
|
133
|
-
},
|
|
133
|
+
}, ce = (e) => {
|
|
134
134
|
if (p === !1)
|
|
135
|
-
|
|
135
|
+
v();
|
|
136
136
|
else {
|
|
137
137
|
const {
|
|
138
138
|
current: t,
|
|
@@ -142,12 +142,12 @@ const Ne = ({
|
|
|
142
142
|
current: u > 0 ? u : 1
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
},
|
|
145
|
+
}, A = (e, t, n) => {
|
|
146
146
|
const r = z();
|
|
147
147
|
c.current = e.current, c.pageSize = e.pageSize, ee(t, n);
|
|
148
148
|
const o = B(n) ? [...n] : [n], u = {};
|
|
149
149
|
for (const l of o)
|
|
150
|
-
g(W)?.includes(l.columnKey || l.field) && l.order && (u[
|
|
150
|
+
g(W)?.includes(l.columnKey || l.field) && l.order && (u[Ce(l.columnKey || l.field)] = l.order);
|
|
151
151
|
const b = {};
|
|
152
152
|
for (const l of Object.keys(t))
|
|
153
153
|
g(Q)?.includes(l) && t[l] && (b[l] = t[l]);
|
|
@@ -158,10 +158,10 @@ const Ne = ({
|
|
|
158
158
|
current: e.current,
|
|
159
159
|
pageSize: e.pageSize
|
|
160
160
|
};
|
|
161
|
-
|
|
162
|
-
},
|
|
161
|
+
Pe(s, _, xe) || P(_);
|
|
162
|
+
}, ie = (e, t = j.value || {}, n = V.value || {}) => {
|
|
163
163
|
const r = e?.current ?? c.current, o = e?.pageSize ?? c.pageSize;
|
|
164
|
-
|
|
164
|
+
A(
|
|
165
165
|
{
|
|
166
166
|
current: r,
|
|
167
167
|
pageSize: o
|
|
@@ -175,7 +175,7 @@ const Ne = ({
|
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
};
|
|
178
|
-
|
|
178
|
+
me(() => {
|
|
179
179
|
const e = z(), {
|
|
180
180
|
current: t,
|
|
181
181
|
pageSize: n
|
|
@@ -190,12 +190,12 @@ const Ne = ({
|
|
|
190
190
|
const r = w(s);
|
|
191
191
|
F(r);
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
194
|
-
|
|
193
|
+
}), Se(() => g(y), () => {
|
|
194
|
+
E();
|
|
195
195
|
}, {
|
|
196
196
|
deep: !0
|
|
197
197
|
});
|
|
198
|
-
const
|
|
198
|
+
const ue = L(() => {
|
|
199
199
|
if (a.total === 0)
|
|
200
200
|
return "-";
|
|
201
201
|
const {
|
|
@@ -204,10 +204,10 @@ const Ne = ({
|
|
|
204
204
|
} = c;
|
|
205
205
|
return `${e}/${Math.ceil(a.total / t)}`;
|
|
206
206
|
});
|
|
207
|
-
function
|
|
207
|
+
function le(e) {
|
|
208
208
|
B(e) && (a.records = e, a.total = e.length);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
210
|
+
const fe = L(() => {
|
|
211
211
|
const {
|
|
212
212
|
showLessItems: e,
|
|
213
213
|
showTotal: t,
|
|
@@ -225,7 +225,7 @@ const Ne = ({
|
|
|
225
225
|
showQuickJumper: J(n) ? n : !e,
|
|
226
226
|
showLessItems: e,
|
|
227
227
|
size: "default",
|
|
228
|
-
pageSizeOptions:
|
|
228
|
+
pageSizeOptions: Te(o) ? ["10", "20", "50", "100"] : o,
|
|
229
229
|
showTotal: t ? (u) => C("span", {
|
|
230
230
|
class: S("pagination-total-wrapper")
|
|
231
231
|
}, [m("ap.apTable.pagination.totalLeftPrefix"), " ", C("span", {
|
|
@@ -234,43 +234,44 @@ const Ne = ({
|
|
|
234
234
|
class: S("pagination--total-right")
|
|
235
235
|
}, [m("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
|
|
236
236
|
class: S("pagination-count-text")
|
|
237
|
-
}, [g(
|
|
237
|
+
}, [g(ue)]), " ", m("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
238
238
|
},
|
|
239
|
-
onChange:
|
|
239
|
+
onChange: A,
|
|
240
240
|
dataSource: a.records
|
|
241
241
|
};
|
|
242
242
|
});
|
|
243
|
-
function
|
|
244
|
-
Object.assign(c, e), s.current = e.current, s.pageSize = e.pageSize, t &&
|
|
243
|
+
function ge(e, t = !0) {
|
|
244
|
+
Object.assign(c, e), s.current = e.current, s.pageSize = e.pageSize, t && v();
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function de() {
|
|
247
247
|
return {
|
|
248
248
|
...c
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
return {
|
|
252
252
|
formRef: h,
|
|
253
|
-
submit:
|
|
254
|
-
reset:
|
|
255
|
-
refresh:
|
|
256
|
-
refreshByDelete:
|
|
253
|
+
submit: E,
|
|
254
|
+
reset: se,
|
|
255
|
+
refresh: v,
|
|
256
|
+
refreshByDelete: ce,
|
|
257
257
|
data: a,
|
|
258
|
-
handleTableChange:
|
|
259
|
-
handleTableChangeOptional:
|
|
260
|
-
tableProps:
|
|
261
|
-
dataSource:
|
|
262
|
-
setDataSource:
|
|
258
|
+
handleTableChange: A,
|
|
259
|
+
handleTableChangeOptional: ie,
|
|
260
|
+
tableProps: fe,
|
|
261
|
+
dataSource: L(() => a.records),
|
|
262
|
+
setDataSource: le,
|
|
263
263
|
getColumnSFConfig: Y,
|
|
264
264
|
sortedInfo: V,
|
|
265
265
|
filteredInfo: j,
|
|
266
|
-
getPaging:
|
|
267
|
-
setPaging:
|
|
266
|
+
getPaging: de,
|
|
267
|
+
setPaging: ge,
|
|
268
268
|
submitWith: q,
|
|
269
|
-
fetchNextPageAndCache: ae
|
|
269
|
+
fetchNextPageAndCache: ae,
|
|
270
|
+
getLastParams: oe
|
|
270
271
|
};
|
|
271
272
|
};
|
|
272
273
|
export {
|
|
273
274
|
d as DEFAULT_CURRENT,
|
|
274
|
-
|
|
275
|
-
|
|
275
|
+
O as DEFAULT_PAGE_SIZE,
|
|
276
|
+
je as useTablePaging
|
|
276
277
|
};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { message as
|
|
4
|
-
import { usePermission as
|
|
1
|
+
import { defineComponent as J, ref as B, computed as m, watch as Q, createElementBlock as M, openBlock as s, Fragment as T, createBlock as d, createCommentVNode as S, unref as o, mergeProps as x, withCtx as l, createTextVNode as y, toDisplayString as v, normalizeClass as W, createVNode as L } from "vue";
|
|
2
|
+
import { DownOutlined as X } from "@ant-design/icons-vue";
|
|
3
|
+
import { message as Y, Dropdown as Z, Menu as ee, MenuItem as R } from "@aplus-frontend/antdv";
|
|
4
|
+
import { usePermission as te } from "@aplus-frontend/hooks";
|
|
5
|
+
import { transformTableParamsNoTimezone as oe } from "@aplus-frontend/utils";
|
|
6
|
+
import { merge as ae } from "lodash-unified";
|
|
5
7
|
import "../../ap-button/index.mjs";
|
|
6
|
-
import { useInjectApTable as
|
|
8
|
+
import { useInjectApTable as re } from "../../ap-table/context.mjs";
|
|
7
9
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { ApBatchActionGroup as
|
|
9
|
-
import { convertExportField as
|
|
10
|
-
import { handleExportDownload as
|
|
11
|
-
import { ApExportGroupActionType as
|
|
12
|
-
import { useNamespace as
|
|
13
|
-
import { useLocale as
|
|
14
|
-
import { useGlobalConfig as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
10
|
+
import { ApBatchActionGroup as se } from "../ap-batch-action-group/index.mjs";
|
|
11
|
+
import { convertExportField as le } from "./convertExportField.mjs";
|
|
12
|
+
import { handleExportDownload as ne } from "./handleExportDownload.mjs";
|
|
13
|
+
import { ApExportGroupActionType as n } from "./interface.mjs";
|
|
14
|
+
import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
|
|
15
|
+
import { useLocale as ie } from "../../config-provider/hooks/use-locale.mjs";
|
|
16
|
+
import { useGlobalConfig as pe } from "../../config-provider/hooks/use-global-config.mjs";
|
|
17
|
+
import C from "../../ap-button/ap-button.vue.mjs";
|
|
18
|
+
const Fe = /* @__PURE__ */ J({
|
|
17
19
|
__name: "ApExportGroup",
|
|
18
20
|
props: {
|
|
19
21
|
type: { default: "button" },
|
|
@@ -32,117 +34,121 @@ const he = /* @__PURE__ */ $({
|
|
|
32
34
|
successMessage: { type: [Boolean, String], default: !1 },
|
|
33
35
|
exportField: { type: [Boolean, Object], default: void 0 }
|
|
34
36
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const { hasPermission:
|
|
37
|
-
() => !!
|
|
37
|
+
setup(q) {
|
|
38
|
+
const { hasPermission: P } = te(), t = q, { columns: F, dataSource: A, getSearchFormValues: K, getLastParams: D } = re(), { b: N } = ue("ap-export-group"), { t: u } = ie(), _ = pe("exportField"), i = B(!1), h = B(!1), p = m(
|
|
39
|
+
() => !!t?.disabled || (A !== void 0 ? !A?.value?.length : !1) || i.value
|
|
38
40
|
);
|
|
39
|
-
|
|
40
|
-
() =>
|
|
41
|
+
Q(
|
|
42
|
+
() => p.value,
|
|
41
43
|
() => {
|
|
42
|
-
|
|
44
|
+
p.value && (h.value = !1);
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
47
|
immediate: !0
|
|
46
48
|
}
|
|
47
49
|
);
|
|
48
|
-
const
|
|
49
|
-
const r = "exportFieldList", a =
|
|
50
|
+
const $ = m(() => t?.successMessage === !0 ? u("ap.apExportGroup.exportSuccess") : t?.successMessage ? t.successMessage : ""), j = (e = t?.exportField) => {
|
|
51
|
+
const r = "exportFieldList", a = e ?? (_.value === "" ? !0 : _.value) ?? !1;
|
|
50
52
|
return a === !0 ? {
|
|
51
53
|
key: r
|
|
52
54
|
} : typeof a == "object" ? {
|
|
53
55
|
...a,
|
|
54
56
|
key: a.key ?? r
|
|
55
57
|
} : a;
|
|
56
|
-
},
|
|
58
|
+
}, I = {
|
|
57
59
|
textAlign: "center"
|
|
58
|
-
},
|
|
59
|
-
let
|
|
60
|
-
return !
|
|
60
|
+
}, g = m(() => t?.selectedRowKeys || []), k = m(() => {
|
|
61
|
+
let e = t?.ifShow;
|
|
62
|
+
return !t?.ifShow && t?.auth && (e = () => P(t.auth)), e?.() ?? !0;
|
|
61
63
|
});
|
|
62
|
-
async function
|
|
63
|
-
|
|
64
|
+
async function V() {
|
|
65
|
+
g.value.length > 0 ? c({ key: n.SELECT }) : c({ key: n.ALL });
|
|
64
66
|
}
|
|
65
|
-
async function
|
|
66
|
-
const a = r ||
|
|
67
|
-
let
|
|
68
|
-
|
|
69
|
-
[a?.idKey || "ids"]:
|
|
70
|
-
} :
|
|
71
|
-
const
|
|
67
|
+
async function c({ key: e, option: r }) {
|
|
68
|
+
const a = ae(r || {}, t), { getRequestParams: O, request: z } = a || {}, G = D?.()?.sort, U = G ? oe({ sort: G }) : {}, w = j(a?.exportField);
|
|
69
|
+
let E = {};
|
|
70
|
+
e === n.SELECT ? E = {
|
|
71
|
+
[a?.idKey || "ids"]: g.value
|
|
72
|
+
} : e === n.ALL && (E = O?.() || K?.(!0) || {});
|
|
73
|
+
const H = a?.getInitialParams?.() || {};
|
|
72
74
|
try {
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
+
i.value = !0;
|
|
76
|
+
let b = Object.assign(
|
|
75
77
|
{
|
|
76
|
-
...
|
|
77
|
-
...
|
|
78
|
+
...E,
|
|
79
|
+
...H,
|
|
80
|
+
...U
|
|
78
81
|
},
|
|
79
|
-
|
|
80
|
-
[
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
w && F?.value ? {
|
|
83
|
+
[w.key]: le(
|
|
84
|
+
F.value,
|
|
85
|
+
w?.convertField
|
|
83
86
|
)
|
|
84
87
|
} : {}
|
|
85
88
|
);
|
|
86
|
-
|
|
89
|
+
b = a?.beforeRequest?.(b) || b, await ne(async () => await z?.(b)), a?.successMessage && Y.success($.value);
|
|
87
90
|
} finally {
|
|
88
|
-
|
|
91
|
+
i.value = !1;
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
|
-
const
|
|
94
|
+
const f = m(() => t?.groupList?.filter((e) => {
|
|
95
|
+
let r = e?.ifShow;
|
|
96
|
+
return !e?.ifShow && e?.auth && (r = () => P(e.auth)), r?.() ?? !0;
|
|
97
|
+
})?.map((e, r) => ({
|
|
92
98
|
key: r,
|
|
93
|
-
content:
|
|
94
|
-
auth:
|
|
95
|
-
ifShow:
|
|
96
|
-
disabled:
|
|
99
|
+
content: e?.text,
|
|
100
|
+
auth: e?.auth,
|
|
101
|
+
ifShow: e?.ifShow,
|
|
102
|
+
disabled: e?.disabled,
|
|
97
103
|
onClick: () => {
|
|
98
|
-
|
|
99
|
-
key:
|
|
100
|
-
option:
|
|
101
|
-
}) :
|
|
102
|
-
key:
|
|
103
|
-
option:
|
|
104
|
+
g.value.length > 0 ? c({
|
|
105
|
+
key: n.SELECT,
|
|
106
|
+
option: e
|
|
107
|
+
}) : c({
|
|
108
|
+
key: n.ALL,
|
|
109
|
+
option: e
|
|
104
110
|
});
|
|
105
111
|
}
|
|
106
112
|
})) || []);
|
|
107
|
-
return (
|
|
108
|
-
|
|
109
|
-
...
|
|
113
|
+
return (e, r) => (s(), M(T, null, [
|
|
114
|
+
k.value && t.type === "button" ? (s(), d(o(C), x({ key: 0 }, {
|
|
115
|
+
...e.$attrs
|
|
110
116
|
}, {
|
|
111
|
-
disabled:
|
|
112
|
-
loading:
|
|
117
|
+
disabled: p.value,
|
|
118
|
+
loading: i.value,
|
|
113
119
|
"min-width": "",
|
|
114
|
-
onClick:
|
|
120
|
+
onClick: V
|
|
115
121
|
}), {
|
|
116
122
|
default: l(() => [
|
|
117
|
-
v(
|
|
123
|
+
y(v(t?.text ?? o(u)("ap.apExportGroup.export")), 1)
|
|
118
124
|
]),
|
|
119
125
|
_: 1
|
|
120
|
-
}, 16, ["disabled", "loading"])) :
|
|
121
|
-
|
|
126
|
+
}, 16, ["disabled", "loading"])) : S("", !0),
|
|
127
|
+
k.value && t.type === "dropdown" ? (s(), d(o(Z), {
|
|
122
128
|
key: 1,
|
|
123
|
-
open:
|
|
124
|
-
"onUpdate:open": r[0] || (r[0] = (a) =>
|
|
125
|
-
class:
|
|
126
|
-
"overlay-style":
|
|
127
|
-
disabled:
|
|
129
|
+
open: h.value,
|
|
130
|
+
"onUpdate:open": r[0] || (r[0] = (a) => h.value = a),
|
|
131
|
+
class: W([o(N)()]),
|
|
132
|
+
"overlay-style": I,
|
|
133
|
+
disabled: p.value
|
|
128
134
|
}, {
|
|
129
135
|
overlay: l(() => [
|
|
130
|
-
L(o(
|
|
136
|
+
L(o(ee), { onClick: c }, {
|
|
131
137
|
default: l(() => [
|
|
132
|
-
(
|
|
133
|
-
key: o(
|
|
134
|
-
disabled:
|
|
138
|
+
(s(), d(o(R), {
|
|
139
|
+
key: o(n).SELECT,
|
|
140
|
+
disabled: g.value?.length === 0
|
|
135
141
|
}, {
|
|
136
142
|
default: l(() => [
|
|
137
|
-
v(
|
|
143
|
+
y(v(o(u)("ap.apExportGroup.exportSelected")), 1)
|
|
138
144
|
]),
|
|
139
145
|
_: 1
|
|
140
146
|
}, 8, ["disabled"])),
|
|
141
|
-
(
|
|
142
|
-
key: o(
|
|
147
|
+
(s(), d(o(R), {
|
|
148
|
+
key: o(n).ALL
|
|
143
149
|
}, {
|
|
144
150
|
default: l(() => [
|
|
145
|
-
v(
|
|
151
|
+
y(v(o(u)("ap.apExportGroup.exportAll")), 1)
|
|
146
152
|
]),
|
|
147
153
|
_: 1
|
|
148
154
|
}))
|
|
@@ -151,33 +157,47 @@ const he = /* @__PURE__ */ $({
|
|
|
151
157
|
})
|
|
152
158
|
]),
|
|
153
159
|
default: l(() => [
|
|
154
|
-
L(o(
|
|
155
|
-
...
|
|
156
|
-
}, { loading:
|
|
160
|
+
L(o(C), x({
|
|
161
|
+
...e.$attrs
|
|
162
|
+
}, { loading: i.value }), {
|
|
157
163
|
default: l(() => [
|
|
158
|
-
v(
|
|
159
|
-
L(o(
|
|
164
|
+
y(v(t?.text ?? o(u)("ap.apExportGroup.export")) + " ", 1),
|
|
165
|
+
L(o(X))
|
|
160
166
|
]),
|
|
161
167
|
_: 1
|
|
162
168
|
}, 16, ["loading"])
|
|
163
169
|
]),
|
|
164
170
|
_: 1
|
|
165
|
-
}, 8, ["open", "class", "disabled"])) :
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
}, 8, ["open", "class", "disabled"])) : S("", !0),
|
|
172
|
+
k.value && t.type === "group" ? (s(), M(T, { key: 2 }, [
|
|
173
|
+
f.value.length === 1 ? (s(), d(o(C), x({ key: 0 }, {
|
|
174
|
+
...e.$attrs
|
|
175
|
+
}, {
|
|
176
|
+
disabled: p.value || f.value?.[0]?.disabled,
|
|
177
|
+
loading: i.value,
|
|
178
|
+
"min-width": "",
|
|
179
|
+
onClick: f.value?.[0]?.onClick
|
|
180
|
+
}), {
|
|
181
|
+
default: l(() => [
|
|
182
|
+
y(v(f.value?.[0]?.content ?? t?.text ?? o(u)("ap.apExportGroup.export")), 1)
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 16, ["disabled", "loading", "onClick"])) : (s(), d(o(se), x({ key: 1 }, {
|
|
186
|
+
...e.$attrs
|
|
187
|
+
}, {
|
|
188
|
+
disabled: p.value,
|
|
189
|
+
loading: i.value,
|
|
190
|
+
"button-props": {
|
|
191
|
+
...t.buttonProps,
|
|
192
|
+
content: t?.buttonProps?.content ?? o(u)("ap.apExportGroup.export"),
|
|
193
|
+
type: t?.buttonProps?.type ?? "default"
|
|
194
|
+
},
|
|
195
|
+
"menu-list": f.value
|
|
196
|
+
}), null, 16, ["disabled", "loading", "button-props", "menu-list"]))
|
|
197
|
+
], 64)) : S("", !0)
|
|
178
198
|
], 64));
|
|
179
199
|
}
|
|
180
200
|
});
|
|
181
201
|
export {
|
|
182
|
-
|
|
202
|
+
Fe as default
|
|
183
203
|
};
|
|
@@ -42,7 +42,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
42
42
|
default: string;
|
|
43
43
|
};
|
|
44
44
|
subTitle: {
|
|
45
|
-
type: (StringConstructor | (() => VNode))[];
|
|
45
|
+
type: (StringConstructor | (() => VNode) | null)[];
|
|
46
46
|
default: string;
|
|
47
47
|
};
|
|
48
48
|
maxCount: {
|
|
@@ -129,7 +129,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
129
129
|
default: string;
|
|
130
130
|
};
|
|
131
131
|
subTitle: {
|
|
132
|
-
type: (StringConstructor | (() => VNode))[];
|
|
132
|
+
type: (StringConstructor | (() => VNode) | null)[];
|
|
133
133
|
default: string;
|
|
134
134
|
};
|
|
135
135
|
maxCount: {
|
|
@@ -201,7 +201,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
201
201
|
acceptErrorMsg: string;
|
|
202
202
|
subTitle: string | VNode< RendererNode, RendererElement, {
|
|
203
203
|
[key: string]: any;
|
|
204
|
-
}
|
|
204
|
+
}> | null;
|
|
205
205
|
baseDirName: string;
|
|
206
206
|
maxCountErrorMsg: string;
|
|
207
207
|
showUploadErrorMsg: boolean;
|
|
@@ -21,23 +21,24 @@ const H = /* @__PURE__ */ y({
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:value"],
|
|
23
23
|
setup(f, { emit: d }) {
|
|
24
|
-
const o = f, v = d, { value:
|
|
24
|
+
const o = f, v = d, { value: g, updateValue: h } = z(o, v), n = i(!1), l = i(), b = (e) => o._parent || e, { t: x } = E();
|
|
25
25
|
function C(e) {
|
|
26
|
-
const
|
|
27
|
-
let
|
|
26
|
+
const r = e.target.value || "";
|
|
27
|
+
let a = L(r, `
|
|
28
28
|
,`, `
|
|
29
29
|
`, o.maxNum);
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
c
|
|
30
|
+
if (a = a.replace(/\\n/g, `
|
|
31
|
+
`), a !== r) {
|
|
32
|
+
const c = l.value?.$el || l.value;
|
|
33
|
+
c && (c.value = a);
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
+
h(a);
|
|
35
36
|
}
|
|
36
37
|
function I(e) {
|
|
37
|
-
o.disabled ?
|
|
38
|
+
o.disabled ? n.value = !1 : n.value = e, !e && o.onClose?.();
|
|
38
39
|
}
|
|
39
40
|
const { b: s, e: N, em: V, bm: _ } = F("batch-input-group-popover-input");
|
|
40
|
-
return (e,
|
|
41
|
+
return (e, r) => (k(), A("div", {
|
|
41
42
|
class: p(t(s)())
|
|
42
43
|
}, [
|
|
43
44
|
u(t(P), {
|
|
@@ -45,7 +46,7 @@ const H = /* @__PURE__ */ y({
|
|
|
45
46
|
"get-popup-container": b,
|
|
46
47
|
trigger: "click",
|
|
47
48
|
placement: "bottomLeft",
|
|
48
|
-
open:
|
|
49
|
+
open: n.value,
|
|
49
50
|
onOpenChange: I
|
|
50
51
|
}, {
|
|
51
52
|
content: m(() => [
|
|
@@ -54,13 +55,13 @@ const H = /* @__PURE__ */ y({
|
|
|
54
55
|
}, [
|
|
55
56
|
u(t($), {
|
|
56
57
|
ref_key: "textAreaRef",
|
|
57
|
-
ref:
|
|
58
|
+
ref: l,
|
|
58
59
|
placeholder: t(x)("ap.batchInputGroup.popoverInputPlaceholder", {
|
|
59
60
|
maxNum: e.maxNum + ""
|
|
60
61
|
}),
|
|
61
62
|
bordered: !1,
|
|
62
63
|
rows: 10,
|
|
63
|
-
value: t(
|
|
64
|
+
value: t(g),
|
|
64
65
|
"allow-clear": !1,
|
|
65
66
|
"auto-size": !1,
|
|
66
67
|
onInput: C
|