@aplus-frontend/ui 7.10.6 → 7.11.1
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/index.mjs +93 -91
- package/es/src/ag-grid/editable/form-item.vue.mjs +75 -63
- package/es/src/ag-grid/editable/index.vue.mjs +80 -72
- package/es/src/ag-grid/editable/interface.d.ts +2 -1
- package/es/src/ag-grid/editable/utils.d.ts +7 -0
- package/es/src/ag-grid/editable/utils.mjs +32 -17
- package/es/src/ap-form/ap-form.vue2.mjs +144 -153
- package/es/src/ap-form/utils/transform.d.ts +6 -0
- package/es/src/ap-form/utils/transform.mjs +30 -0
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +129 -93
- package/es/src/business/ap-appendix/interface.d.ts +4 -0
- package/es/src/business/ap-appendix/style/index.mjs +56 -34
- package/es/src/business/ap-attachment/ApAttachment.mjs +112 -89
- package/es/src/business/ap-attachment/style/index.mjs +21 -7
- package/es/src/business/ap-download/ap-download.vue.d.ts +1 -0
- package/es/src/business/ap-download/ap-download.vue.mjs +86 -45
- package/es/src/business/ap-download/interface.d.ts +4 -0
- package/es/src/business/ap-download/style/index.mjs +8 -4
- package/es/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
- package/es/src/business/ap-file-preview/ap-file-preview.vue.mjs +4 -0
- package/es/src/business/ap-file-preview/ap-file-preview.vue2.mjs +104 -0
- package/es/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
- package/es/src/business/ap-file-preview/components/error-result/index.vue.mjs +4 -0
- package/es/src/business/ap-file-preview/components/error-result/index.vue2.mjs +40 -0
- package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
- package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.mjs +20 -0
- package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
- package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.mjs +20 -0
- package/es/src/business/ap-file-preview/index.d.ts +7 -0
- package/es/src/business/ap-file-preview/index.mjs +8 -0
- package/es/src/business/ap-file-preview/interface.d.ts +45 -0
- package/es/src/business/ap-file-preview/style/index.d.ts +5 -0
- package/es/src/business/ap-file-preview/style/index.mjs +46 -0
- package/es/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
- package/es/src/business/ap-file-preview/utils/create-file-preview-modal.mjs +18 -0
- package/es/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
- package/es/src/business/ap-file-preview/utils/default-parser-plugin.mjs +48 -0
- package/es/src/business/ap-image/ApImage.vue2.mjs +16 -16
- package/es/src/business/ap-upload/apUpload.vue.d.ts +1 -1
- package/es/src/business/ap-upload/apUploadTypes.d.ts +2 -2
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +94 -82
- package/es/src/business/ap-upload/style/multiple-file.mjs +6 -3
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +16 -14
- package/es/src/config-provider/config-provider-props.d.ts +6 -0
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +17 -1
- package/es/src/config-provider/config-provider.mjs +24 -23
- package/es/src/config-provider/hooks/use-global-config.d.ts +7 -0
- package/es/src/config-provider/index.d.ts +31 -3
- package/es/src/index.mjs +74 -72
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +2 -1
- package/lib/src/ag-grid/editable/utils.d.ts +7 -0
- package/lib/src/ag-grid/editable/utils.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/utils/transform.d.ts +6 -0
- package/lib/src/ap-form/utils/transform.js +1 -0
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/interface.d.ts +4 -0
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-download/ap-download.vue.d.ts +1 -0
- package/lib/src/business/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-download/interface.d.ts +4 -0
- package/lib/src/business/ap-download/style/index.js +1 -1
- package/lib/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
- package/lib/src/business/ap-file-preview/ap-file-preview.vue.js +1 -0
- package/lib/src/business/ap-file-preview/ap-file-preview.vue2.js +1 -0
- package/lib/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
- package/lib/src/business/ap-file-preview/components/error-result/index.vue.js +1 -0
- package/lib/src/business/ap-file-preview/components/error-result/index.vue2.js +1 -0
- package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.js +1 -0
- package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.js +1 -0
- package/lib/src/business/ap-file-preview/index.d.ts +7 -0
- package/lib/src/business/ap-file-preview/index.js +1 -0
- package/lib/src/business/ap-file-preview/interface.d.ts +45 -0
- package/lib/src/business/ap-file-preview/style/index.d.ts +5 -0
- package/lib/src/business/ap-file-preview/style/index.js +1 -0
- package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
- package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.js +1 -0
- package/lib/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
- package/lib/src/business/ap-file-preview/utils/default-parser-plugin.js +1 -0
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +2 -2
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +6 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +17 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +7 -0
- package/lib/src/config-provider/index.d.ts +31 -3
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { LoadingOutlined as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { IconVariantDownload as
|
|
1
|
+
import { defineComponent as V, computed as g, ref as j, createElementBlock as L, openBlock as p, mergeProps as M, unref as e, renderSlot as d, createCommentVNode as k, createVNode as r, withCtx as c, createElementVNode as s, normalizeClass as a, createBlock as C, Fragment as G, renderList as U, createSlots as x, createTextVNode as N, toDisplayString as h } from "vue";
|
|
2
|
+
import { LoadingOutlined as z } from "@ant-design/icons-vue";
|
|
3
|
+
import { Tooltip as $, TypographyText as R, Empty as I } from "@aplus-frontend/antdv";
|
|
4
|
+
import { IconVariantDownload as q, IconApAdLineCloseAttachments as H, IconApAdLineDownload as J } from "@aplus-frontend/icon";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import "../ap-download/ap-download.vue2.mjs";
|
|
7
|
+
import { ApFilePreview as K } from "../ap-file-preview/index.mjs";
|
|
7
8
|
import "../ap-title/ApTitle.vue.mjs";
|
|
8
|
-
import
|
|
9
|
-
import { getFileInfo as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
9
|
+
import Q from "./style/index.mjs";
|
|
10
|
+
import { getFileInfo as W } from "./utils/index.mjs";
|
|
11
|
+
import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import { useLocale as Y } from "../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useGlobalConfig as E } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import Z from "../ap-title/ApTitle.vue2.mjs";
|
|
15
|
+
import ee from "../ap-download/ap-download.vue.mjs";
|
|
16
|
+
const te = ["onClick"], ie = ["onClick"], Ae = /* @__PURE__ */ V({
|
|
16
17
|
__name: "ap-appendix",
|
|
17
18
|
props: {
|
|
18
19
|
fileList: {},
|
|
@@ -21,39 +22,46 @@ const Y = ["onClick"], de = /* @__PURE__ */ O({
|
|
|
21
22
|
title: {},
|
|
22
23
|
tooltip: {},
|
|
23
24
|
column: { default: 2 },
|
|
24
|
-
isFileAreaBorder: { type: Boolean, default: !1 }
|
|
25
|
+
isFileAreaBorder: { type: Boolean, default: !1 },
|
|
26
|
+
emptyText: {}
|
|
25
27
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { b:
|
|
28
|
+
setup(T) {
|
|
29
|
+
const { b: B, e: i, em: w } = X("ap-appendix"), { t: m } = Y(), b = Q("ap-appendix"), t = T, _ = E("apUpload"), F = E(
|
|
28
30
|
"downloadCenterTriggerConfig"
|
|
29
|
-
),
|
|
30
|
-
() =>
|
|
31
|
-
t?.needName ??
|
|
31
|
+
), y = g(
|
|
32
|
+
() => W(
|
|
33
|
+
t?.needName ?? _?.value?.needName,
|
|
32
34
|
t?.fileList ?? []
|
|
33
35
|
)
|
|
34
|
-
),
|
|
35
|
-
() => t.getOssAccess ||
|
|
36
|
-
),
|
|
37
|
-
() => !(Array.isArray(
|
|
38
|
-
), o =
|
|
39
|
-
async function
|
|
40
|
-
if (!(o.value.findIndex((l) => l ===
|
|
41
|
-
o.value = [...o.value,
|
|
36
|
+
), O = g(
|
|
37
|
+
() => t.getOssAccess || _.value?.getOssAccess
|
|
38
|
+
), A = g(
|
|
39
|
+
() => !(Array.isArray(y.value) && y.value.length)
|
|
40
|
+
), o = j([]), S = g(() => t.title || m("ap.apAppendix.appendix"));
|
|
41
|
+
async function P(n, f) {
|
|
42
|
+
if (!(o.value.findIndex((l) => l === f) > -1)) {
|
|
43
|
+
o.value = [...o.value, f];
|
|
42
44
|
try {
|
|
43
|
-
if (
|
|
44
|
-
let l = [n].map((
|
|
45
|
-
objectName:
|
|
46
|
-
fileName:
|
|
45
|
+
if (F.value?.trigger) {
|
|
46
|
+
let l = [n].map((v) => ({
|
|
47
|
+
objectName: v.path,
|
|
48
|
+
fileName: v.fileName
|
|
47
49
|
}));
|
|
48
|
-
await
|
|
50
|
+
await F.value?.trigger(l);
|
|
49
51
|
}
|
|
50
52
|
} finally {
|
|
51
|
-
o.value = o.value.filter((l) => l !==
|
|
53
|
+
o.value = o.value.filter((l) => l !== f);
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
async function D(n) {
|
|
58
|
+
K.createFilePreviewModal({
|
|
59
|
+
src: n.path,
|
|
60
|
+
fileName: n.fileName
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return (n, f) => (p(), L("div", M({
|
|
64
|
+
class: [e(B)(), e(b)]
|
|
57
65
|
}, {
|
|
58
66
|
...n.$attrs
|
|
59
67
|
}, {
|
|
@@ -61,33 +69,33 @@ const Y = ["onClick"], de = /* @__PURE__ */ O({
|
|
|
61
69
|
"--ap-appendix-column": `repeat(${Number(t?.column || 2)}, 1fr)`
|
|
62
70
|
}
|
|
63
71
|
}), [
|
|
64
|
-
|
|
72
|
+
d(n.$slots, "title", {
|
|
65
73
|
fileList: t.fileList
|
|
66
74
|
}, () => [
|
|
67
|
-
|
|
68
|
-
title:
|
|
75
|
+
r(Z, {
|
|
76
|
+
title: S.value,
|
|
69
77
|
"help-message": t?.tooltip
|
|
70
78
|
}, {
|
|
71
|
-
suffix:
|
|
79
|
+
suffix: c(() => [
|
|
72
80
|
s("div", {
|
|
73
|
-
class:
|
|
81
|
+
class: a([e(i)("suffix")])
|
|
74
82
|
}, [
|
|
75
|
-
|
|
83
|
+
d(n.$slots, "titleSuffix", {
|
|
76
84
|
fileList: t.fileList
|
|
77
85
|
}),
|
|
78
|
-
|
|
86
|
+
d(n.$slots, "titleDownloadAllBtn", {
|
|
79
87
|
fileList: t.fileList
|
|
80
88
|
}, () => [
|
|
81
|
-
|
|
89
|
+
A.value ? k("", !0) : (p(), C(ee, {
|
|
82
90
|
key: 0,
|
|
83
|
-
class:
|
|
84
|
-
text: e(
|
|
85
|
-
"get-oss-access":
|
|
91
|
+
class: a([e(i)("download-all")]),
|
|
92
|
+
text: e(m)("ap.apAppendix.downloadAll"),
|
|
93
|
+
"get-oss-access": O.value,
|
|
86
94
|
"file-name": t?.fileList ?? [],
|
|
87
95
|
"need-name": t.needName
|
|
88
96
|
}, {
|
|
89
|
-
icon:
|
|
90
|
-
|
|
97
|
+
icon: c(() => [
|
|
98
|
+
r(e(q))
|
|
91
99
|
]),
|
|
92
100
|
_: 1
|
|
93
101
|
}, 8, ["class", "text", "get-oss-access", "file-name", "need-name"]))
|
|
@@ -97,80 +105,108 @@ const Y = ["onClick"], de = /* @__PURE__ */ O({
|
|
|
97
105
|
_: 3
|
|
98
106
|
}, 8, ["title", "help-message"])
|
|
99
107
|
]),
|
|
100
|
-
|
|
108
|
+
A.value ? k("", !0) : d(n.$slots, "fileArea", {
|
|
101
109
|
key: 0,
|
|
102
110
|
fileList: t.fileList
|
|
103
111
|
}, () => [
|
|
104
112
|
s("div", {
|
|
105
|
-
class:
|
|
106
|
-
[e(
|
|
107
|
-
[e(
|
|
113
|
+
class: a({
|
|
114
|
+
[e(i)("file-area")]: !0,
|
|
115
|
+
[e(w)("file-area", "border")]: !!t.isFileAreaBorder
|
|
108
116
|
})
|
|
109
117
|
}, [
|
|
110
118
|
s("div", {
|
|
111
|
-
class:
|
|
119
|
+
class: a([e(i)("file-area-content")])
|
|
112
120
|
}, [
|
|
113
|
-
(
|
|
121
|
+
(p(!0), L(G, null, U(y.value, (u, l) => (p(), L("div", {
|
|
114
122
|
key: l,
|
|
115
|
-
class:
|
|
116
|
-
[e(
|
|
117
|
-
[e(
|
|
123
|
+
class: a({
|
|
124
|
+
[e(i)("file-area-content-item")]: !0,
|
|
125
|
+
[e(w)("file-area-content-item", "loading")]: o.value.includes(l)
|
|
118
126
|
})
|
|
119
127
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}, [
|
|
128
|
+
s("div", {
|
|
129
|
+
class: a({
|
|
130
|
+
[e(i)("file-area-content-item-content")]: !0,
|
|
131
|
+
[e(i)("file-area-content-item--loading-content")]: o.value.includes(l)
|
|
132
|
+
})
|
|
133
|
+
}, [
|
|
134
|
+
r(e($), null, x({
|
|
135
|
+
default: c(() => [
|
|
129
136
|
s("div", {
|
|
130
|
-
class:
|
|
137
|
+
class: a([e(i)("file-area-content-item-content-text")]),
|
|
138
|
+
onClick: (v) => D(u)
|
|
131
139
|
}, [
|
|
132
|
-
|
|
133
|
-
|
|
140
|
+
s("div", {
|
|
141
|
+
class: a([e(i)("file-area-content-item-icon")])
|
|
142
|
+
}, [
|
|
143
|
+
o.value.includes(l) ? (p(), C(e(z), { key: 0 })) : (p(), C(e(H), { key: 1 }))
|
|
144
|
+
], 2),
|
|
145
|
+
s("div", {
|
|
146
|
+
class: a([e(i)("file-area-content-item-file-name")])
|
|
147
|
+
}, [
|
|
148
|
+
r(e(R), {
|
|
149
|
+
ellipsis: "",
|
|
150
|
+
content: u.fileName
|
|
151
|
+
}, null, 8, ["content"])
|
|
152
|
+
], 2)
|
|
153
|
+
], 10, te)
|
|
154
|
+
]),
|
|
155
|
+
_: 2
|
|
156
|
+
}, [
|
|
157
|
+
o.value.includes(l) ? void 0 : {
|
|
158
|
+
name: "title",
|
|
159
|
+
fn: c(() => [
|
|
160
|
+
N(h(e(m)("ap.apAppendix.previewFile")), 1)
|
|
161
|
+
]),
|
|
162
|
+
key: "0"
|
|
163
|
+
}
|
|
164
|
+
]), 1024),
|
|
165
|
+
r(e($), null, x({
|
|
166
|
+
default: c(() => [
|
|
134
167
|
s("div", {
|
|
135
|
-
class:
|
|
168
|
+
class: a([e(i)("file-area-content-item-icon-preview")]),
|
|
169
|
+
onClick: (v) => P(u, l)
|
|
136
170
|
}, [
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
content: y.fileName
|
|
140
|
-
}, null, 8, ["content"])
|
|
141
|
-
], 2)
|
|
142
|
-
], 10, Y)
|
|
143
|
-
]),
|
|
144
|
-
_: 2
|
|
145
|
-
}, [
|
|
146
|
-
o.value.includes(l) ? void 0 : {
|
|
147
|
-
name: "title",
|
|
148
|
-
fn: d(() => [
|
|
149
|
-
P(G(e(u)("ap.apAppendix.downloadFile")), 1)
|
|
171
|
+
r(e(J))
|
|
172
|
+
], 10, ie)
|
|
150
173
|
]),
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
174
|
+
_: 2
|
|
175
|
+
}, [
|
|
176
|
+
o.value.includes(l) ? void 0 : {
|
|
177
|
+
name: "title",
|
|
178
|
+
fn: c(() => [
|
|
179
|
+
N(h(e(m)("ap.apAppendix.downloadFile")), 1)
|
|
180
|
+
]),
|
|
181
|
+
key: "0"
|
|
182
|
+
}
|
|
183
|
+
]), 1024)
|
|
184
|
+
], 2)
|
|
154
185
|
], 2))), 128))
|
|
155
186
|
], 2)
|
|
156
187
|
], 2)
|
|
157
188
|
]),
|
|
158
|
-
|
|
189
|
+
A.value ? d(n.$slots, "empty", { key: 1 }, () => [
|
|
159
190
|
s("div", {
|
|
160
|
-
class:
|
|
191
|
+
class: a([e(i)("empty")])
|
|
161
192
|
}, [
|
|
162
193
|
s("div", {
|
|
163
|
-
class:
|
|
194
|
+
class: a([e(i)("empty-content")])
|
|
164
195
|
}, [
|
|
165
|
-
|
|
166
|
-
image: e(
|
|
167
|
-
},
|
|
196
|
+
r(e(I), {
|
|
197
|
+
image: e(I).PRESENTED_IMAGE_SIMPLE
|
|
198
|
+
}, {
|
|
199
|
+
description: c(() => [
|
|
200
|
+
N(h(t.emptyText || e(m)("ap.apAppendix.empty")), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["image"])
|
|
168
204
|
], 2)
|
|
169
205
|
], 2)
|
|
170
|
-
]) :
|
|
206
|
+
]) : k("", !0)
|
|
171
207
|
], 16));
|
|
172
208
|
}
|
|
173
209
|
});
|
|
174
210
|
export {
|
|
175
|
-
|
|
211
|
+
Ae as default
|
|
176
212
|
};
|
|
@@ -48,6 +48,10 @@ export interface ApAppendixProps<FileType = any> {
|
|
|
48
48
|
* 文件区域是否带边框
|
|
49
49
|
*/
|
|
50
50
|
isFileAreaBorder?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* 空状态自定义文字
|
|
53
|
+
*/
|
|
54
|
+
emptyText?: string;
|
|
51
55
|
}
|
|
52
56
|
export interface ApAppendixSlots<FileType = any> {
|
|
53
57
|
fileArea: (props: ApAppendixBaseSlotProps<FileType>) => any;
|
|
@@ -1,45 +1,72 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
import { defaultToken as
|
|
3
|
-
const r = (
|
|
4
|
-
const { componentCls:
|
|
1
|
+
import { genComponentStyleHook as i } from "../../../utils/cssinjs/index.mjs";
|
|
2
|
+
import { defaultToken as t } from "./token.mjs";
|
|
3
|
+
const r = (e) => {
|
|
4
|
+
const { componentCls: o } = e;
|
|
5
5
|
return {
|
|
6
|
-
[
|
|
7
|
-
[`${
|
|
6
|
+
[o]: {
|
|
7
|
+
[`${o}__suffix`]: {
|
|
8
8
|
width: "100%",
|
|
9
9
|
display: "flex",
|
|
10
10
|
alignItems: "center"
|
|
11
11
|
},
|
|
12
|
-
[`${
|
|
12
|
+
[`${o}__download-all`]: {
|
|
13
13
|
marginLeft: "auto",
|
|
14
14
|
padding: 0,
|
|
15
15
|
height: "min-content"
|
|
16
16
|
},
|
|
17
|
-
[`${
|
|
18
|
-
marginBlockStart:
|
|
17
|
+
[`${o}__file-area`]: {
|
|
18
|
+
marginBlockStart: e.spaceLG,
|
|
19
19
|
"&--border": {
|
|
20
|
-
border: `${
|
|
21
|
-
padding:
|
|
22
|
-
borderRadius:
|
|
20
|
+
border: `${e.lineWidth} dashed ${e.borderColorBase}`,
|
|
21
|
+
padding: e.spaceLG,
|
|
22
|
+
borderRadius: e.borderRadius
|
|
23
23
|
},
|
|
24
24
|
"&-content": {
|
|
25
25
|
display: "grid",
|
|
26
|
-
rowGap:
|
|
27
|
-
columnGap:
|
|
28
|
-
gridTemplateColumns:
|
|
26
|
+
rowGap: e.spaceLG,
|
|
27
|
+
columnGap: e.calc(e.spaceXL).mul(5).equal(),
|
|
28
|
+
gridTemplateColumns: e.apAppendixColumn,
|
|
29
29
|
"&-item": {
|
|
30
30
|
overflow: "hidden",
|
|
31
31
|
userSelect: "none",
|
|
32
|
+
"&:hover": {
|
|
33
|
+
[`${o}__file-area-content-item-icon-preview`]: {
|
|
34
|
+
display: "flex"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
32
37
|
"&-content": {
|
|
33
38
|
display: "flex",
|
|
34
39
|
alignItems: "center",
|
|
35
40
|
width: "max-content",
|
|
36
41
|
cursor: "pointer",
|
|
37
|
-
maxWidth: "100%"
|
|
42
|
+
maxWidth: "100%",
|
|
43
|
+
"&-text": {
|
|
44
|
+
display: "flex",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
width: "max-content",
|
|
47
|
+
cursor: "pointer",
|
|
48
|
+
maxWidth: "100%",
|
|
49
|
+
minWidth: 0,
|
|
50
|
+
overflow: "hidden",
|
|
51
|
+
"&:hover": {
|
|
52
|
+
".ant-typography": {
|
|
53
|
+
color: e.colorLink
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"&-icon-preview": {
|
|
59
|
+
marginLeft: e.space,
|
|
60
|
+
fontSize: e.fontSizeXL,
|
|
61
|
+
color: e.colorLink,
|
|
62
|
+
display: "none",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
flexShrink: 0
|
|
38
65
|
},
|
|
39
66
|
"&-icon": {
|
|
40
|
-
marginRight:
|
|
41
|
-
fontSize:
|
|
42
|
-
color:
|
|
67
|
+
marginRight: e.space,
|
|
68
|
+
fontSize: e.fontSizeXL,
|
|
69
|
+
color: e.textColor4
|
|
43
70
|
},
|
|
44
71
|
"&-file-name": {
|
|
45
72
|
minWidth: 0,
|
|
@@ -48,15 +75,10 @@ const r = (o) => {
|
|
|
48
75
|
display: "flex",
|
|
49
76
|
alignItems: "center",
|
|
50
77
|
".ant-typography": {
|
|
51
|
-
fontSize:
|
|
52
|
-
lineHeight:
|
|
53
|
-
color:
|
|
54
|
-
transition: `color ${
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"&-content:hover": {
|
|
58
|
-
".ant-typography": {
|
|
59
|
-
color: o.colorLink
|
|
78
|
+
fontSize: e.fontSize,
|
|
79
|
+
lineHeight: e.lineHeight,
|
|
80
|
+
color: e.textColor1,
|
|
81
|
+
transition: `color ${e.motionDurationMid}`
|
|
60
82
|
}
|
|
61
83
|
},
|
|
62
84
|
"&--loading": {
|
|
@@ -64,18 +86,18 @@ const r = (o) => {
|
|
|
64
86
|
cursor: "not-allowed"
|
|
65
87
|
},
|
|
66
88
|
".ant-typography": {
|
|
67
|
-
color:
|
|
89
|
+
color: e.textColor4
|
|
68
90
|
},
|
|
69
91
|
"&-content:hover": {
|
|
70
92
|
".ant-typography": {
|
|
71
|
-
color:
|
|
93
|
+
color: e.textColor4
|
|
72
94
|
}
|
|
73
95
|
}
|
|
74
96
|
}
|
|
75
97
|
}
|
|
76
98
|
}
|
|
77
99
|
},
|
|
78
|
-
[`${
|
|
100
|
+
[`${o}__empty`]: {
|
|
79
101
|
".ant-empty": {
|
|
80
102
|
margin: 0,
|
|
81
103
|
"&-description": {
|
|
@@ -85,10 +107,10 @@ const r = (o) => {
|
|
|
85
107
|
}
|
|
86
108
|
}
|
|
87
109
|
};
|
|
88
|
-
}, l =
|
|
110
|
+
}, l = i(
|
|
89
111
|
"ApAppendix",
|
|
90
|
-
(
|
|
91
|
-
|
|
112
|
+
(e) => [r(e)],
|
|
113
|
+
t
|
|
92
114
|
);
|
|
93
115
|
export {
|
|
94
116
|
l as default,
|