@aplus-frontend/ui 0.3.0 → 0.3.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/ap-action/item/index.vue2.mjs +11 -11
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
- package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
- package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
- package/es/src/ap-field/date/index.vue.mjs +2 -2
- package/es/src/ap-field/date-range/index.vue.mjs +2 -2
- package/es/src/ap-field/number/index.vue.mjs +3 -3
- package/es/src/ap-field/radio/index.vue.mjs +5 -5
- package/es/src/ap-field/rate/index.vue.mjs +4 -4
- package/es/src/ap-field/segmented/index.vue.mjs +3 -3
- package/es/src/ap-field/select/index.vue.mjs +4 -4
- package/es/src/ap-field/slider/index.vue.mjs +3 -3
- package/es/src/ap-field/switch/index.vue.mjs +4 -4
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +5 -6
- package/es/src/ap-form/ap-form.vue2.mjs +5 -5
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
- package/es/src/ap-form/interface.d.ts +12 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +5 -5
- package/es/src/ap-form/search-form/index.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
- package/es/src/ap-list/index.vue.mjs +27 -27
- package/es/src/ap-modal/utils/createModal.mjs +10 -10
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
- package/es/src/ap-table/ap-table.vue2.mjs +3 -3
- package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
- package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
- package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
- package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +57 -8
- package/es/src/ap-upload/apUpload.vue.mjs +56 -37
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
- package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-group-search/index.d.ts +1 -1
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
- package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/interface.d.ts +2 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
- package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
- package/es/src/business/batch-input-group/index.vue.mjs +5 -5
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/editable-table/form-item.vue.mjs +3 -3
- package/es/src/editable-table/index.vue.mjs +6 -6
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +5 -6
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +12 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +5 -5
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +57 -8
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +1 -1
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as
|
|
2
|
-
import
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { IconVariantDownload as
|
|
5
|
-
import { LoadingOutlined as
|
|
1
|
+
import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as C, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as U, toDisplayString as z } from "vue";
|
|
2
|
+
import G from "./icons/file-icon.vue.mjs";
|
|
3
|
+
import { Tooltip as P, TypographyText as q } from "@aplus-frontend/antdv";
|
|
4
|
+
import { IconVariantDownload as H } from "@aplus-frontend/icon";
|
|
5
|
+
import { LoadingOutlined as J } from "@ant-design/icons-vue";
|
|
6
6
|
import "../ap-title/ApTitle.vue.mjs";
|
|
7
7
|
import "../../ap-download/ap-download.vue2.mjs";
|
|
8
8
|
import "../../config-provider/index.mjs";
|
|
9
|
-
import { getFileInfo as
|
|
10
|
-
import { useNamespace as
|
|
9
|
+
import { getFileInfo as K } from "./utils/index.mjs";
|
|
10
|
+
import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
12
|
import { useGlobalConfig as w } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
13
|
import R from "../ap-title/ApTitle.vue2.mjs";
|
|
@@ -23,38 +23,38 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
23
23
|
column: { default: 2 },
|
|
24
24
|
isFileAreaBorder: { type: Boolean, default: !1 }
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { b:
|
|
26
|
+
setup($) {
|
|
27
|
+
const { b: x, e: a, em: k } = M("ap-appendix"), { t: y } = Q(), e = $, B = w("apUpload"), N = w(
|
|
28
28
|
"downloadCenterTriggerConfig"
|
|
29
29
|
), f = d(
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
30
|
+
() => K(e == null ? void 0 : e.needName, (e == null ? void 0 : e.fileList) ?? [])
|
|
31
|
+
), b = d(
|
|
32
32
|
() => {
|
|
33
33
|
var l;
|
|
34
|
-
return e.getOssAccess || ((l =
|
|
34
|
+
return e.getOssAccess || ((l = B.value) == null ? void 0 : l.getOssAccess);
|
|
35
35
|
}
|
|
36
36
|
), F = d(
|
|
37
37
|
() => !(Array.isArray(f.value) && f.value.length)
|
|
38
|
-
),
|
|
38
|
+
), i = V([]), O = d(() => e.title || y("ap.apAppendix.appendix"));
|
|
39
39
|
async function I(l, m) {
|
|
40
|
-
var o,
|
|
41
|
-
if (!(
|
|
42
|
-
|
|
40
|
+
var o, A;
|
|
41
|
+
if (!(i.value.findIndex((r) => r === m) > -1)) {
|
|
42
|
+
i.value = [...i.value, m];
|
|
43
43
|
try {
|
|
44
|
-
if ((o =
|
|
44
|
+
if ((o = N.value) != null && o.trigger) {
|
|
45
45
|
let r = [l].map((_) => ({
|
|
46
46
|
objectName: _.path,
|
|
47
47
|
fileName: _.fileName
|
|
48
48
|
}));
|
|
49
|
-
await ((
|
|
49
|
+
await ((A = N.value) == null ? void 0 : A.trigger(r));
|
|
50
50
|
}
|
|
51
51
|
} finally {
|
|
52
|
-
|
|
52
|
+
i.value = i.value.filter((r) => r !== m);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return (l, m) => (s(), u("div", S({
|
|
57
|
-
class: [t(
|
|
57
|
+
class: [t(x)()]
|
|
58
58
|
}, {
|
|
59
59
|
...l.$attrs
|
|
60
60
|
}, {
|
|
@@ -66,12 +66,12 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
66
66
|
fileList: e.fileList
|
|
67
67
|
}, () => [
|
|
68
68
|
g(R, {
|
|
69
|
-
title:
|
|
70
|
-
|
|
69
|
+
title: O.value,
|
|
70
|
+
"help-message": e == null ? void 0 : e.tooltip
|
|
71
71
|
}, {
|
|
72
72
|
suffix: v(() => [
|
|
73
73
|
c("div", {
|
|
74
|
-
class: n([t(
|
|
74
|
+
class: n([t(a)("suffix")])
|
|
75
75
|
}, [
|
|
76
76
|
p(l.$slots, "titleSuffix", {
|
|
77
77
|
fileList: e.fileList
|
|
@@ -79,23 +79,23 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
79
79
|
p(l.$slots, "titleDownloadAllBtn", {
|
|
80
80
|
fileList: e.fileList
|
|
81
81
|
}, () => [
|
|
82
|
-
F.value ? h("", !0) : (s(),
|
|
82
|
+
F.value ? h("", !0) : (s(), C(W, {
|
|
83
83
|
key: 0,
|
|
84
|
-
class: n([t(
|
|
84
|
+
class: n([t(a)("download-all")]),
|
|
85
85
|
text: t(y)("ap.apAppendix.downloadAll"),
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
"get-oss-access": b.value,
|
|
87
|
+
"file-name": f.value
|
|
88
88
|
}, {
|
|
89
89
|
icon: v(() => [
|
|
90
|
-
g(t(
|
|
90
|
+
g(t(H))
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
|
-
}, 8, ["class", "text", "
|
|
93
|
+
}, 8, ["class", "text", "get-oss-access", "file-name"]))
|
|
94
94
|
])
|
|
95
95
|
], 2)
|
|
96
96
|
]),
|
|
97
97
|
_: 3
|
|
98
|
-
}, 8, ["title", "
|
|
98
|
+
}, 8, ["title", "help-message"])
|
|
99
99
|
]),
|
|
100
100
|
p(l.$slots, "fileArea", {
|
|
101
101
|
fileList: e.fileList
|
|
@@ -103,50 +103,50 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
|
|
|
103
103
|
F.value ? h("", !0) : (s(), u("div", {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: n({
|
|
106
|
-
[t(
|
|
107
|
-
[t(
|
|
106
|
+
[t(a)("file-area")]: !0,
|
|
107
|
+
[t(k)("file-area", "border")]: !!e.isFileAreaBorder
|
|
108
108
|
})
|
|
109
109
|
}, [
|
|
110
110
|
c("div", {
|
|
111
|
-
class: n([t(
|
|
111
|
+
class: n([t(a)("file-area-content")])
|
|
112
112
|
}, [
|
|
113
|
-
(s(!0), u(j, null, D(f.value, (
|
|
113
|
+
(s(!0), u(j, null, D(f.value, (L, o) => (s(), u("div", {
|
|
114
|
+
key: o,
|
|
114
115
|
class: n({
|
|
115
|
-
[t(
|
|
116
|
-
[t(
|
|
117
|
-
})
|
|
118
|
-
key: o
|
|
116
|
+
[t(a)("file-area-content-item")]: !0,
|
|
117
|
+
[t(k)("file-area-content-item", "loading")]: i.value.includes(o)
|
|
118
|
+
})
|
|
119
119
|
}, [
|
|
120
|
-
g(t(
|
|
120
|
+
g(t(P), null, E({
|
|
121
121
|
default: v(() => [
|
|
122
122
|
c("div", {
|
|
123
123
|
class: n({
|
|
124
|
-
[t(
|
|
125
|
-
[t(
|
|
124
|
+
[t(a)("file-area-content-item-content")]: !0,
|
|
125
|
+
[t(a)("file-area-content-item--loading-content")]: i.value.includes(o)
|
|
126
126
|
}),
|
|
127
|
-
onClick: (
|
|
127
|
+
onClick: (A) => I(L, o)
|
|
128
128
|
}, [
|
|
129
129
|
c("div", {
|
|
130
|
-
class: n([t(
|
|
130
|
+
class: n([t(a)("file-area-content-item-icon")])
|
|
131
131
|
}, [
|
|
132
|
-
|
|
132
|
+
i.value.includes(o) ? (s(), C(t(J), { key: 0 })) : (s(), C(G, { key: 1 }))
|
|
133
133
|
], 2),
|
|
134
134
|
c("div", {
|
|
135
|
-
class: n([t(
|
|
135
|
+
class: n([t(a)("file-area-content-item-file-name")])
|
|
136
136
|
}, [
|
|
137
|
-
g(t(
|
|
137
|
+
g(t(q), {
|
|
138
138
|
ellipsis: "",
|
|
139
|
-
content:
|
|
139
|
+
content: L.fileName
|
|
140
140
|
}, null, 8, ["content"])
|
|
141
141
|
], 2)
|
|
142
142
|
], 10, X)
|
|
143
143
|
]),
|
|
144
144
|
_: 2
|
|
145
145
|
}, [
|
|
146
|
-
|
|
146
|
+
i.value.includes(o) ? void 0 : {
|
|
147
147
|
name: "title",
|
|
148
148
|
fn: v(() => [
|
|
149
|
-
|
|
149
|
+
U(z(t(y)("ap.apAppendix.downloadFile")), 1)
|
|
150
150
|
]),
|
|
151
151
|
key: "0"
|
|
152
152
|
}
|
|
@@ -18,7 +18,7 @@ const ee = /* @__PURE__ */ A({
|
|
|
18
18
|
menuList: {}
|
|
19
19
|
},
|
|
20
20
|
setup(P) {
|
|
21
|
-
const { b: i } = S("ap-batch-action-group"), { t:
|
|
21
|
+
const { b: i } = S("ap-batch-action-group"), { t: _ } = F(), e = P, g = O("uiMode"), { hasPermission: k } = M(), p = n(
|
|
22
22
|
() => {
|
|
23
23
|
var t;
|
|
24
24
|
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
|
|
@@ -31,24 +31,24 @@ const ee = /* @__PURE__ */ A({
|
|
|
31
31
|
), f = n(
|
|
32
32
|
() => {
|
|
33
33
|
var t;
|
|
34
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) ||
|
|
34
|
+
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || _("ap.apApBatchActionGroup.batchOperation");
|
|
35
35
|
}
|
|
36
|
-
),
|
|
36
|
+
), B = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
|
|
37
37
|
() => {
|
|
38
38
|
var t;
|
|
39
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ?
|
|
39
|
+
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? B.value.length === 0 : !1);
|
|
40
40
|
}
|
|
41
|
-
),
|
|
41
|
+
), L = n(() => {
|
|
42
42
|
const t = {
|
|
43
43
|
aplus: "#0070FF",
|
|
44
44
|
admin: "#34b77c"
|
|
45
45
|
};
|
|
46
|
-
return u.value === "borderLink" ? d.value ? void 0 : t[
|
|
46
|
+
return u.value === "borderLink" ? d.value ? void 0 : t[g.value] || t.aplus : void 0;
|
|
47
47
|
}), l = n(() => {
|
|
48
48
|
var t;
|
|
49
49
|
return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
|
|
50
50
|
let s = o == null ? void 0 : o.ifShow;
|
|
51
|
-
return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () =>
|
|
51
|
+
return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => k(o.auth)), (s == null ? void 0 : s()) ?? !0;
|
|
52
52
|
})) || [];
|
|
53
53
|
});
|
|
54
54
|
function b() {
|
|
@@ -68,12 +68,12 @@ const ee = /* @__PURE__ */ A({
|
|
|
68
68
|
overlay: r(() => [
|
|
69
69
|
c(w, m({
|
|
70
70
|
...e
|
|
71
|
-
}, {
|
|
71
|
+
}, { "menu-list": l.value }), null, 16, ["menu-list"])
|
|
72
72
|
]),
|
|
73
73
|
default: r(() => [
|
|
74
74
|
C("span", {
|
|
75
75
|
style: D({
|
|
76
|
-
color:
|
|
76
|
+
color: L.value
|
|
77
77
|
})
|
|
78
78
|
}, h(f.value), 5)
|
|
79
79
|
]),
|
|
@@ -86,7 +86,7 @@ const ee = /* @__PURE__ */ A({
|
|
|
86
86
|
overlay: r(() => [
|
|
87
87
|
c(w, m({
|
|
88
88
|
...e
|
|
89
|
-
}, {
|
|
89
|
+
}, { "menu-list": l.value }), null, 16, ["menu-list"])
|
|
90
90
|
]),
|
|
91
91
|
default: r(() => [
|
|
92
92
|
c(a(E), R(T({
|
|
@@ -85,8 +85,8 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
|
|
|
85
85
|
y.value ? (a(), g(t(Q), {
|
|
86
86
|
key: 0,
|
|
87
87
|
size: "small",
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
style: { "font-size": "12px", "padding-left": "16px" },
|
|
89
|
+
onClick: d[0] || (d[0] = (i) => R())
|
|
90
90
|
}, {
|
|
91
91
|
default: m(() => [
|
|
92
92
|
b("span", {
|
|
@@ -101,10 +101,10 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
|
|
|
101
101
|
]),
|
|
102
102
|
message: m(() => [
|
|
103
103
|
b("div", {
|
|
104
|
-
style: c({ ...D.value, ...e.contentStyle }),
|
|
105
|
-
class: s(t(o)("alertContent")),
|
|
106
104
|
ref_key: "ellipsisBoxRef",
|
|
107
|
-
ref: u
|
|
105
|
+
ref: u,
|
|
106
|
+
style: c({ ...D.value, ...e.contentStyle }),
|
|
107
|
+
class: s(t(o)("alertContent"))
|
|
108
108
|
}, [
|
|
109
109
|
N(e.$slots, "default", {}, () => [
|
|
110
110
|
t(E)(e.prefix) ? (a(), n("span", {
|
|
@@ -32,33 +32,33 @@ const oe = /* @__PURE__ */ B({
|
|
|
32
32
|
return b.value ? "" : t[_.value] || t.aplus;
|
|
33
33
|
}), b = l(() => !!(e != null && e.disabled)), A = l(() => (e == null ? void 0 : e.successMessage) === !0 ? n("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), G = {
|
|
34
34
|
textAlign: "center"
|
|
35
|
-
}, c = D(!1),
|
|
35
|
+
}, c = D(!1), v = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
|
|
36
36
|
let t = e == null ? void 0 : e.ifShow;
|
|
37
37
|
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => C(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
38
38
|
});
|
|
39
39
|
async function k({ key: t }) {
|
|
40
|
-
var
|
|
41
|
-
const { getRequestParams:
|
|
40
|
+
var w, h;
|
|
41
|
+
const { getRequestParams: r, request: o } = e || {};
|
|
42
42
|
let d = {};
|
|
43
43
|
t === i.SELECT ? d = {
|
|
44
|
-
[(e == null ? void 0 : e.idKey) || "ids"]:
|
|
45
|
-
} : t === i.ALL && (d = (
|
|
46
|
-
const p = ((
|
|
44
|
+
[(e == null ? void 0 : e.idKey) || "ids"]: v.value
|
|
45
|
+
} : t === i.ALL && (d = (r == null ? void 0 : r()) || {});
|
|
46
|
+
const p = ((w = e == null ? void 0 : e.getInitialParams) == null ? void 0 : w.call(e)) || {};
|
|
47
47
|
try {
|
|
48
48
|
c.value = !0;
|
|
49
|
-
let
|
|
49
|
+
let u = {
|
|
50
50
|
...d,
|
|
51
51
|
...p
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
u = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, u)) || u, await O(async () => await (o == null ? void 0 : o(u))), e != null && e.successMessage && I.success(A.value);
|
|
54
54
|
} finally {
|
|
55
55
|
c.value = !1;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
return (t,
|
|
58
|
+
return (t, r) => P.value ? (m(), f(a(V), {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: K([a(S)()]),
|
|
61
|
-
|
|
61
|
+
"overlay-style": G,
|
|
62
62
|
disabled: b.value
|
|
63
63
|
}, {
|
|
64
64
|
overlay: s(() => [
|
|
@@ -68,7 +68,7 @@ const oe = /* @__PURE__ */ B({
|
|
|
68
68
|
return [
|
|
69
69
|
(m(), f(a(M), {
|
|
70
70
|
key: a(i).SELECT,
|
|
71
|
-
disabled: ((o =
|
|
71
|
+
disabled: ((o = v.value) == null ? void 0 : o.length) === 0
|
|
72
72
|
}, {
|
|
73
73
|
default: s(() => [
|
|
74
74
|
g(x(a(n)("ap.apExportGroup.exportSelected")), 1)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as R, unref as t, resolveComponent as D, openBlock as w, createElementBlock as K, normalizeClass as d, createVNode as p, withCtx as C, normalizeStyle as O, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
|
|
2
2
|
import { Flex as j, Select as E } from "@aplus-frontend/antdv";
|
|
3
3
|
import G from "./images/icon-down.vue.mjs";
|
|
4
4
|
import "./extension-select/index.vue.mjs";
|
|
5
|
-
import { useControllableValue as
|
|
5
|
+
import { useControllableValue as z } from "../../hooks/useControllableValue.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useGlobalConfig as
|
|
9
|
-
import { useNamespace as
|
|
7
|
+
import { useLocale as H } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useGlobalConfig as U } from "../../config-provider/hooks/use-global-config.mjs";
|
|
9
|
+
import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import Y from "./extension-select/index.vue2.mjs";
|
|
11
|
-
const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */
|
|
11
|
+
const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
|
|
12
12
|
__name: "ap-group-search",
|
|
13
13
|
props: {
|
|
14
14
|
value: {},
|
|
@@ -90,11 +90,11 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ L({
|
|
|
90
90
|
style: {}
|
|
91
91
|
},
|
|
92
92
|
emits: ["update:value"],
|
|
93
|
-
setup(
|
|
94
|
-
const { t: h } =
|
|
93
|
+
setup(S, { emit: _ }) {
|
|
94
|
+
const { t: h } = H(), f = U("uiMode", "aplus"), y = M(), l = S, B = c(() => ({
|
|
95
95
|
width: "auto",
|
|
96
96
|
...l.style
|
|
97
|
-
})), b = _, { value: a, updateValue: u } =
|
|
97
|
+
})), b = _, { value: a, updateValue: u } = z(l, b), A = (e) => {
|
|
98
98
|
let o = e;
|
|
99
99
|
e === m ? o = l.options.map((n) => n.value) : o = toString.call(o) === "[object Array]" ? e : [e], u({
|
|
100
100
|
...a.value,
|
|
@@ -139,52 +139,52 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ L({
|
|
|
139
139
|
...a.value,
|
|
140
140
|
value: e
|
|
141
141
|
});
|
|
142
|
-
}, { b: I, e: g, em:
|
|
142
|
+
}, { b: I, e: g, em: L } = W("ap-group-search");
|
|
143
143
|
return (e, o) => {
|
|
144
144
|
const n = D("Divider");
|
|
145
|
-
return
|
|
146
|
-
class: d(t(I)()),
|
|
145
|
+
return w(), K("div", {
|
|
147
146
|
ref_key: "containerRef",
|
|
148
|
-
ref: y
|
|
147
|
+
ref: y,
|
|
148
|
+
class: d(t(I)())
|
|
149
149
|
}, [
|
|
150
150
|
p(t(j), null, {
|
|
151
|
-
default:
|
|
151
|
+
default: C(() => {
|
|
152
152
|
var s, i;
|
|
153
153
|
return [
|
|
154
154
|
p(t(E), {
|
|
155
155
|
value: V.value,
|
|
156
156
|
style: O(B.value),
|
|
157
|
-
class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(
|
|
157
|
+
class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(L)("search", "admin") : t(g)("search")}`),
|
|
158
158
|
options: k.value,
|
|
159
159
|
bordered: !1,
|
|
160
|
-
|
|
160
|
+
"dropdown-match-select-width": l.dropdownMatchSelectWidth,
|
|
161
161
|
onChange: A
|
|
162
162
|
}, {
|
|
163
|
-
suffixIcon:
|
|
163
|
+
suffixIcon: C(() => [
|
|
164
164
|
p(G)
|
|
165
165
|
]),
|
|
166
166
|
_: 1
|
|
167
|
-
}, 8, ["value", "style", "class", "options", "
|
|
168
|
-
t(f) === "aplus" ? (
|
|
167
|
+
}, 8, ["value", "style", "class", "options", "dropdown-match-select-width"]),
|
|
168
|
+
t(f) === "aplus" ? (w(), F(n, {
|
|
169
169
|
key: 0,
|
|
170
170
|
class: d(t(g)("divider")),
|
|
171
171
|
type: "vertical",
|
|
172
172
|
style: {}
|
|
173
|
-
}, null, 8, ["class"])) :
|
|
173
|
+
}, null, 8, ["class"])) : T("", !0),
|
|
174
174
|
$(e.$slots, "search", {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
key: (s = t(a)) == null ? void 0 : s.key,
|
|
176
|
+
value: (i = t(a)) == null ? void 0 : i.value,
|
|
177
|
+
change: v
|
|
178
178
|
}, () => {
|
|
179
179
|
var r;
|
|
180
180
|
return [
|
|
181
181
|
p(Y, {
|
|
182
182
|
style: { width: "100%" },
|
|
183
|
-
|
|
183
|
+
"max-tag-count": "responsive",
|
|
184
184
|
value: (r = t(a)) == null ? void 0 : r.value,
|
|
185
|
-
onChange: v,
|
|
186
185
|
placeholder: x.value,
|
|
187
|
-
"__parent-ref": y.value
|
|
186
|
+
"__parent-ref": y.value,
|
|
187
|
+
onChange: v
|
|
188
188
|
}, null, 8, ["value", "placeholder", "__parent-ref"])
|
|
189
189
|
];
|
|
190
190
|
})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as t, computed as C, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
|
|
2
2
|
import { Select as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../popover-select/index.vue.mjs";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
5
|
import { useGlobalConfig as R } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import
|
|
8
|
-
const O = /* @__PURE__ */
|
|
6
|
+
import { useNamespace as V } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import N from "../popover-select/index.vue2.mjs";
|
|
8
|
+
const O = /* @__PURE__ */ y({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
value: {},
|
|
@@ -85,7 +85,7 @@ const O = /* @__PURE__ */ v({
|
|
|
85
85
|
},
|
|
86
86
|
emits: ["change"],
|
|
87
87
|
setup(u, { emit: c }) {
|
|
88
|
-
const d = R("uiMode", "aplus"), o = u, r = t(), n = t(), a = t(!1), m =
|
|
88
|
+
const d = R("uiMode", "aplus"), o = u, r = t(), n = t(), a = t(!1), m = C(() => o.__parentRef || r.value), f = c, h = (e) => {
|
|
89
89
|
e && (a.value = !1);
|
|
90
90
|
};
|
|
91
91
|
w(
|
|
@@ -97,7 +97,7 @@ const O = /* @__PURE__ */ v({
|
|
|
97
97
|
);
|
|
98
98
|
const p = (e) => {
|
|
99
99
|
n.value = e, f("change", e);
|
|
100
|
-
}, { b: g } =
|
|
100
|
+
}, { b: g } = V("ap-extension-select");
|
|
101
101
|
return (e, i) => (B(), _("div", {
|
|
102
102
|
ref_key: "containerRef",
|
|
103
103
|
ref: r
|
|
@@ -108,24 +108,24 @@ const O = /* @__PURE__ */ v({
|
|
|
108
108
|
style: b(e.$attrs.style),
|
|
109
109
|
bordered: l(d) === "admin",
|
|
110
110
|
mode: "tags",
|
|
111
|
-
|
|
111
|
+
"show-arrow": !0,
|
|
112
112
|
"not-found-content": !0,
|
|
113
113
|
open: a.value,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
"max-tag-count": o.maxTagCount,
|
|
115
|
+
placeholder: o.placeholder,
|
|
116
|
+
onDropdownVisibleChange: i[0] || (i[0] = (v) => a.value = v),
|
|
117
|
+
onChange: p
|
|
118
118
|
}, {
|
|
119
119
|
suffixIcon: S(() => [
|
|
120
|
-
s(
|
|
120
|
+
s(N, {
|
|
121
121
|
value: n.value,
|
|
122
|
+
"__parent-ref": m.value,
|
|
122
123
|
onSubmit: p,
|
|
123
|
-
onOpenChange: h
|
|
124
|
-
"__parent-ref": m.value
|
|
124
|
+
onOpenChange: h
|
|
125
125
|
}, null, 8, ["value", "__parent-ref"])
|
|
126
126
|
]),
|
|
127
127
|
_: 1
|
|
128
|
-
}, 8, ["class", "value", "style", "bordered", "open", "
|
|
128
|
+
}, 8, ["class", "value", "style", "bordered", "open", "max-tag-count", "placeholder"])
|
|
129
129
|
], 512));
|
|
130
130
|
}
|
|
131
131
|
});
|
|
@@ -42,9 +42,9 @@ declare const ApGroupSearch: {
|
|
|
42
42
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
43
43
|
$slots: {
|
|
44
44
|
search?(_: {
|
|
45
|
+
key: SelectValue;
|
|
45
46
|
value: any;
|
|
46
47
|
change: (e: any) => void;
|
|
47
|
-
key: SelectValue;
|
|
48
48
|
}): any;
|
|
49
49
|
};
|
|
50
50
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -86,14 +86,14 @@ const Y = /* @__PURE__ */ P({
|
|
|
86
86
|
},
|
|
87
87
|
emits: ["submit", "open-change"],
|
|
88
88
|
setup(S, { emit: w }) {
|
|
89
|
-
const { t: r } = F(), h = E("uiMode", "aplus"),
|
|
89
|
+
const { t: r } = F(), h = E("uiMode", "aplus"), c = S, v = w, t = u([]), i = u(!1), g = u();
|
|
90
90
|
R(() => {
|
|
91
|
-
t.value =
|
|
91
|
+
t.value = c.value;
|
|
92
92
|
});
|
|
93
|
-
const B = (o) =>
|
|
94
|
-
|
|
93
|
+
const B = (o) => c.__parentRef || o, b = (o) => {
|
|
94
|
+
i.value = o, v("open-change", o);
|
|
95
95
|
}, C = () => {
|
|
96
|
-
|
|
96
|
+
i.value = !1;
|
|
97
97
|
}, _ = () => {
|
|
98
98
|
t.value = [];
|
|
99
99
|
}, x = (o) => {
|
|
@@ -101,15 +101,15 @@ const Y = /* @__PURE__ */ P({
|
|
|
101
101
|
}, k = async () => {
|
|
102
102
|
var o;
|
|
103
103
|
(o = g.value) == null || o.blur(), C(), await D(150), v("submit", t.value);
|
|
104
|
-
}, { b:
|
|
104
|
+
}, { b: V, e: I, em: l } = K("ap-popover-select");
|
|
105
105
|
return (o, y) => (L(), M("div", {
|
|
106
|
-
class: p(e(
|
|
106
|
+
class: p(e(V)())
|
|
107
107
|
}, [
|
|
108
108
|
a(e(T), {
|
|
109
|
-
|
|
109
|
+
"overlay-class-name": e(I)("popover"),
|
|
110
110
|
"get-popup-container": B,
|
|
111
111
|
trigger: "click",
|
|
112
|
-
open:
|
|
112
|
+
open: i.value,
|
|
113
113
|
placement: "bottomLeft",
|
|
114
114
|
onOpenChange: b
|
|
115
115
|
}, {
|
|
@@ -118,18 +118,18 @@ const Y = /* @__PURE__ */ P({
|
|
|
118
118
|
s("div", {
|
|
119
119
|
class: p(e(l)("popover", "content"))
|
|
120
120
|
}, [
|
|
121
|
-
a(e(z), O({ ...
|
|
121
|
+
a(e(z), O({ ...c }, {
|
|
122
|
+
ref_key: "selectRef",
|
|
123
|
+
ref: g,
|
|
122
124
|
mode: "tags",
|
|
123
125
|
bordered: !1,
|
|
124
126
|
value: t.value,
|
|
125
|
-
onChange: y[0] || (y[0] = (I) => x(I)),
|
|
126
127
|
placeholder: e(r)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),
|
|
127
|
-
|
|
128
|
+
"token-separators": [",", `
|
|
128
129
|
`, "\r"],
|
|
129
130
|
"max-tag-count": 200,
|
|
130
131
|
open: !1,
|
|
131
|
-
|
|
132
|
-
ref: g
|
|
132
|
+
onChange: y[0] || (y[0] = (N) => x(N))
|
|
133
133
|
}), null, 16, ["value", "placeholder"])
|
|
134
134
|
], 2),
|
|
135
135
|
s("div", {
|
|
@@ -183,7 +183,7 @@ const Y = /* @__PURE__ */ P({
|
|
|
183
183
|
], 2)
|
|
184
184
|
]),
|
|
185
185
|
_: 1
|
|
186
|
-
}, 8, ["
|
|
186
|
+
}, 8, ["overlay-class-name", "open"])
|
|
187
187
|
], 2));
|
|
188
188
|
}
|
|
189
189
|
});
|