@aplus-frontend/ui 7.14.4 → 7.15.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-field/checkbox/index.vue.d.ts +3 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +37 -31
- package/es/src/ap-field/date/index.vue.d.ts +1086 -6
- package/es/src/ap-field/date/index.vue.mjs +63 -57
- package/es/src/ap-field/date-range/index.vue.d.ts +1155 -4
- package/es/src/ap-field/date-range/index.vue.mjs +70 -63
- package/es/src/ap-field/interface.d.ts +25 -27
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/radio/index.vue.d.ts +1 -2
- package/es/src/ap-field/radio/index.vue.mjs +36 -41
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/second/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +5 -4
- package/es/src/ap-field/select/index.vue.mjs +126 -112
- package/es/src/ap-field/select/read.vue2.mjs +4 -3
- package/es/src/ap-field/slider/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +232 -4
- package/es/src/ap-field/switch/index.vue.mjs +48 -42
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -4
- package/es/src/ap-form/item-group/index.vue.mjs +37 -42
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +66 -5
- package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -14
- package/es/src/ap-form/items/date/index.vue.d.ts +1497 -5
- package/es/src/ap-form/items/date/index.vue.mjs +25 -19
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1607 -5
- package/es/src/ap-form/items/date-range/index.vue.mjs +25 -19
- package/es/src/ap-form/items/number/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/radio/index.vue.d.ts +5 -10
- package/es/src/ap-form/items/radio/index.vue.mjs +14 -20
- package/es/src/ap-form/items/select/index.vue.d.ts +18 -12
- package/es/src/ap-form/items/switch/index.vue.d.ts +436 -5
- package/es/src/ap-form/items/switch/index.vue.mjs +24 -17
- package/es/src/ap-form/items/text/password.vue.d.ts +5 -5
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-table/constants.d.ts +1923 -112
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -36
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -27
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +78 -81
- package/es/src/config-provider/config-provider-props.d.ts +3 -1
- package/es/src/config-provider/config-provider.d.ts +7 -28
- package/es/src/config-provider/hooks/use-global-config.d.ts +3 -10
- package/es/src/config-provider/index.d.ts +13 -55
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1086 -6
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1155 -4
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +25 -27
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +1 -2
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/second/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +5 -4
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +232 -4
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -4
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +66 -5
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +1497 -5
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1607 -5
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/radio/index.vue.d.ts +5 -10
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +18 -12
- package/lib/src/ap-form/items/switch/index.vue.d.ts +436 -5
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +5 -5
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-table/constants.d.ts +1923 -112
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +3 -1
- package/lib/src/config-provider/config-provider.d.ts +7 -28
- package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -10
- package/lib/src/config-provider/index.d.ts +13 -55
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { DropdownButton as
|
|
4
|
-
import { usePermission as M } from "@aplus-frontend/hooks";
|
|
1
|
+
import { defineComponent as I, computed as t, useSlots as O, createBlock as l, createCommentVNode as j, openBlock as p, unref as r, mergeProps as f, createSlots as S, withCtx as n, createElementVNode as q, normalizeStyle as F, resolveDynamicComponent as g, h as k, createVNode as i, renderList as L, renderSlot as A, normalizeProps as v, guardReactiveProps as b, normalizeClass as H } from "vue";
|
|
2
|
+
import { DownOutlined as J } from "@ant-design/icons-vue";
|
|
3
|
+
import { DropdownButton as K, Dropdown as M } from "@aplus-frontend/antdv";
|
|
5
4
|
import { useInjectApTable as Q } from "../../ap-table/context.mjs";
|
|
6
5
|
import "../../ap-button/index.mjs";
|
|
7
6
|
import "../../config-provider/index.mjs";
|
|
@@ -9,9 +8,10 @@ import "./MenuItemGroup.vue.mjs";
|
|
|
9
8
|
import U from "./style/index.mjs";
|
|
10
9
|
import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
10
|
import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
12
|
import B from "./MenuItemGroup.vue2.mjs";
|
|
13
|
-
import
|
|
14
|
-
const
|
|
13
|
+
import Z from "../../ap-button/ap-button.vue.mjs";
|
|
14
|
+
const me = /* @__PURE__ */ I({
|
|
15
15
|
__name: "ApBatchActionGroup",
|
|
16
16
|
props: {
|
|
17
17
|
selectedRows: {},
|
|
@@ -19,19 +19,19 @@ const de = /* @__PURE__ */ O({
|
|
|
19
19
|
menuList: {}
|
|
20
20
|
},
|
|
21
21
|
setup(C, { expose: $ }) {
|
|
22
|
-
const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t:
|
|
22
|
+
const { b: h } = W("ap-batch-action-group"), D = U("ap-batch-action-group"), { t: G } = X(), { columns: R, dataSource: T } = Q(), e = C, N = Y("apExportGroup"), x = t(() => N.value?.hasPermission), y = O(), w = t(
|
|
23
23
|
() => e?.buttonProps?.dropdownType || "default"
|
|
24
|
-
), a =
|
|
24
|
+
), a = t(
|
|
25
25
|
() => e?.buttonProps?.type || "borderLink"
|
|
26
|
-
), P =
|
|
27
|
-
() => e?.buttonProps?.content ||
|
|
28
|
-
),
|
|
29
|
-
() => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ?
|
|
30
|
-
),
|
|
31
|
-
if (
|
|
26
|
+
), P = t(
|
|
27
|
+
() => e?.buttonProps?.content || G("ap.apApBatchActionGroup.batchOperation")
|
|
28
|
+
), z = t(() => e?.selectedRows || []), c = t(
|
|
29
|
+
() => e?.buttonProps?.disabled ?? (Array.isArray(e.selectedRows) ? z.value.length === 0 : !1)
|
|
30
|
+
), E = t(() => a.value === "borderLink" ? c.value ? void 0 : "var(--ap-button-border-link-color)" : void 0), u = t(() => e?.menuList?.filter((o) => {
|
|
31
|
+
if (o === "divider")
|
|
32
32
|
return !0;
|
|
33
|
-
let d =
|
|
34
|
-
return !
|
|
33
|
+
let d = o?.ifShow;
|
|
34
|
+
return !o?.ifShow && o?.auth && (d = () => x.value?.(o.auth)), d?.() ?? !0;
|
|
35
35
|
}) || []);
|
|
36
36
|
function _() {
|
|
37
37
|
return e?.buttonProps ? {
|
|
@@ -40,13 +40,13 @@ const de = /* @__PURE__ */ O({
|
|
|
40
40
|
} : {};
|
|
41
41
|
}
|
|
42
42
|
return $({
|
|
43
|
-
columns:
|
|
44
|
-
dataSource:
|
|
45
|
-
}), (
|
|
43
|
+
columns: R,
|
|
44
|
+
dataSource: T
|
|
45
|
+
}), (o, d) => u.value.length && w.value === "dropdown" ? (p(), l(r(K), f({
|
|
46
46
|
key: 0,
|
|
47
47
|
class: [r(h)(), r(D)]
|
|
48
48
|
}, {
|
|
49
|
-
...
|
|
49
|
+
...o.$attrs,
|
|
50
50
|
..._(),
|
|
51
51
|
disabled: c.value
|
|
52
52
|
}), S({
|
|
@@ -56,25 +56,25 @@ const de = /* @__PURE__ */ O({
|
|
|
56
56
|
}, { "menu-list": u.value }), null, 16, ["menu-list"])
|
|
57
57
|
]),
|
|
58
58
|
default: n(() => [
|
|
59
|
-
|
|
60
|
-
style:
|
|
61
|
-
color:
|
|
59
|
+
q("span", {
|
|
60
|
+
style: F({
|
|
61
|
+
color: E.value
|
|
62
62
|
})
|
|
63
63
|
}, [
|
|
64
|
-
(p(), l(k(
|
|
64
|
+
(p(), l(g(k("span", [P.value]))))
|
|
65
65
|
], 4)
|
|
66
66
|
]),
|
|
67
67
|
_: 2
|
|
68
68
|
}, [
|
|
69
|
-
|
|
69
|
+
L(y, (V, s) => ({
|
|
70
70
|
name: s,
|
|
71
71
|
fn: n((m) => [
|
|
72
|
-
A(
|
|
72
|
+
A(o.$slots, s, v(b(m || {})))
|
|
73
73
|
])
|
|
74
74
|
}))
|
|
75
|
-
]), 1040, ["class"])) : u.value.length && w.value === "default" ? (p(), l(r(
|
|
75
|
+
]), 1040, ["class"])) : u.value.length && w.value === "default" ? (p(), l(r(M), {
|
|
76
76
|
key: 1,
|
|
77
|
-
class:
|
|
77
|
+
class: H([r(h)()]),
|
|
78
78
|
disabled: c.value
|
|
79
79
|
}, S({
|
|
80
80
|
overlay: n(() => [
|
|
@@ -83,29 +83,29 @@ const de = /* @__PURE__ */ O({
|
|
|
83
83
|
}, { "menu-list": u.value }), null, 16, ["menu-list"])
|
|
84
84
|
]),
|
|
85
85
|
default: n(() => [
|
|
86
|
-
i(r(
|
|
87
|
-
...
|
|
86
|
+
i(r(Z), v(b({
|
|
87
|
+
...o.$attrs,
|
|
88
88
|
..._(),
|
|
89
89
|
type: a.value
|
|
90
90
|
})), {
|
|
91
91
|
default: n(() => [
|
|
92
|
-
(p(), l(k(
|
|
93
|
-
i(r(
|
|
92
|
+
(p(), l(g(k("span", [P.value])))),
|
|
93
|
+
i(r(J))
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 16)
|
|
97
97
|
]),
|
|
98
98
|
_: 2
|
|
99
99
|
}, [
|
|
100
|
-
|
|
100
|
+
L(y, (V, s) => ({
|
|
101
101
|
name: s,
|
|
102
102
|
fn: n((m) => [
|
|
103
|
-
A(
|
|
103
|
+
A(o.$slots, s, v(b(m || {})))
|
|
104
104
|
])
|
|
105
105
|
}))
|
|
106
|
-
]), 1032, ["class", "disabled"])) :
|
|
106
|
+
]), 1032, ["class", "disabled"])) : j("", !0);
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
me as default
|
|
111
111
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Space as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as T, computed as i, createBlock as r, openBlock as o, unref as p, normalizeProps as P, guardReactiveProps as R, withCtx as c, createElementBlock as m, Fragment as a, renderList as x, createCommentVNode as G, mergeProps as s, resolveDynamicComponent as _, h as y } from "vue";
|
|
2
|
+
import { Space as S } from "@aplus-frontend/antdv";
|
|
3
|
+
import { omit as n } from "lodash-unified";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../ap-button/ap-action-button.vue2.mjs";
|
|
6
6
|
import "../../ap-button/ap-button.vue2.mjs";
|
|
7
7
|
import "../ap-batch-action-group/ApBatchActionGroup.vue.mjs";
|
|
8
8
|
import "../ap-export-group/ApExportGroup.vue.mjs";
|
|
9
|
+
import { useGlobalConfig as B } from "../../config-provider/hooks/use-global-config.mjs";
|
|
9
10
|
import C from "../../ap-button/ap-button.vue.mjs";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
11
|
+
import b from "../../ap-button/ap-action-button.vue.mjs";
|
|
12
|
+
import g from "../ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
|
|
13
|
+
import L from "../ap-export-group/ApExportGroup.vue2.mjs";
|
|
14
|
+
const J = /* @__PURE__ */ T({
|
|
14
15
|
__name: "ApButtonGroup",
|
|
15
16
|
props: {
|
|
16
17
|
spaceProps: {},
|
|
@@ -18,48 +19,48 @@ const H = /* @__PURE__ */ v({
|
|
|
18
19
|
selectedRowKeys: {},
|
|
19
20
|
groupList: {}
|
|
20
21
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
22
|
+
setup(d) {
|
|
23
|
+
const h = B("apExportGroup"), v = i(() => h.value?.hasPermission), u = d, w = i(() => u.groupList);
|
|
23
24
|
function f(t) {
|
|
24
25
|
let l = t?.ifShow;
|
|
25
|
-
return !t?.ifShow && t?.auth && (l = () =>
|
|
26
|
+
return !t?.ifShow && t?.auth && (l = () => v.value?.(t.auth)), l?.() ?? !0;
|
|
26
27
|
}
|
|
27
|
-
return (t, l) => (o(), r(
|
|
28
|
+
return (t, l) => (o(), r(p(S), P(R(u.spaceProps ?? {})), {
|
|
28
29
|
default: c(() => [
|
|
29
|
-
(o(!0),
|
|
30
|
-
e.valueType === "button" && f(e) ? (o(), r(C,
|
|
30
|
+
(o(!0), m(a, null, x(w.value, (e, k) => (o(), m(a, { key: k }, [
|
|
31
|
+
e.valueType === "button" && f(e) ? (o(), r(C, s({
|
|
31
32
|
key: 0,
|
|
32
33
|
ref_for: !0
|
|
33
34
|
}, {
|
|
34
|
-
...
|
|
35
|
+
...p(n)(e, ["valueType", "ifShow", "auth"])
|
|
35
36
|
}), {
|
|
36
37
|
default: c(() => [
|
|
37
|
-
(o(), r(
|
|
38
|
+
(o(), r(_(y(a, [e?.content]))))
|
|
38
39
|
]),
|
|
39
40
|
_: 2
|
|
40
|
-
}, 1040)) : e.valueType === "actionButton" && f(e) ? (o(), r(
|
|
41
|
+
}, 1040)) : e.valueType === "actionButton" && f(e) ? (o(), r(b, s({
|
|
41
42
|
key: 1,
|
|
42
43
|
ref_for: !0
|
|
43
44
|
}, {
|
|
44
|
-
...
|
|
45
|
+
...p(n)(e, ["valueType", "ifShow", "auth"])
|
|
45
46
|
}), {
|
|
46
47
|
default: c(() => [
|
|
47
|
-
(o(), r(
|
|
48
|
+
(o(), r(_(y(a, [e?.content]))))
|
|
48
49
|
]),
|
|
49
50
|
_: 2
|
|
50
|
-
}, 1040)) : e.valueType === "batchActionGroup" ? (o(), r(
|
|
51
|
+
}, 1040)) : e.valueType === "batchActionGroup" ? (o(), r(g, s({
|
|
51
52
|
key: 2,
|
|
52
53
|
ref_for: !0
|
|
53
54
|
}, {
|
|
54
|
-
...
|
|
55
|
-
selectedRows:
|
|
56
|
-
}), null, 16)) : e.valueType === "exportGroup" ? (o(), r(
|
|
55
|
+
...p(n)(e, ["valueType"]),
|
|
56
|
+
selectedRows: u?.selectedRows
|
|
57
|
+
}), null, 16)) : e.valueType === "exportGroup" ? (o(), r(L, s({
|
|
57
58
|
key: 3,
|
|
58
59
|
ref_for: !0
|
|
59
60
|
}, {
|
|
60
|
-
...
|
|
61
|
-
selectedRowKeys:
|
|
62
|
-
}), null, 16)) :
|
|
61
|
+
...p(n)(e, ["valueType"]),
|
|
62
|
+
selectedRowKeys: u?.selectedRowKeys
|
|
63
|
+
}), null, 16)) : G("", !0)
|
|
63
64
|
], 64))), 128))
|
|
64
65
|
]),
|
|
65
66
|
_: 1
|
|
@@ -67,5 +68,5 @@ const H = /* @__PURE__ */ v({
|
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
J as default
|
|
71
72
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { defineComponent as ye, computed as
|
|
1
|
+
import { defineComponent as ye, computed as d, ref as Q, watch as ge, createVNode as m, createElementBlock as X, openBlock as c, Fragment as Y, createBlock as g, createCommentVNode as G, unref as t, mergeProps as V, withCtx as f, createTextVNode as _, toDisplayString as P, normalizeClass as K } from "vue";
|
|
2
2
|
import { DownOutlined as xe } from "@ant-design/icons-vue";
|
|
3
|
-
import { message as q, Space as ve, Tooltip as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { transformTableParamsNoTimezone as Ee, isObjectWithContent as A } from "@aplus-frontend/utils";
|
|
3
|
+
import { message as q, Space as ve, Tooltip as j, Dropdown as he, Menu as ke, MenuItem as Z } from "@aplus-frontend/antdv";
|
|
4
|
+
import { IconApAdLineAnnotation as B } from "@aplus-frontend/icon";
|
|
5
|
+
import { transformTableParamsNoTimezone as be, isObjectWithContent as A } from "@aplus-frontend/utils";
|
|
7
6
|
import { merge as N } from "lodash-unified";
|
|
8
7
|
import "../../ap-button/index.mjs";
|
|
9
|
-
import { useInjectApTable as
|
|
8
|
+
import { useInjectApTable as Ee } from "../../ap-table/context.mjs";
|
|
10
9
|
import "../../config-provider/index.mjs";
|
|
11
|
-
import { ApBatchActionGroup as
|
|
12
|
-
import { convertExportField as
|
|
13
|
-
import { handleExportDownload as
|
|
10
|
+
import { ApBatchActionGroup as we } from "../ap-batch-action-group/index.mjs";
|
|
11
|
+
import { convertExportField as De } from "./convertExportField.mjs";
|
|
12
|
+
import { handleExportDownload as Le } from "./handleExportDownload.mjs";
|
|
14
13
|
import { ApExportGroupActionType as x } from "./interface.mjs";
|
|
15
|
-
import
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
import { useLocale as
|
|
18
|
-
import { useGlobalConfig as
|
|
14
|
+
import Re from "./style/index.mjs";
|
|
15
|
+
import { useNamespace as Se } from "../../config-provider/hooks/use-namespace.mjs";
|
|
16
|
+
import { useLocale as Ce } from "../../config-provider/hooks/use-locale.mjs";
|
|
17
|
+
import { useGlobalConfig as Ge } from "../../config-provider/hooks/use-global-config.mjs";
|
|
19
18
|
import $ from "../../ap-button/ap-button.vue.mjs";
|
|
20
|
-
const
|
|
19
|
+
const Je = /* @__PURE__ */ ye({
|
|
21
20
|
__name: "ApExportGroup",
|
|
22
21
|
props: {
|
|
23
22
|
type: {
|
|
@@ -52,34 +51,32 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
52
51
|
handleExported: {}
|
|
53
52
|
},
|
|
54
53
|
setup(ee) {
|
|
55
|
-
const {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
columns: U,
|
|
59
|
-
dataSource: W,
|
|
54
|
+
const s = ee, {
|
|
55
|
+
columns: z,
|
|
56
|
+
dataSource: U,
|
|
60
57
|
getSearchFormValues: te,
|
|
61
58
|
getLastParams: ae
|
|
62
|
-
} =
|
|
59
|
+
} = Ee(), {
|
|
63
60
|
b: v
|
|
64
|
-
} =
|
|
61
|
+
} = Se("ap-export-group"), h = Re("ap-export-group"), {
|
|
65
62
|
t: i
|
|
66
|
-
} =
|
|
63
|
+
} = Ce(), T = Ge("apExportGroup"), W = d(() => T.value?.hasPermission), H = d(() => T?.value?.exportField), J = d(() => T?.value?.dateValidate), oe = d(() => T?.value?.handleExported), k = d(() => J.value === !0 ? {
|
|
67
64
|
maxDayRange: 90,
|
|
68
65
|
smartIdentify: !0,
|
|
69
66
|
enableMessage: !0
|
|
70
|
-
} : J.value), b =
|
|
67
|
+
} : J.value), b = d(() => s?.dateValidate === !0 ? {
|
|
71
68
|
maxDayRange: 90,
|
|
72
69
|
smartIdentify: !0,
|
|
73
70
|
enableMessage: !0
|
|
74
|
-
} : s?.dateValidate), S = Q(!1), I = Q(!1), C =
|
|
71
|
+
} : s?.dateValidate), S = Q(!1), I = Q(!1), C = d(() => !!s?.disabled || (U !== void 0 ? !U?.value?.length : !1) || S.value), ne = (e) => e === void 0 ? !1 : typeof e == "object" ? N({}, e) : e === !0 ? {} : e, E = (...e) => {
|
|
75
72
|
let a = !1;
|
|
76
73
|
for (const o of e)
|
|
77
74
|
if (o !== void 0)
|
|
78
75
|
if (o === !1)
|
|
79
76
|
a = !1;
|
|
80
77
|
else {
|
|
81
|
-
const
|
|
82
|
-
|
|
78
|
+
const l = ne(o);
|
|
79
|
+
l !== !1 && (a = a === !1 ? l : N({}, a, l));
|
|
83
80
|
}
|
|
84
81
|
return a;
|
|
85
82
|
};
|
|
@@ -88,7 +85,7 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
88
85
|
}, {
|
|
89
86
|
immediate: !0
|
|
90
87
|
});
|
|
91
|
-
const se =
|
|
88
|
+
const se = d(() => s?.successMessage === !0 ? i("ap.apExportGroup.exportSuccess") : s?.successMessage ? s.successMessage : ""), le = (e = s?.exportField) => {
|
|
92
89
|
const a = "exportFieldList", o = e ?? (H.value === "" ? !0 : H.value) ?? !1;
|
|
93
90
|
return o === !0 ? {
|
|
94
91
|
key: a
|
|
@@ -96,14 +93,14 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
96
93
|
...o,
|
|
97
94
|
key: o.key ?? a
|
|
98
95
|
} : o;
|
|
99
|
-
},
|
|
96
|
+
}, re = {
|
|
100
97
|
textAlign: "center"
|
|
101
|
-
},
|
|
98
|
+
}, F = d(() => s?.selectedRowKeys || []), O = d(() => {
|
|
102
99
|
let e = s?.ifShow;
|
|
103
|
-
return !s?.ifShow && s?.auth && (e = () =>
|
|
100
|
+
return !s?.ifShow && s?.auth && (e = () => W.value?.(s.auth)), e?.() ?? !0;
|
|
104
101
|
});
|
|
105
102
|
async function ue() {
|
|
106
|
-
|
|
103
|
+
F.value.length > 0 ? M({
|
|
107
104
|
key: x.SELECT
|
|
108
105
|
}) : M({
|
|
109
106
|
key: x.ALL
|
|
@@ -114,24 +111,24 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
114
111
|
option: a
|
|
115
112
|
}) {
|
|
116
113
|
const o = N({}, s, a || {}), {
|
|
117
|
-
getRequestParams:
|
|
114
|
+
getRequestParams: l,
|
|
118
115
|
request: D
|
|
119
|
-
} = o || {}, n = ae?.()?.sort,
|
|
116
|
+
} = o || {}, n = ae?.()?.sort, r = n ? be({
|
|
120
117
|
sort: n
|
|
121
|
-
}) : {}, u =
|
|
118
|
+
}) : {}, u = le(o?.exportField);
|
|
122
119
|
let p = {};
|
|
123
120
|
e === x.SELECT ? p = {
|
|
124
|
-
[o?.idKey || "ids"]:
|
|
125
|
-
} : e === x.ALL && (p =
|
|
121
|
+
[o?.idKey || "ids"]: F.value
|
|
122
|
+
} : e === x.ALL && (p = l?.() || te?.(!0) || {});
|
|
126
123
|
const y = o?.getInitialParams?.() || {};
|
|
127
124
|
try {
|
|
128
125
|
S.value = !0;
|
|
129
126
|
let L = Object.assign({
|
|
130
127
|
...p,
|
|
131
128
|
...y,
|
|
132
|
-
...
|
|
133
|
-
}, u &&
|
|
134
|
-
[u.key]:
|
|
129
|
+
...r
|
|
130
|
+
}, u && z?.value ? {
|
|
131
|
+
[u.key]: De(z.value, u?.convertField)
|
|
135
132
|
} : {});
|
|
136
133
|
L = o?.beforeRequest?.(L) || L;
|
|
137
134
|
const R = E(k.value, b.value, a?.dateValidate);
|
|
@@ -139,15 +136,15 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
139
136
|
params: L,
|
|
140
137
|
dateValidate: R
|
|
141
138
|
});
|
|
142
|
-
const me = await
|
|
139
|
+
const me = await Le(async () => await D?.(L));
|
|
143
140
|
o?.successMessage && q.success(se.value), (o?.handleExported || oe.value)?.(me, L);
|
|
144
141
|
} finally {
|
|
145
142
|
S.value = !1;
|
|
146
143
|
}
|
|
147
144
|
}
|
|
148
|
-
const w =
|
|
145
|
+
const w = d(() => s?.groupList?.filter((e) => {
|
|
149
146
|
let a = e?.ifShow;
|
|
150
|
-
return !e?.ifShow && e?.auth && (a = () =>
|
|
147
|
+
return !e?.ifShow && e?.auth && (a = () => W.value?.(e.auth)), a?.() ?? !0;
|
|
151
148
|
})?.map((e, a) => ({
|
|
152
149
|
key: a,
|
|
153
150
|
content: e?.text,
|
|
@@ -156,7 +153,7 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
156
153
|
disabled: e?.disabled,
|
|
157
154
|
dateValidate: e?.dateValidate,
|
|
158
155
|
onClick: () => {
|
|
159
|
-
|
|
156
|
+
F.value.length > 0 ? M({
|
|
160
157
|
key: x.SELECT,
|
|
161
158
|
option: e
|
|
162
159
|
}) : M({
|
|
@@ -169,12 +166,12 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
169
166
|
return m(ve, {
|
|
170
167
|
size: 4
|
|
171
168
|
}, {
|
|
172
|
-
default: () => [m("span", null, [s?.buttonProps?.content ?? i("ap.apExportGroup.export")]), e !== !1 && A(e) ? m(
|
|
169
|
+
default: () => [m("span", null, [s?.buttonProps?.content ?? i("ap.apExportGroup.export")]), e !== !1 && A(e) ? m(j, {
|
|
173
170
|
title: i("ap.apExportGroup.maxMessage", {
|
|
174
171
|
maxDayRange: e.maxDayRange ?? 90
|
|
175
172
|
})
|
|
176
173
|
}, {
|
|
177
|
-
default: () => [m(
|
|
174
|
+
default: () => [m(B, {
|
|
178
175
|
class: [v("icon"), h.value]
|
|
179
176
|
}, null)]
|
|
180
177
|
}) : null]
|
|
@@ -183,10 +180,10 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
183
180
|
...a,
|
|
184
181
|
[o]: e?.[o]
|
|
185
182
|
} : a, {}), de = (e) => {
|
|
186
|
-
const a = Object.keys(e), o = [],
|
|
183
|
+
const a = Object.keys(e), o = [], l = /* @__PURE__ */ new Set(), D = [];
|
|
187
184
|
for (let n = 0; n < a.length; n++)
|
|
188
|
-
for (let
|
|
189
|
-
const u = a[n], p = a[
|
|
185
|
+
for (let r = n + 1; r < a.length; r++) {
|
|
186
|
+
const u = a[n], p = a[r];
|
|
190
187
|
let y = "";
|
|
191
188
|
const L = Math.min(u.length, p.length);
|
|
192
189
|
for (let R = 0; R < L && u[R] === p[R]; R++)
|
|
@@ -199,14 +196,14 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
199
196
|
diff: Math.abs(e[u] - e[p])
|
|
200
197
|
});
|
|
201
198
|
}
|
|
202
|
-
D.sort((n,
|
|
199
|
+
D.sort((n, r) => r.length !== n.length ? r.length - n.length : n.diff - r.diff);
|
|
203
200
|
for (const n of D)
|
|
204
|
-
if (!
|
|
205
|
-
const
|
|
201
|
+
if (!l.has(n.key1) && !l.has(n.key2)) {
|
|
202
|
+
const r = e[n.key1], u = e[n.key2];
|
|
206
203
|
o.push({
|
|
207
|
-
startKey:
|
|
208
|
-
endKey:
|
|
209
|
-
}),
|
|
204
|
+
startKey: r < u ? n.key1 : n.key2,
|
|
205
|
+
endKey: r < u ? n.key2 : n.key1
|
|
206
|
+
}), l.add(n.key1), l.add(n.key2);
|
|
210
207
|
}
|
|
211
208
|
return o;
|
|
212
209
|
}, ce = ({
|
|
@@ -219,17 +216,17 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
219
216
|
}) => {
|
|
220
217
|
if (a.enableMessage === !1)
|
|
221
218
|
return;
|
|
222
|
-
const o = a.maxDayRange ?? 90,
|
|
219
|
+
const o = a.maxDayRange ?? 90, l = pe(e), D = [...a.smartIdentify ?? !0 ? de(l) : [], ...a.dateKeyList?.filter((n) => l[n.startKey || ""] && l[n.endKey || ""]) ?? []];
|
|
223
220
|
if (D.length === 0) {
|
|
224
221
|
q.warn(a?.emptyTooltip ?? i("ap.apExportGroup.emptyTooltip", {
|
|
225
222
|
maxDayRange: o
|
|
226
223
|
}));
|
|
227
224
|
return;
|
|
228
225
|
} else if (D.some(({
|
|
229
|
-
startKey:
|
|
226
|
+
startKey: r,
|
|
230
227
|
endKey: u
|
|
231
228
|
}) => {
|
|
232
|
-
const p = r
|
|
229
|
+
const p = l[r || ""], y = l[u || ""];
|
|
233
230
|
return p !== void 0 && y !== void 0 && !ce({
|
|
234
231
|
startTime: p,
|
|
235
232
|
endTime: y,
|
|
@@ -242,7 +239,7 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
242
239
|
return;
|
|
243
240
|
}
|
|
244
241
|
};
|
|
245
|
-
return (e, a) => (
|
|
242
|
+
return (e, a) => (c(), X(Y, null, [O.value && s.type === "button" ? (c(), g(t($), V({
|
|
246
243
|
key: 0
|
|
247
244
|
}, {
|
|
248
245
|
...e.$attrs
|
|
@@ -253,65 +250,65 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
253
250
|
"min-width": "",
|
|
254
251
|
onClick: ue
|
|
255
252
|
}), {
|
|
256
|
-
default:
|
|
253
|
+
default: f(() => [_(P(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value)) ? (c(), g(t(j), {
|
|
257
254
|
key: 0,
|
|
258
255
|
title: t(i)("ap.apExportGroup.maxMessage", {
|
|
259
256
|
maxDayRange: E(k.value, b.value).maxDayRange ?? 90
|
|
260
257
|
})
|
|
261
258
|
}, {
|
|
262
|
-
default:
|
|
263
|
-
class:
|
|
259
|
+
default: f(() => [m(t(B), {
|
|
260
|
+
class: K([t(v)("icon"), t(h)])
|
|
264
261
|
}, null, 8, ["class"])]),
|
|
265
262
|
_: 1
|
|
266
263
|
}, 8, ["title"])) : G("", !0)]),
|
|
267
264
|
_: 1
|
|
268
|
-
}, 16, ["class", "disabled", "loading"])) : G("", !0), O.value && s.type === "dropdown" ? (
|
|
265
|
+
}, 16, ["class", "disabled", "loading"])) : G("", !0), O.value && s.type === "dropdown" ? (c(), g(t(he), {
|
|
269
266
|
key: 1,
|
|
270
267
|
open: I.value,
|
|
271
268
|
"onUpdate:open": a[0] || (a[0] = (o) => I.value = o),
|
|
272
|
-
class:
|
|
273
|
-
"overlay-style":
|
|
269
|
+
class: K([t(v)(), t(h)]),
|
|
270
|
+
"overlay-style": re,
|
|
274
271
|
disabled: C.value
|
|
275
272
|
}, {
|
|
276
|
-
overlay:
|
|
273
|
+
overlay: f(() => [m(t(ke), {
|
|
277
274
|
onClick: M
|
|
278
275
|
}, {
|
|
279
|
-
default:
|
|
276
|
+
default: f(() => [(c(), g(t(Z), {
|
|
280
277
|
key: t(x).SELECT,
|
|
281
|
-
disabled:
|
|
278
|
+
disabled: F.value?.length === 0
|
|
282
279
|
}, {
|
|
283
|
-
default:
|
|
280
|
+
default: f(() => [_(P(t(i)("ap.apExportGroup.exportSelected")), 1)]),
|
|
284
281
|
_: 1
|
|
285
|
-
}, 8, ["disabled"])), (
|
|
282
|
+
}, 8, ["disabled"])), (c(), g(t(Z), {
|
|
286
283
|
key: t(x).ALL
|
|
287
284
|
}, {
|
|
288
|
-
default:
|
|
285
|
+
default: f(() => [_(P(t(i)("ap.apExportGroup.exportAll")), 1)]),
|
|
289
286
|
_: 1
|
|
290
287
|
}))]),
|
|
291
288
|
_: 1
|
|
292
289
|
})]),
|
|
293
|
-
default:
|
|
290
|
+
default: f(() => [m(t($), V({
|
|
294
291
|
...e.$attrs
|
|
295
292
|
}, {
|
|
296
293
|
loading: S.value
|
|
297
294
|
}), {
|
|
298
|
-
default:
|
|
295
|
+
default: f(() => [_(P(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value)) ? (c(), g(t(j), {
|
|
299
296
|
key: 0,
|
|
300
297
|
title: t(i)("ap.apExportGroup.maxMessage", {
|
|
301
298
|
maxDayRange: E(k.value, b.value).maxDayRange ?? 90
|
|
302
299
|
})
|
|
303
300
|
}, {
|
|
304
|
-
default:
|
|
305
|
-
class:
|
|
301
|
+
default: f(() => [m(t(B), {
|
|
302
|
+
class: K([t(v)("icon"), t(h)])
|
|
306
303
|
}, null, 8, ["class"])]),
|
|
307
304
|
_: 1
|
|
308
305
|
}, 8, ["title"])) : G("", !0), m(t(xe))]),
|
|
309
306
|
_: 1
|
|
310
307
|
}, 16, ["loading"])]),
|
|
311
308
|
_: 1
|
|
312
|
-
}, 8, ["open", "class", "disabled"])) : G("", !0), O.value && s.type === "group" ? (
|
|
309
|
+
}, 8, ["open", "class", "disabled"])) : G("", !0), O.value && s.type === "group" ? (c(), X(Y, {
|
|
313
310
|
key: 2
|
|
314
|
-
}, [w.value.length === 1 ? (
|
|
311
|
+
}, [w.value.length === 1 ? (c(), g(t($), V({
|
|
315
312
|
key: 0
|
|
316
313
|
}, {
|
|
317
314
|
...e.$attrs
|
|
@@ -322,19 +319,19 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
322
319
|
"min-width": "",
|
|
323
320
|
onClick: w.value?.[0]?.onClick
|
|
324
321
|
}), {
|
|
325
|
-
default:
|
|
322
|
+
default: f(() => [_(P(w.value?.[0]?.content ?? s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(A)(E(k.value, b.value, w.value?.[0]?.dateValidate)) ? (c(), g(t(j), {
|
|
326
323
|
key: 0,
|
|
327
324
|
title: t(i)("ap.apExportGroup.maxMessage", {
|
|
328
325
|
maxDayRange: E(k.value, b.value, w.value?.[0]?.dateValidate).maxDayRange ?? 90
|
|
329
326
|
})
|
|
330
327
|
}, {
|
|
331
|
-
default:
|
|
332
|
-
class:
|
|
328
|
+
default: f(() => [m(t(B), {
|
|
329
|
+
class: K([t(v)("icon"), t(h)])
|
|
333
330
|
}, null, 8, ["class"])]),
|
|
334
331
|
_: 1
|
|
335
332
|
}, 8, ["title"])) : G("", !0)]),
|
|
336
333
|
_: 1
|
|
337
|
-
}, 16, ["class", "disabled", "loading", "onClick"])) : (
|
|
334
|
+
}, 16, ["class", "disabled", "loading", "onClick"])) : (c(), g(t(we), V({
|
|
338
335
|
key: 1
|
|
339
336
|
}, {
|
|
340
337
|
...e.$attrs
|
|
@@ -352,5 +349,5 @@ const Xe = /* @__PURE__ */ ye({
|
|
|
352
349
|
}
|
|
353
350
|
});
|
|
354
351
|
export {
|
|
355
|
-
|
|
352
|
+
Je as default
|
|
356
353
|
};
|
|
@@ -21,7 +21,9 @@ type ApProCardConfig = {
|
|
|
21
21
|
type ApImageConfig = Pick<ApImageProps, 'uiMode'>;
|
|
22
22
|
type ApTitleConfig = Pick<ApTitleProps, 'uiMode'>;
|
|
23
23
|
type ApFilePreviewConfig = Pick<ApFilePreviewProps, 'parserPlugin'>;
|
|
24
|
-
type ApExportGroupConfig = Pick<ApExportGroupListItem, 'dateValidate' | 'exportField' | 'handleExported'
|
|
24
|
+
type ApExportGroupConfig = Pick<ApExportGroupListItem, 'dateValidate' | 'exportField' | 'handleExported'> & {
|
|
25
|
+
hasPermission?: any;
|
|
26
|
+
};
|
|
25
27
|
export declare const configProviderProps: () => {
|
|
26
28
|
iconPrefixCls: StringConstructor;
|
|
27
29
|
getTargetContainer: {
|