@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.
Files changed (111) hide show
  1. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
  2. package/es/src/ap-descriptions/style/index.mjs +16 -43
  3. package/es/src/ap-download/ap-download.vue.mjs +43 -43
  4. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  5. package/es/src/ap-download/hooks/useStyle.mjs +17 -14
  6. package/es/src/ap-download/style/index.mjs +6 -13
  7. package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
  8. package/es/src/ap-form/style/modal-form.mjs +14 -15
  9. package/es/src/ap-form/style/search-form-sorter.mjs +26 -26
  10. package/es/src/ap-form/style/token.d.ts +4 -0
  11. package/es/src/ap-grid/style/index.mjs +3 -3
  12. package/es/src/ap-pro-card/style/statistic.mjs +3 -3
  13. package/es/src/ap-pro-card/style/token.mjs +1 -1
  14. package/es/src/ap-table/style/index.mjs +2 -2
  15. package/es/src/ap-table/style/setting.mjs +2 -2
  16. package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
  17. package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
  18. package/es/src/ap-tag/style/group.mjs +2 -8
  19. package/es/src/ap-tag/style/index.mjs +14 -23
  20. package/es/src/ap-upload/apUpload.vue.mjs +39 -39
  21. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
  22. package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
  23. package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
  24. package/es/src/ap-upload/style/multiple-file.mjs +13 -40
  25. package/es/src/ap-upload/style/picture.mjs +12 -30
  26. package/es/src/ap-upload/style/single-file.mjs +5 -16
  27. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  28. package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
  29. package/es/src/business/ap-copy/style/index.mjs +1 -1
  30. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
  31. package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
  32. package/es/src/business/ap-ladder/style/index.mjs +9 -34
  33. package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
  34. package/es/src/business/ap-product-info/style/index.mjs +8 -24
  35. package/es/src/business/ap-radio-group/style/index.mjs +1 -1
  36. package/es/src/business/ap-size-input/ApSizeInput.mjs +1 -1
  37. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
  38. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
  39. package/es/src/business/ap-title/style/index.mjs +1 -1
  40. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
  41. package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
  42. package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
  43. package/es/src/business/batch-input-group/style/index.mjs +1 -1
  44. package/es/src/check-card/style/index.mjs +31 -31
  45. package/es/src/design-token/constants.mjs +4 -2
  46. package/es/src/design-token/interface.d.ts +36 -39
  47. package/es/src/scroll-bar/style/index.mjs +12 -12
  48. package/es/src/splitter/style/index.mjs +6 -6
  49. package/es/src/style/index.mjs +1 -1
  50. package/es/src/text/style/index.mjs +1 -1
  51. package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  52. package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
  53. package/es/src/utils/cssinjs/index.mjs +23 -22
  54. package/es/src/version.d.ts +1 -1
  55. package/es/src/version.mjs +1 -1
  56. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  57. package/lib/src/ap-descriptions/style/index.js +1 -1
  58. package/lib/src/ap-download/ap-download.vue.js +1 -1
  59. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  60. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  61. package/lib/src/ap-download/style/index.js +1 -1
  62. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  63. package/lib/src/ap-form/style/modal-form.js +1 -1
  64. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  65. package/lib/src/ap-form/style/token.d.ts +4 -0
  66. package/lib/src/ap-grid/style/index.js +1 -1
  67. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  68. package/lib/src/ap-pro-card/style/token.js +1 -1
  69. package/lib/src/ap-table/style/index.js +1 -1
  70. package/lib/src/ap-table/style/setting.js +1 -1
  71. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  72. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  73. package/lib/src/ap-tag/style/group.js +1 -1
  74. package/lib/src/ap-tag/style/index.js +1 -1
  75. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  76. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  77. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  78. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  79. package/lib/src/ap-upload/style/multiple-file.js +1 -1
  80. package/lib/src/ap-upload/style/picture.js +1 -1
  81. package/lib/src/ap-upload/style/single-file.js +1 -1
  82. package/lib/src/business/ap-appendix/style/index.js +1 -1
  83. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  84. package/lib/src/business/ap-copy/style/index.js +1 -1
  85. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  86. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  87. package/lib/src/business/ap-ladder/style/index.js +1 -1
  88. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  89. package/lib/src/business/ap-product-info/style/index.js +1 -1
  90. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  91. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  92. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  93. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  94. package/lib/src/business/ap-title/style/index.js +1 -1
  95. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  96. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  97. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  98. package/lib/src/business/batch-input-group/style/index.js +1 -1
  99. package/lib/src/check-card/style/index.js +1 -1
  100. package/lib/src/design-token/constants.js +1 -1
  101. package/lib/src/design-token/interface.d.ts +36 -39
  102. package/lib/src/scroll-bar/style/index.js +1 -1
  103. package/lib/src/splitter/style/index.js +1 -1
  104. package/lib/src/style/index.js +1 -1
  105. package/lib/src/text/style/index.js +1 -1
  106. package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  107. package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
  108. package/lib/src/utils/cssinjs/index.js +1 -1
  109. package/lib/src/version.d.ts +1 -1
  110. package/lib/src/version.js +1 -1
  111. package/package.json +1 -1
@@ -1,43 +1,44 @@
1
- import { defineComponent as le, inject as o, ref as g, watch as se, computed as re, createElementBlock as x, openBlock as h, normalizeClass as ie, unref as a, createElementVNode as r, createCommentVNode as z, toDisplayString as A, normalizeStyle as ce, createBlock as ue, withModifiers as pe, createVNode as de } from "vue";
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 ye } from "@ant-design/icons-vue";
7
+ import { DeleteOutlined as ke } from "@ant-design/icons-vue";
8
8
  import q from "../assets/single-file-icon.png.mjs";
9
- import ke from "../style/index.mjs";
10
- import { useLocale as De } from "../../config-provider/hooks/use-locale.mjs";
11
- import { useNamespace as we } from "../../config-provider/hooks/use-namespace.mjs";
12
- const Ue = ["accept"], Fe = {
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
- }, Ce = ["src"], Ee = { class: "state-un-title" }, Se = { class: "state-un-subtitle" }, Ne = {
16
+ }, Se = ["src"], Ee = { class: "state-un-title" }, Ne = { class: "state-un-subtitle" }, xe = {
16
17
  key: 1,
17
18
  class: "state-ing"
18
- }, xe = { class: "left" }, ze = ["src"], Ae = { class: "center" }, be = { class: "center-progress" }, Ge = /* @__PURE__ */ le({
19
+ }, ze = { class: "left" }, be = ["src"], Ae = { class: "center" }, Re = { class: "center-progress" }, He = /* @__PURE__ */ ne({
19
20
  __name: "SingleFile",
20
- setup(Re, { expose: j }) {
21
- const { t: s } = De(), { b: _ } = we("ap-upload-single-file"), G = ke("ap-upload"), { put: W, client: b } = fe(), y = o("theme"), H = o("dirName"), k = o("accept") || "*", D = o("maxSize") ?? 500, J = o("title") || s("ap.apUpload.clickOrDragUpload"), w = o("subTitle"), i = o("value"), U = o("needName"), u = o("uploadingCount"), R = o("beforeUpload"), B = o("customRequest"), K = o("getOssAccess"), Q = o("maxSizeErrorMsg"), X = o("acceptErrorMsg"), M = o("onRemove"), F = o("showUploadErrorMsg"), n = g(null);
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
- n.value === null && e && O(e);
26
+ o.value === null && e && P(e);
26
27
  },
27
28
  { immediate: !0 }
28
29
  );
29
- function O(e) {
30
+ function P(e) {
30
31
  e ? setTimeout(() => {
31
- const t = ve(U, e);
32
- l.value = 3, n.value = new File([e], t, {}), i.value = e;
33
- }) : (l.value = 1, n.value = null, i.value = void 0);
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: O });
36
- const l = g(1), d = g(0), v = g(null), P = re(() => n.value && i?.value);
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
- l.value === 1 && v.value?.click();
39
+ n.value === 1 && v.value?.click();
39
40
  }
40
- function T(e) {
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(), l.value !== 1)
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 E = t.items[C];
59
- if (E.kind === "file" && E.webkitGetAsEntry().isFile) {
60
- var ne = E.getAsFile();
61
- f.push(ne), p();
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 N = 0; N < I; N++) {
66
- var m = t.files[N];
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 S = new FileReader();
72
- S.readAsDataURL(m.slice(0, 3)), S.addEventListener(
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
- ), S.addEventListener(
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 > D * 1024 * 1024) {
97
+ if (e[0].size > k * 1024 * 1024) {
97
98
  c.warning(
98
99
  Q || s("ap.apUpload.maxUploadFileSize", {
99
- maxSize: D
100
+ maxSize: k
100
101
  })
101
102
  );
102
103
  return;
103
104
  }
104
- if (!ge(e[0], k)) {
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 (n.value = e[0], l.value = 2, d.value = 0, u.value++, typeof B == "function") {
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
- F && c.warning(t || s("ap.apUpload.networkAnomaly")), l.value = 1, n.value = null, u.value--;
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
- U,
123
+ w,
123
124
  t,
124
- n.value.name
125
- ), l.value = 3, u.value--;
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: n.value,
134
+ file: o.value,
134
135
  dirName: H,
135
136
  oss: b,
136
137
  successCallBack(t) {
137
138
  i.value = $(
138
- U,
139
+ w,
139
140
  t,
140
- n.value.name
141
- ), l.value = 3, u.value--;
141
+ o.value.name
142
+ ), n.value = 3, u.value--;
142
143
  },
143
144
  errorCallBack(t) {
144
- F && c.warning(t || s("ap.apUpload.networkAnomaly")), l.value = 1, n.value = null, u.value--;
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
- F && c.warning(
152
+ U && c.warning(
152
153
  typeof t?.message == "string" ? t.message : s("ap.apUpload.networkAnomaly")
153
- ), l.value = 1, n.value = null, u.value--;
154
+ ), n.value = 1, o.value = null, u.value--;
154
155
  }
155
156
  }
156
157
  }
157
158
  function oe() {
158
- M && M?.(n.value), n.value && !i?.value && b.pauseUpload(), l.value = 1, n.value = null, i.value = void 0;
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(), x("div", {
161
+ return (e, t) => (h(), E("div", {
161
162
  class: ie({
162
- [a(_)()]: !0,
163
- [a(_)("admin")]: a(y) === "admin",
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: T,
168
+ onDragenter: O,
169
169
  onDragover: Z,
170
- onDragleave: T,
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(k),
178
+ accept: a(_),
179
179
  onChange: ae
180
- }, null, 40, Ue),
181
- l.value === 1 ? (h(), x("div", Fe, [
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, Ce),
186
- r("div", Ee, A(a(J)), 1),
187
- r("div", Se, A(typeof a(w) == "string" && a(w).length > 0 ? a(w) : `${a(s)("ap.apUpload.supportExtension")}:${a(he)(
188
- a(k)
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(D)
190
+ maxSize: a(k)
191
191
  })}`), 1)
192
- ])) : z("", !0),
193
- [2, 3].includes(l.value) ? (h(), x("div", Ne, [
194
- r("div", xe, [
195
- r("img", { src: a(q) }, null, 8, ze)
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: P.value ? "#0070FF" : "#182948"
201
+ color: T.value ? "#0070FF" : "#182948"
202
202
  })
203
- }, A(n.value?.name), 5),
204
- r("div", be, [
205
- P.value ? z("", !0) : (h(), ue(a(_e), {
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(y) === "admin" ? "#D9D9D9" : "#DEE4ED",
211
- "stroke-color": a(y) === "admin" ? "#34B77C" : "#0070FF"
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(ye))
219
+ de(a(ke))
220
220
  ])
221
- ])) : z("", !0)
221
+ ])) : N("", !0)
222
222
  ], 34));
223
223
  }
224
224
  });
225
225
  export {
226
- Ge as default
226
+ He as default
227
227
  };
@@ -1,7 +1,7 @@
1
- const a = (t) => {
2
- const { componentCls: l } = t, o = `${l}-multiple-file`;
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: "1px solid #dee4ed",
13
+ border: `1px solid ${l.borderColorBase}`,
14
14
  borderRadius: "4px",
15
- color: "#182948",
15
+ color: l.textColor1,
16
16
  "&:hover": {
17
- borderColor: "#0070ff",
18
- color: "#0070ff"
17
+ borderColor: l.colorPrimary,
18
+ color: l.colorPrimary
19
19
  }
20
20
  },
21
21
  ".sub-title": {
22
22
  paddingLeft: "16px",
23
- color: "#8896b0",
24
- fontSize: t.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: "rgb(245 249 250)",
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: "#abb7cc"
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: "#0070ff"
56
+ color: l.colorLink
57
57
  },
58
58
  ".ant-upload-list-item-undefined": {
59
- color: "#0070ff"
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 i = (e) => {
2
- const { componentCls: o } = e, t = `${o}-picture`;
1
+ const r = (t) => {
2
+ const { componentCls: e } = t;
3
3
  return {
4
- [t]: {
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: "1px dashed #dee4ed",
18
+ border: `1px dashed ${t.borderColorBase}`,
19
19
  borderRadius: "4px",
20
- background: "#f2f6f9",
21
- color: "#abb7cc",
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: e.fontSize },
25
+ "& > * + *": { marginTop: "4px", fontSize: t.fontSize },
26
26
  "&:hover": {
27
- border: "1px dashed #0070ff"
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: "1px solid #dee4ed",
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: e.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: "#8896b0",
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
- i as pictureStyle
101
+ r as pictureStyle
120
102
  };
@@ -1,4 +1,4 @@
1
- const n = (e) => {
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: "1px dashed #dee4ed",
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: "#182948",
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: "#abb7cc",
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
- n as singleFileStyle
96
+ r as singleFileStyle
108
97
  };
@@ -51,7 +51,7 @@ const r = (o) => {
51
51
  ".ant-typography": {
52
52
  fontSize: o.fontSize,
53
53
  lineHeight: o.lineHeight,
54
- color: o.textColor2,
54
+ color: o.textColor1,
55
55
  transition: "color 0.2s"
56
56
  }
57
57
  },