@aplus-frontend/ui 7.0.1 → 7.1.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-descriptions/ap-descriptions.vue.mjs +39 -39
- package/es/src/ap-descriptions/style/index.mjs +16 -43
- package/es/src/ap-download/ap-download.vue.mjs +43 -43
- package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/es/src/ap-download/hooks/useStyle.mjs +17 -14
- package/es/src/ap-download/style/index.mjs +6 -13
- package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
- package/es/src/ap-form/style/modal-form.mjs +14 -15
- package/es/src/ap-form/style/search-form-sorter.mjs +26 -26
- package/es/src/ap-form/style/token.d.ts +4 -0
- package/es/src/ap-grid/style/index.mjs +3 -3
- package/es/src/ap-pro-card/style/statistic.mjs +3 -3
- package/es/src/ap-pro-card/style/token.mjs +1 -1
- package/es/src/ap-table/style/index.mjs +2 -2
- package/es/src/ap-table/style/setting.mjs +2 -2
- package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
- package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
- package/es/src/ap-tag/style/group.mjs +2 -8
- package/es/src/ap-tag/style/index.mjs +14 -23
- package/es/src/ap-upload/apUpload.vue.mjs +39 -39
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
- package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
- package/es/src/ap-upload/style/multiple-file.mjs +13 -40
- package/es/src/ap-upload/style/picture.mjs +12 -30
- package/es/src/ap-upload/style/single-file.mjs +5 -16
- package/es/src/business/ap-appendix/style/index.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
- package/es/src/business/ap-copy/style/index.mjs +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
- package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
- package/es/src/business/ap-ladder/style/index.mjs +9 -34
- package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
- package/es/src/business/ap-product-info/style/index.mjs +8 -24
- package/es/src/business/ap-radio-group/style/index.mjs +1 -1
- package/es/src/business/ap-size-input/ApSizeInput.mjs +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
- package/es/src/business/ap-title/style/index.mjs +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
- package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
- package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
- package/es/src/business/batch-input-group/style/index.mjs +1 -1
- package/es/src/check-card/style/index.mjs +31 -31
- package/es/src/design-token/constants.mjs +4 -2
- package/es/src/design-token/interface.d.ts +36 -39
- package/es/src/scroll-bar/style/index.mjs +12 -12
- package/es/src/splitter/style/index.mjs +6 -6
- package/es/src/style/index.mjs +1 -1
- package/es/src/text/style/index.mjs +1 -1
- package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
- package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
- package/es/src/utils/cssinjs/index.mjs +23 -22
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/style/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/lib/src/ap-download/hooks/useStyle.js +1 -1
- package/lib/src/ap-download/style/index.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/token.d.ts +4 -0
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/token.js +1 -1
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/style/group.js +1 -1
- package/lib/src/ap-tag/style/index.js +1 -1
- 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/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/ap-upload/style/picture.js +1 -1
- package/lib/src/ap-upload/style/single-file.js +1 -1
- 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-copy/style/index.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-ladder/style/index.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/interface.d.ts +36 -39
- package/lib/src/scroll-bar/style/index.js +1 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/style/index.js +1 -1
- package/lib/src/text/style/index.js +1 -1
- package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ne, inject as l, ref as g, watch as se, computed as re, createElementBlock as E, openBlock as h, normalizeClass as ie, unref as a, createElementVNode as r, createCommentVNode as N, toDisplayString as x, normalizeStyle as ce, createBlock as ue, withModifiers as pe, createVNode as de } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { getName as ve, getReturnData as $ } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as fe, useOssInit as me } from "../hooks/useOss.mjs";
|
|
5
5
|
import { fileMatchesAccept as ge, getAcceptText as he } from "../utils/accept.mjs";
|
|
6
6
|
import { message as c, Progress as _e } from "@aplus-frontend/antdv";
|
|
7
|
-
import { DeleteOutlined as
|
|
7
|
+
import { DeleteOutlined as ke } from "@ant-design/icons-vue";
|
|
8
8
|
import q from "../assets/single-file-icon.png.mjs";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
9
|
+
import ye from "../style/index.mjs";
|
|
10
|
+
import { useToken as we } from "../../config-provider/hooks/use-token.mjs";
|
|
11
|
+
import { useLocale as Ue } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useNamespace as Ce } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
const De = ["accept"], Fe = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "state-un"
|
|
15
|
-
},
|
|
16
|
+
}, Se = ["src"], Ee = { class: "state-un-title" }, Ne = { class: "state-un-subtitle" }, xe = {
|
|
16
17
|
key: 1,
|
|
17
18
|
class: "state-ing"
|
|
18
|
-
},
|
|
19
|
+
}, ze = { class: "left" }, be = ["src"], Ae = { class: "center" }, Re = { class: "center-progress" }, He = /* @__PURE__ */ ne({
|
|
19
20
|
__name: "SingleFile",
|
|
20
|
-
setup(
|
|
21
|
-
const { t: s } =
|
|
21
|
+
setup(Be, { expose: j }) {
|
|
22
|
+
const { t: s } = Ue(), { b: z } = Ce("ap-upload-single-file"), G = ye("ap-upload"), { put: W, client: b } = fe(), H = l("dirName"), _ = l("accept") || "*", k = l("maxSize") ?? 500, J = l("title") || s("ap.apUpload.clickOrDragUpload"), y = l("subTitle"), { token: A } = we(), i = l("value"), w = l("needName"), u = l("uploadingCount"), R = l("beforeUpload"), B = l("customRequest"), K = l("getOssAccess"), Q = l("maxSizeErrorMsg"), X = l("acceptErrorMsg"), M = l("onRemove"), U = l("showUploadErrorMsg"), o = g(null);
|
|
22
23
|
se(
|
|
23
24
|
() => i?.value,
|
|
24
25
|
function(e) {
|
|
25
|
-
|
|
26
|
+
o.value === null && e && P(e);
|
|
26
27
|
},
|
|
27
28
|
{ immediate: !0 }
|
|
28
29
|
);
|
|
29
|
-
function
|
|
30
|
+
function P(e) {
|
|
30
31
|
e ? setTimeout(() => {
|
|
31
|
-
const t = ve(
|
|
32
|
-
|
|
33
|
-
}) : (
|
|
32
|
+
const t = ve(w, e);
|
|
33
|
+
n.value = 3, o.value = new File([e], t, {}), i.value = e;
|
|
34
|
+
}) : (n.value = 1, o.value = null, i.value = void 0);
|
|
34
35
|
}
|
|
35
|
-
j({ setValue:
|
|
36
|
-
const
|
|
36
|
+
j({ setValue: P });
|
|
37
|
+
const n = g(1), d = g(0), v = g(null), T = re(() => o.value && i?.value);
|
|
37
38
|
function Y() {
|
|
38
|
-
|
|
39
|
+
n.value === 1 && v.value?.click();
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function O(e) {
|
|
41
42
|
e.preventDefault(), e.stopPropagation();
|
|
42
43
|
}
|
|
43
44
|
function Z(e) {
|
|
@@ -47,7 +48,7 @@ const Ue = ["accept"], Fe = {
|
|
|
47
48
|
L(e);
|
|
48
49
|
}
|
|
49
50
|
function te(e) {
|
|
50
|
-
if (e.preventDefault(), e.stopPropagation(),
|
|
51
|
+
if (e.preventDefault(), e.stopPropagation(), n.value !== 1)
|
|
51
52
|
return;
|
|
52
53
|
var t = e.dataTransfer, f = [], V = 0, I = t.files.length;
|
|
53
54
|
function p() {
|
|
@@ -55,27 +56,27 @@ const Ue = ["accept"], Fe = {
|
|
|
55
56
|
}
|
|
56
57
|
if (t.items !== void 0)
|
|
57
58
|
for (var C = 0; C < t.items.length; C++) {
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
var
|
|
61
|
-
f.push(
|
|
59
|
+
var D = t.items[C];
|
|
60
|
+
if (D.kind === "file" && D.webkitGetAsEntry().isFile) {
|
|
61
|
+
var le = D.getAsFile();
|
|
62
|
+
f.push(le), p();
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
else
|
|
65
|
-
for (let
|
|
66
|
-
var m = t.files[
|
|
66
|
+
for (let S = 0; S < I; S++) {
|
|
67
|
+
var m = t.files[S];
|
|
67
68
|
if (m.type)
|
|
68
69
|
f.push(m), p();
|
|
69
70
|
else
|
|
70
71
|
try {
|
|
71
|
-
var
|
|
72
|
-
|
|
72
|
+
var F = new FileReader();
|
|
73
|
+
F.readAsDataURL(m.slice(0, 3)), F.addEventListener(
|
|
73
74
|
"load",
|
|
74
75
|
function() {
|
|
75
76
|
f.push(m), p();
|
|
76
77
|
},
|
|
77
78
|
!1
|
|
78
|
-
),
|
|
79
|
+
), F.addEventListener(
|
|
79
80
|
"error",
|
|
80
81
|
function() {
|
|
81
82
|
c.warning(s("ap.apUpload.foldersNotSupported")), p();
|
|
@@ -93,15 +94,15 @@ const Ue = ["accept"], Fe = {
|
|
|
93
94
|
}
|
|
94
95
|
async function L(e) {
|
|
95
96
|
if (e?.length) {
|
|
96
|
-
if (e[0].size >
|
|
97
|
+
if (e[0].size > k * 1024 * 1024) {
|
|
97
98
|
c.warning(
|
|
98
99
|
Q || s("ap.apUpload.maxUploadFileSize", {
|
|
99
|
-
maxSize:
|
|
100
|
+
maxSize: k
|
|
100
101
|
})
|
|
101
102
|
);
|
|
102
103
|
return;
|
|
103
104
|
}
|
|
104
|
-
if (!ge(e[0],
|
|
105
|
+
if (!ge(e[0], _)) {
|
|
105
106
|
c.warning(
|
|
106
107
|
X || s("ap.apUpload.fileFormatNotSupported")
|
|
107
108
|
);
|
|
@@ -109,20 +110,20 @@ const Ue = ["accept"], Fe = {
|
|
|
109
110
|
}
|
|
110
111
|
if (typeof R == "function" && await R(e[0]) === !1)
|
|
111
112
|
return;
|
|
112
|
-
if (
|
|
113
|
+
if (o.value = e[0], n.value = 2, d.value = 0, u.value++, typeof B == "function") {
|
|
113
114
|
B({
|
|
114
115
|
onProgress: (t) => {
|
|
115
116
|
d.value = t;
|
|
116
117
|
},
|
|
117
118
|
onError: (t) => {
|
|
118
|
-
|
|
119
|
+
U && c.warning(t || s("ap.apUpload.networkAnomaly")), n.value = 1, o.value = null, u.value--;
|
|
119
120
|
},
|
|
120
121
|
onSuccess: (t) => {
|
|
121
122
|
i.value = $(
|
|
122
|
-
|
|
123
|
+
w,
|
|
123
124
|
t,
|
|
124
|
-
|
|
125
|
-
),
|
|
125
|
+
o.value.name
|
|
126
|
+
), n.value = 3, u.value--;
|
|
126
127
|
},
|
|
127
128
|
file: e[0]
|
|
128
129
|
});
|
|
@@ -130,44 +131,43 @@ const Ue = ["accept"], Fe = {
|
|
|
130
131
|
}
|
|
131
132
|
try {
|
|
132
133
|
await me(K), W({
|
|
133
|
-
file:
|
|
134
|
+
file: o.value,
|
|
134
135
|
dirName: H,
|
|
135
136
|
oss: b,
|
|
136
137
|
successCallBack(t) {
|
|
137
138
|
i.value = $(
|
|
138
|
-
|
|
139
|
+
w,
|
|
139
140
|
t,
|
|
140
|
-
|
|
141
|
-
),
|
|
141
|
+
o.value.name
|
|
142
|
+
), n.value = 3, u.value--;
|
|
142
143
|
},
|
|
143
144
|
errorCallBack(t) {
|
|
144
|
-
|
|
145
|
+
U && c.warning(t || s("ap.apUpload.networkAnomaly")), n.value = 1, o.value = null, u.value--;
|
|
145
146
|
},
|
|
146
147
|
progressCallBack(t) {
|
|
147
148
|
d.value = t;
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
151
|
} catch (t) {
|
|
151
|
-
|
|
152
|
+
U && c.warning(
|
|
152
153
|
typeof t?.message == "string" ? t.message : s("ap.apUpload.networkAnomaly")
|
|
153
|
-
),
|
|
154
|
+
), n.value = 1, o.value = null, u.value--;
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
function oe() {
|
|
158
|
-
M && M?.(
|
|
159
|
+
M && M?.(o.value), o.value && !i?.value && b.pauseUpload(), n.value = 1, o.value = null, i.value = void 0;
|
|
159
160
|
}
|
|
160
|
-
return (e, t) => (h(),
|
|
161
|
+
return (e, t) => (h(), E("div", {
|
|
161
162
|
class: ie({
|
|
162
|
-
[a(
|
|
163
|
-
[a(
|
|
164
|
-
[a(_)("un")]: l.value === 1,
|
|
163
|
+
[a(z)()]: !0,
|
|
164
|
+
[a(z)("un")]: n.value === 1,
|
|
165
165
|
[a(G) ?? ""]: !0
|
|
166
166
|
}),
|
|
167
167
|
onClick: Y,
|
|
168
|
-
onDragenter:
|
|
168
|
+
onDragenter: O,
|
|
169
169
|
onDragover: Z,
|
|
170
|
-
onDragleave:
|
|
170
|
+
onDragleave: O,
|
|
171
171
|
onDrop: te
|
|
172
172
|
}, [
|
|
173
173
|
r("input", {
|
|
@@ -175,40 +175,40 @@ const Ue = ["accept"], Fe = {
|
|
|
175
175
|
ref: v,
|
|
176
176
|
style: { display: "none" },
|
|
177
177
|
type: "file",
|
|
178
|
-
accept: a(
|
|
178
|
+
accept: a(_),
|
|
179
179
|
onChange: ae
|
|
180
|
-
}, null, 40,
|
|
181
|
-
|
|
180
|
+
}, null, 40, De),
|
|
181
|
+
n.value === 1 ? (h(), E("div", Fe, [
|
|
182
182
|
r("img", {
|
|
183
183
|
class: "state-un-icon",
|
|
184
184
|
src: a(q)
|
|
185
|
-
}, null, 8,
|
|
186
|
-
r("div", Ee,
|
|
187
|
-
r("div",
|
|
188
|
-
a(
|
|
185
|
+
}, null, 8, Se),
|
|
186
|
+
r("div", Ee, x(a(J)), 1),
|
|
187
|
+
r("div", Ne, x(typeof a(y) == "string" && a(y).length > 0 ? a(y) : `${a(s)("ap.apUpload.supportExtension")}:${a(he)(
|
|
188
|
+
a(_)
|
|
189
189
|
)},${a(s)("ap.apUpload.maxWarnUploadFileSize", {
|
|
190
|
-
maxSize: a(
|
|
190
|
+
maxSize: a(k)
|
|
191
191
|
})}`), 1)
|
|
192
|
-
])) :
|
|
193
|
-
[2, 3].includes(
|
|
194
|
-
r("div",
|
|
195
|
-
r("img", { src: a(q) }, null, 8,
|
|
192
|
+
])) : N("", !0),
|
|
193
|
+
[2, 3].includes(n.value) ? (h(), E("div", xe, [
|
|
194
|
+
r("div", ze, [
|
|
195
|
+
r("img", { src: a(q) }, null, 8, be)
|
|
196
196
|
]),
|
|
197
197
|
r("div", Ae, [
|
|
198
198
|
r("div", {
|
|
199
199
|
class: "center-title",
|
|
200
200
|
style: ce({
|
|
201
|
-
color:
|
|
201
|
+
color: T.value ? "#0070FF" : "#182948"
|
|
202
202
|
})
|
|
203
|
-
},
|
|
204
|
-
r("div",
|
|
205
|
-
|
|
203
|
+
}, x(o.value?.name), 5),
|
|
204
|
+
r("div", Re, [
|
|
205
|
+
T.value ? N("", !0) : (h(), ue(a(_e), {
|
|
206
206
|
key: 0,
|
|
207
207
|
percent: d.value,
|
|
208
208
|
size: 4,
|
|
209
209
|
"show-info": !1,
|
|
210
|
-
"trail-color": a(
|
|
211
|
-
"stroke-color": a(
|
|
210
|
+
"trail-color": a(A).borderColorBase,
|
|
211
|
+
"stroke-color": a(A).colorPrimary
|
|
212
212
|
}, null, 8, ["percent", "trail-color", "stroke-color"]))
|
|
213
213
|
])
|
|
214
214
|
]),
|
|
@@ -216,12 +216,12 @@ const Ue = ["accept"], Fe = {
|
|
|
216
216
|
class: "right",
|
|
217
217
|
onClick: pe(oe, ["stop"])
|
|
218
218
|
}, [
|
|
219
|
-
de(a(
|
|
219
|
+
de(a(ke))
|
|
220
220
|
])
|
|
221
|
-
])) :
|
|
221
|
+
])) : N("", !0)
|
|
222
222
|
], 34));
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
export {
|
|
226
|
-
|
|
226
|
+
He as default
|
|
227
227
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const a = (
|
|
2
|
-
const { componentCls:
|
|
1
|
+
const a = (l) => {
|
|
2
|
+
const { componentCls: o } = l;
|
|
3
3
|
return {
|
|
4
|
-
[o]: {
|
|
4
|
+
[`${o}-multiple-file`]: {
|
|
5
5
|
".multiple-file-context": {
|
|
6
6
|
display: "flex",
|
|
7
7
|
alignItems: "center",
|
|
@@ -10,22 +10,22 @@ const a = (t) => {
|
|
|
10
10
|
alignItems: "center",
|
|
11
11
|
padding: "7px 12px",
|
|
12
12
|
transition: "all 0.3s",
|
|
13
|
-
border:
|
|
13
|
+
border: `1px solid ${l.borderColorBase}`,
|
|
14
14
|
borderRadius: "4px",
|
|
15
|
-
color:
|
|
15
|
+
color: l.textColor1,
|
|
16
16
|
"&:hover": {
|
|
17
|
-
borderColor:
|
|
18
|
-
color:
|
|
17
|
+
borderColor: l.colorPrimary,
|
|
18
|
+
color: l.colorPrimary
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
".sub-title": {
|
|
22
22
|
paddingLeft: "16px",
|
|
23
|
-
color:
|
|
24
|
-
fontSize:
|
|
23
|
+
color: l.textColor3,
|
|
24
|
+
fontSize: l.fontSize
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
".ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover": {
|
|
28
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: l.colorBgLayout,
|
|
29
29
|
".ant-upload-list-item-actions .ant-upload-list-item-action:focus": {
|
|
30
30
|
opacity: 1
|
|
31
31
|
}
|
|
@@ -39,7 +39,7 @@ const a = (t) => {
|
|
|
39
39
|
opacity: 0
|
|
40
40
|
},
|
|
41
41
|
".ant-upload-text-icon": {
|
|
42
|
-
color:
|
|
42
|
+
color: l.textColor4
|
|
43
43
|
},
|
|
44
44
|
".ant-upload-wrapper .ant-upload-list .ant-upload-list-item-error": {
|
|
45
45
|
".ant-upload-list-item-name": {
|
|
@@ -53,37 +53,10 @@ const a = (t) => {
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
".ant-upload-list-item-done": {
|
|
56
|
-
color:
|
|
56
|
+
color: l.colorLink
|
|
57
57
|
},
|
|
58
58
|
".ant-upload-list-item-undefined": {
|
|
59
|
-
color:
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
[`${o}-admin`]: {
|
|
63
|
-
".multiple-file-context": {
|
|
64
|
-
".file-btn": {
|
|
65
|
-
border: "1px solid #d9d9d9",
|
|
66
|
-
color: "#333333",
|
|
67
|
-
"&:hover": {
|
|
68
|
-
borderColor: "#34b77c",
|
|
69
|
-
color: "#34b77c"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
".sub-title": {
|
|
73
|
-
color: "#999"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
".ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover": {
|
|
77
|
-
background: "#fafafa"
|
|
78
|
-
},
|
|
79
|
-
".ant-upload-text-icon": {
|
|
80
|
-
color: "#bfbfbf"
|
|
81
|
-
},
|
|
82
|
-
".ant-upload-list-item-done": {
|
|
83
|
-
color: "#1890ff"
|
|
84
|
-
},
|
|
85
|
-
".ant-upload-list-item-undefined": {
|
|
86
|
-
color: "#1890ff"
|
|
59
|
+
color: l.colorLink
|
|
87
60
|
}
|
|
88
61
|
}
|
|
89
62
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const { componentCls:
|
|
1
|
+
const r = (t) => {
|
|
2
|
+
const { componentCls: e } = t;
|
|
3
3
|
return {
|
|
4
|
-
[
|
|
4
|
+
[`${e}-picture`]: {
|
|
5
5
|
".picture-context": {
|
|
6
6
|
display: "grid",
|
|
7
7
|
gap: "16px",
|
|
@@ -15,23 +15,23 @@ const i = (e) => {
|
|
|
15
15
|
width: "100px",
|
|
16
16
|
overflow: "hidden",
|
|
17
17
|
transition: "all 0.2s",
|
|
18
|
-
border:
|
|
18
|
+
border: `1px dashed ${t.borderColorBase}`,
|
|
19
19
|
borderRadius: "4px",
|
|
20
|
-
background:
|
|
21
|
-
color:
|
|
20
|
+
background: t.colorBgLayout,
|
|
21
|
+
color: t.textColor4,
|
|
22
22
|
fontSize: "16px",
|
|
23
23
|
cursor: "pointer",
|
|
24
24
|
aspectRatio: "1 / 1",
|
|
25
|
-
"& > * + *": { marginTop: "4px", fontSize:
|
|
25
|
+
"& > * + *": { marginTop: "4px", fontSize: t.fontSize },
|
|
26
26
|
"&:hover": {
|
|
27
|
-
border:
|
|
27
|
+
border: `1px dashed ${t.colorPrimary}`
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
".picture-item": {
|
|
31
31
|
width: "100px",
|
|
32
32
|
padding: "8px",
|
|
33
33
|
overflow: "hidden",
|
|
34
|
-
border:
|
|
34
|
+
border: `1px solid ${t.borderColorBase}`,
|
|
35
35
|
borderRadius: "4px",
|
|
36
36
|
background: "#fff",
|
|
37
37
|
aspectRatio: "1 / 1",
|
|
@@ -58,7 +58,7 @@ const i = (e) => {
|
|
|
58
58
|
borderRadius: "2px",
|
|
59
59
|
background: "rgb(0 0 0 / 50%)",
|
|
60
60
|
color: "#fff",
|
|
61
|
-
fontSize:
|
|
61
|
+
fontSize: t.fontSize,
|
|
62
62
|
".picture-item-close": {
|
|
63
63
|
display: "flex",
|
|
64
64
|
position: "absolute",
|
|
@@ -91,30 +91,12 @@ const i = (e) => {
|
|
|
91
91
|
},
|
|
92
92
|
".picture-title": {
|
|
93
93
|
marginTop: "8px",
|
|
94
|
-
color:
|
|
94
|
+
color: t.textColor3,
|
|
95
95
|
fontSize: "12px"
|
|
96
96
|
}
|
|
97
|
-
},
|
|
98
|
-
[`${t}-admin`]: {
|
|
99
|
-
".picture-context": {
|
|
100
|
-
".picture-upload": {
|
|
101
|
-
border: "1px dashed #d9d9d9",
|
|
102
|
-
background: "#fafafa",
|
|
103
|
-
color: "#bfbfbf",
|
|
104
|
-
"&:hover": {
|
|
105
|
-
border: "1px dashed #34b77c"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
".picture-item": {
|
|
109
|
-
border: "1px solid #d9d9d9"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
".picture-title": {
|
|
113
|
-
color: "#999"
|
|
114
|
-
}
|
|
115
97
|
}
|
|
116
98
|
};
|
|
117
99
|
};
|
|
118
100
|
export {
|
|
119
|
-
|
|
101
|
+
r as pictureStyle
|
|
120
102
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const r = (e) => {
|
|
2
2
|
const { componentCls: i } = e, t = `${i}-single-file`;
|
|
3
3
|
return {
|
|
4
4
|
[t]: {
|
|
@@ -9,7 +9,7 @@ const n = (e) => {
|
|
|
9
9
|
height: "200px",
|
|
10
10
|
overflow: "hidden",
|
|
11
11
|
transition: "all 0.3s",
|
|
12
|
-
border:
|
|
12
|
+
border: `1px dashed ${e.borderColorBase}`,
|
|
13
13
|
borderRadius: "4px",
|
|
14
14
|
background: "#f2f6f9",
|
|
15
15
|
userSelect: "none",
|
|
@@ -26,13 +26,13 @@ const n = (e) => {
|
|
|
26
26
|
},
|
|
27
27
|
".state-un-title": {
|
|
28
28
|
marginTop: "10px",
|
|
29
|
-
color:
|
|
29
|
+
color: e.textColor1,
|
|
30
30
|
fontSize: e.fontSizeLG,
|
|
31
31
|
lineHeight: e.lineHeightLG
|
|
32
32
|
},
|
|
33
33
|
".state-un-subtitle": {
|
|
34
34
|
marginTop: "4px",
|
|
35
|
-
color:
|
|
35
|
+
color: e.textColor4,
|
|
36
36
|
fontSize: "12px",
|
|
37
37
|
lineHeight: "18px"
|
|
38
38
|
}
|
|
@@ -89,20 +89,9 @@ const n = (e) => {
|
|
|
89
89
|
border: "1px dashed #0070ff",
|
|
90
90
|
background: "rgb(0 112 255 / 10%)"
|
|
91
91
|
}
|
|
92
|
-
},
|
|
93
|
-
[`${t}-admin`]: {
|
|
94
|
-
border: "1px dashed #D9D9D9",
|
|
95
|
-
".state-un": {
|
|
96
|
-
".state-un-title": {
|
|
97
|
-
color: "#333"
|
|
98
|
-
},
|
|
99
|
-
".state-un-subtitle": {
|
|
100
|
-
color: "#BFBFBF"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
92
|
}
|
|
104
93
|
};
|
|
105
94
|
};
|
|
106
95
|
export {
|
|
107
|
-
|
|
96
|
+
r as singleFileStyle
|
|
108
97
|
};
|