geekplus-digital-ui 0.1.19 → 0.1.20

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.
@@ -1 +1 @@
1
- .d-upload[data-v-bdfedf5a]{line-height:normal}.d-upload.is-list[data-v-bdfedf5a],.d-upload.is-list .list[data-v-bdfedf5a]{display:flex;flex-direction:column;gap:8px}.d-upload.is-list .list .list-item .file-row[data-v-bdfedf5a]{position:relative;display:flex;align-items:center;gap:10px}.d-upload.is-list .list .list-item .file-row[data-v-bdfedf5a] .el-link{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.d-upload.is-list .list .list-item .file-row[data-v-bdfedf5a] .el-link .el-link__inner{display:inline}.d-upload.is-list .list .list-item .file-row .remove-icon[data-v-bdfedf5a]{cursor:pointer;display:none;color:var(--el-text-color-secondary)}.d-upload.is-list .list .list-item .file-row:hover .remove-icon[data-v-bdfedf5a]{display:block}.d-upload.is-card[data-v-bdfedf5a],.d-upload.is-card .card[data-v-bdfedf5a]{display:flex;flex-wrap:wrap;gap:8px}.d-upload.is-card .card .card-item[data-v-bdfedf5a]{display:flex;justify-content:center;align-items:center;font-size:16px;border:1px solid var(--el-border-color);border-radius:4px;overflow:hidden;position:relative;cursor:pointer}.d-upload.is-card .card .card-item .card-cover[data-v-bdfedf5a]{display:flex;justify-content:center;align-items:center;gap:10px;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--el-overlay-color);opacity:0}.d-upload.is-card .card .card-item .card-cover .d-icon[data-v-bdfedf5a]{color:var(--el-color-white)}.d-upload.is-card .card .card-item .card-cover[data-v-bdfedf5a]:hover{opacity:1}.d-upload.is-card .card .el-image[data-v-bdfedf5a]{width:100%;height:100%}.d-upload .expand-toggle[data-v-bdfedf5a]{width:100%}.d-upload .expand-toggle[data-v-bdfedf5a] .el-link__inner{gap:5px}.d-upload .tip[data-v-bdfedf5a]{width:100%;font-size:12px;margin:0;color:var(--el-text-color-regular)}
1
+ .d-upload[data-v-10f8e9fe]{line-height:normal}.d-upload.is-list[data-v-10f8e9fe],.d-upload.is-list .list[data-v-10f8e9fe]{display:flex;flex-direction:column;gap:8px}.d-upload.is-list .list .list-item .file-row[data-v-10f8e9fe]{position:relative;display:flex;align-items:center;gap:10px}.d-upload.is-list .list .list-item .file-row[data-v-10f8e9fe] .el-link{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.d-upload.is-list .list .list-item .file-row[data-v-10f8e9fe] .el-link .el-link__inner{display:inline}.d-upload.is-list .list .list-item .file-row .remove-icon[data-v-10f8e9fe]{cursor:pointer;display:none;color:var(--el-text-color-secondary)}.d-upload.is-list .list .list-item .file-row:hover .remove-icon[data-v-10f8e9fe]{display:block}.d-upload.is-card[data-v-10f8e9fe],.d-upload.is-card .card[data-v-10f8e9fe]{display:flex;flex-wrap:wrap;gap:8px}.d-upload.is-card .card .card-item[data-v-10f8e9fe]{display:flex;justify-content:center;align-items:center;font-size:16px;border:1px solid var(--el-border-color);border-radius:4px;overflow:hidden;position:relative;cursor:pointer}.d-upload.is-card .card .card-item .card-cover[data-v-10f8e9fe]{display:flex;justify-content:center;align-items:center;gap:10px;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--el-overlay-color);opacity:0}.d-upload.is-card .card .card-item .card-cover .d-icon[data-v-10f8e9fe]{color:var(--el-color-white)}.d-upload.is-card .card .card-item .card-cover[data-v-10f8e9fe]:hover{opacity:1}.d-upload.is-card .card .el-image[data-v-10f8e9fe]{width:100%;height:100%}.d-upload .expand-toggle[data-v-10f8e9fe]{width:100%}.d-upload .expand-toggle[data-v-10f8e9fe] .el-link__inner{gap:5px}.d-upload .tip[data-v-10f8e9fe]{width:100%;font-size:12px;margin:0;color:var(--el-text-color-regular)}
@@ -1,31 +1,31 @@
1
- import { useModel as fe, ref as y, computed as m, reactive as Ue, watch as Ve, onMounted as De, onBeforeUnmount as Ee, openBlock as o, createElementBlock as f, normalizeClass as Ie, createVNode as d, unref as n, createBlock as c, createCommentVNode as p, withCtx as r, createElementVNode as _, createTextVNode as C, toDisplayString as k, normalizeStyle as M, Fragment as j, renderList as me, withModifiers as ve, mergeModels as ye } from "vue";
1
+ import { useModel as fe, ref as y, computed as m, reactive as Ve, watch as De, onMounted as Ee, onBeforeUnmount as Ie, openBlock as o, createElementBlock as f, normalizeClass as Ne, createVNode as d, unref as n, createBlock as c, createCommentVNode as p, withCtx as r, createElementVNode as C, createTextVNode as S, toDisplayString as k, normalizeStyle as M, Fragment as R, renderList as me, withModifiers as ve, mergeModels as ye } from "vue";
2
2
  import "../../../hooks/index.js";
3
- import { useFormItem as Ne, ElMessageBox as Be, ElMessage as R, ElUpload as $e, ElImageViewer as Pe, ElDialog as je, ElButton as F, ElImage as Re, ElProgress as he, ElLink as H } from "element-plus";
3
+ import { useFormItem as Be, ElMessageBox as $e, ElMessage as H, ElUpload as je, ElImageViewer as Pe, ElDialog as Re, ElButton as F, ElImage as He, ElProgress as he, ElLink as q } from "element-plus";
4
4
  import "../../index.js";
5
- import { isFunction as He } from "lodash-es";
6
- import { saveAs as qe } from "file-saver";
7
- import Oe from "../../icons/angle-down-light.vue.js";
8
- import Ke from "../../icons/angle-up-light.vue.js";
9
- import Xe from "../../icons/circle-play-light.vue.js";
10
- import Ge from "../../icons/circle-xmark-light.vue.js";
11
- import Je from "../../icons/download-light.vue.js";
12
- import Qe from "../../icons/eye-light.vue.js";
13
- import We from "../../icons/file-light.vue.js";
14
- import Ye from "../../icons/plus-light.vue.js";
15
- import Ze from "../../icons/trash-light.vue.js";
5
+ import { isFunction as qe } from "lodash-es";
6
+ import { saveAs as Oe } from "file-saver";
7
+ import Ke from "../../icons/angle-down-light.vue.js";
8
+ import Xe from "../../icons/angle-up-light.vue.js";
9
+ import Ge from "../../icons/circle-play-light.vue.js";
10
+ import Je from "../../icons/circle-xmark-light.vue.js";
11
+ import Qe from "../../icons/download-light.vue.js";
12
+ import We from "../../icons/eye-light.vue.js";
13
+ import Ye from "../../icons/file-light.vue.js";
14
+ import Ze from "../../icons/plus-light.vue.js";
15
+ import et from "../../icons/trash-light.vue.js";
16
16
  import './upload2.css';import './upload.css';/* empty css */
17
17
  /* empty css */
18
- import et from "../../../_virtual/_plugin-vue_export-helper.js";
19
- import { useLocale as tt } from "../../../hooks/use-locale/index.js";
20
- import { useActivated as lt } from "../../../hooks/use-activated/index.js";
18
+ import tt from "../../../_virtual/_plugin-vue_export-helper.js";
19
+ import { useLocale as lt } from "../../../hooks/use-locale/index.js";
20
+ import { useActivated as at } from "../../../hooks/use-activated/index.js";
21
21
  import { DIcon as h } from "../../icon/index.js";
22
- const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
22
+ const ot = { class: "d-upload__preview" }, nt = ["src"], st = { key: 2 }, it = {
23
23
  key: 0,
24
24
  style: { width: "100%" }
25
- }, it = ["onClick"], rt = { class: "card-cover" }, ut = ["innerHTML"], dt = { class: "file-row" }, ct = {
25
+ }, rt = ["onClick"], ut = { class: "card-cover" }, dt = ["innerHTML"], ct = { class: "file-row" }, pt = {
26
26
  key: 6,
27
27
  class: "expand-toggle"
28
- }, pt = /* @__PURE__ */ Object.assign({
28
+ }, ft = /* @__PURE__ */ Object.assign({
29
29
  name: "DUpload"
30
30
  }, {
31
31
  __name: "upload",
@@ -105,17 +105,17 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
105
105
  }),
106
106
  emits: /* @__PURE__ */ ye(["change", "success"], ["update:modelValue", "update:uploadingCount"]),
107
107
  setup(g, { emit: ge }) {
108
- const a = g, q = ge, O = fe(g, "modelValue"), K = fe(g, "uploadingCount"), X = ["jpg", "jpeg", "png", "gif"], ke = ["mp4"], s = y([]), z = y(!1), w = y(!1), U = y(0), V = y([]), L = y(""), x = y(!1), G = y(null), J = y(null), { t: u } = tt(), we = lt(), { formItem: xe } = Ne(), D = m(() => x.value ? s.value : s.value.slice(0, a.maxShow)), E = m(() => s.value.length > 0), I = m(() => !a.disabled && !Q.value), b = m(() => a.showType === "list"), Q = m(() => s.value.length >= a.maxNumber), Se = m(() => b.value ? "is-list" : "is-card"), W = m(() => a.format.length ? a.format.map((t) => t.toUpperCase()) : []), Y = m(() => ({
108
+ const a = g, O = ge, K = fe(g, "modelValue"), ke = fe(g, "uploadingCount"), X = ["jpg", "jpeg", "png", "gif"], we = ["mp4"], s = y([]), z = y(!1), w = y(!1), V = y(0), D = y([]), L = y(""), x = y(!1), G = y(null), J = y(null), { t: u } = lt(), xe = at(), { formItem: _e } = Be(), E = m(() => x.value ? s.value : s.value.slice(0, a.maxShow)), I = m(() => s.value.length > 0), N = m(() => !a.disabled && !Q.value), b = m(() => a.showType === "list"), Q = m(() => s.value.length >= a.maxNumber), Ce = m(() => b.value ? "is-list" : "is-card"), W = m(() => a.format.length ? a.format.map((t) => t.toUpperCase()) : []), Y = m(() => ({
109
109
  width: a.size,
110
110
  height: a.size
111
- })), _e = m(() => a.format.map((t) => `.${t}`).join(",")), Z = m(() => ({
111
+ })), Se = m(() => a.format.map((t) => `.${t}`).join(",")), Z = m(() => ({
112
112
  maxHeight: a.scrollHeight,
113
113
  overflow: "auto"
114
- })), Ce = m(() => {
114
+ })), Le = m(() => {
115
115
  const t = a.format.length && a.format.every((e) => X.includes(e)), l = [];
116
116
  return a.maxSize && !t && l.push(u("d.upload.lessThan", { size: a.maxSize })), a.format.length && l.push(u("d.upload.format", { format: a.format.join("/") })), a.pasteable && l.push(u("d.upload.pasteable")), l.join(u("d.upload.comma"));
117
- }), Le = (t) => {
118
- s.value.some((e) => e.uploadStatus === "processing") || (s.value = t?.map((e) => ({
117
+ }), be = (t) => {
118
+ s.value.some((e) => e.status === "uploading") || (s.value = t?.map((e) => ({
119
119
  id: e.id,
120
120
  name: e.name || e.docName,
121
121
  docName: e.name || e.docName,
@@ -123,20 +123,20 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
123
123
  docUrl: e.url || e.docUrl,
124
124
  type: a.docType || e.type || e.docType,
125
125
  docType: a.docType || e.type || e.docType,
126
- uploadStatus: "finished"
127
- })) || []);
128
- }, N = (t) => {
126
+ status: "success"
127
+ })) || [], A());
128
+ }, B = (t) => {
129
129
  if (t) {
130
130
  const l = t.split(".");
131
131
  return l[l.length - 1].toLowerCase();
132
132
  }
133
133
  return "";
134
- }, S = (t) => X.includes(N(t.name)), T = (t) => ke.includes(N(t.name)), A = (t) => t?.uploadStatus === "finished", ee = (t) => !a.disabled && A(t), te = () => {
134
+ }, _ = (t) => X.includes(B(t.name)), T = (t) => we.includes(B(t.name)), U = (t) => t?.status === "success", ee = (t) => !a.disabled && U(t), te = () => {
135
135
  G.value?.$el.querySelector("input")?.click();
136
- }, be = (t) => {
137
- if (U.value = 0, V.value = [], L.value = "", S(t)) {
138
- const l = s.value.filter((e) => S(e));
139
- U.value = l.findIndex((e) => e.url === t.url), V.value = l.map((e) => e.url), z.value = !0;
136
+ }, Te = (t) => {
137
+ if (V.value = 0, D.value = [], L.value = "", _(t)) {
138
+ const l = s.value.filter((e) => _(e));
139
+ V.value = l.findIndex((e) => e.url === t.url), D.value = l.map((e) => e.url), z.value = !0;
140
140
  }
141
141
  T(t) && (L.value = t.url, w.value = !0);
142
142
  }, le = () => {
@@ -144,49 +144,51 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
144
144
  }, ae = (t) => {
145
145
  const l = () => {
146
146
  const i = s.value.indexOf(t);
147
- i !== -1 && (s.value.splice(i, 1), oe(t));
147
+ i !== -1 && (s.value.splice(i, 1), A(), oe(t));
148
148
  }, e = async () => {
149
- if (!A(t)) {
149
+ if (!U(t)) {
150
150
  l();
151
151
  return;
152
152
  }
153
153
  l();
154
154
  };
155
- Be.confirm(u("d.upload.deleteConfirm"), u("d.upload.tip"), {
155
+ $e.confirm(u("d.upload.deleteConfirm"), u("d.upload.tip"), {
156
156
  type: "warning"
157
157
  }).then(async () => {
158
158
  await e();
159
159
  }).catch(() => {
160
160
  });
161
- }, Te = (t, l) => {
162
- R.success(u("d.upload.fileSuccess", { file: t.name })), q("success", t, l, s.value);
161
+ }, Ue = (t, l) => {
162
+ H.success(u("d.upload.fileSuccess", { file: t.name })), O("success", t, l, s.value);
163
163
  }, Ae = (t, l) => {
164
- const e = N(t.name);
164
+ const e = B(t.name);
165
165
  if (e) {
166
166
  const i = e.toUpperCase();
167
167
  if (W.value.length && !W.value.includes(i))
168
- return l || R.error(u("d.upload.fileFormat", { file: t.name, format: a.format.join("/") })), !1;
168
+ return l || H.error(u("d.upload.fileFormat", { file: t.name, format: a.format.join("/") })), !1;
169
169
  }
170
170
  return !0;
171
- }, Me = (t) => t.size > a.maxSize * 1024 * 1024 ? (R.error(u("d.upload.fileLessThan", { file: t.name, size: a.maxSize })), !1) : !0, Fe = (t, l) => {
171
+ }, Me = (t) => t.size > a.maxSize * 1024 * 1024 ? (H.error(u("d.upload.fileLessThan", { file: t.name, size: a.maxSize })), !1) : !0, Fe = (t, l) => {
172
172
  if (!l)
173
173
  return;
174
174
  const { loaded: e = 0, total: i = 0 } = t || {};
175
175
  i > 0 && (l.percentage = Math.floor(e / i * 100));
176
176
  }, oe = (t) => {
177
- O.value = s.value, q("change", t, s.value), xe?.validate("change");
177
+ K.value = s.value, O("change", t, s.value), _e?.validate("change");
178
+ }, A = () => {
179
+ ke.value = s.value.filter((t) => t.status === "uploading").length;
178
180
  }, ne = (t, l) => (Ae(t, l) && Me(t) && ze(t), !1), ze = async (t) => {
179
181
  if (Q.value)
180
182
  return !1;
181
- x.value || B();
183
+ x.value || $();
182
184
  const l = new FormData();
183
185
  l.append("file", t);
184
- const e = Ue({
185
- uploadStatus: "processing",
186
+ const e = Ve({
187
+ status: "uploading",
186
188
  percentage: 0,
187
189
  name: t.name
188
190
  });
189
- s.value.push(e), K.value++;
191
+ s.value.push(e), A();
190
192
  const i = () => s.value.indexOf(e);
191
193
  try {
192
194
  const { data: v } = await a.axios({
@@ -194,14 +196,14 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
194
196
  method: "post",
195
197
  data: l,
196
198
  onUploadProgress: (P) => Fe(P, e)
197
- }), $ = v?.data || v;
198
- if ($ && i() !== -1) {
199
+ }), j = v?.data || v;
200
+ if (j && i() !== -1) {
199
201
  const {
200
202
  id: P,
201
203
  name: de,
202
204
  url: ce,
203
205
  type: pe
204
- } = $;
206
+ } = j;
205
207
  Object.assign(e, {
206
208
  id: P,
207
209
  name: de,
@@ -210,20 +212,20 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
210
212
  docUrl: a.domain + ce,
211
213
  type: a.docType || pe,
212
214
  docType: a.docType || pe,
213
- uploadStatus: "finished"
214
- }), Te($, e);
215
+ status: "success"
216
+ }), Ue(j, e);
215
217
  } else i() !== -1 && s.value.splice(i(), 1);
216
218
  } catch {
217
219
  i() !== -1 && s.value.splice(i(), 1);
218
220
  } finally {
219
- K.value--, oe(e);
221
+ A(), oe(e);
220
222
  }
221
223
  }, se = (t) => {
222
- t?.url && qe(t.url, t.name);
223
- }, B = () => {
224
+ t?.url && Oe(t.url, t.name);
225
+ }, $ = () => {
224
226
  x.value = !x.value;
225
227
  }, ie = (t) => {
226
- if (!a.pasteable || a.disabled || !we.value)
228
+ if (!a.pasteable || a.disabled || !xe.value)
227
229
  return;
228
230
  const l = t.clipboardData?.items || [];
229
231
  for (let e = 0; e < l.length; e++) {
@@ -231,32 +233,32 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
231
233
  v && ne(v, !0);
232
234
  }
233
235
  }, re = (t) => {
234
- !E.value || !t?.url || (S(t) || T(t) ? be(t) : se(t));
236
+ !I.value || !t?.url || (_(t) || T(t) ? Te(t) : se(t));
235
237
  }, ue = () => {
236
- He(a.downloadAllMethod) ? a.downloadAllMethod(s.value) : s.value.forEach((t) => {
238
+ qe(a.downloadAllMethod) ? a.downloadAllMethod(s.value) : s.value.forEach((t) => {
237
239
  se(t);
238
240
  });
239
241
  };
240
- return Ve(
241
- O,
242
+ return De(
243
+ K,
242
244
  (t) => {
243
- Le(t);
245
+ be(t);
244
246
  },
245
247
  { immediate: !0 }
246
- ), De(() => {
248
+ ), Ee(() => {
247
249
  document.addEventListener("paste", ie);
248
- }), Ee(() => {
250
+ }), Ie(() => {
249
251
  document.removeEventListener("paste", ie);
250
252
  }), (t, l) => (o(), f("div", {
251
- class: Ie(["d-upload", Se.value])
253
+ class: Ne(["d-upload", Ce.value])
252
254
  }, [
253
- d(n($e), {
255
+ d(n(je), {
254
256
  ref_key: "uploadRef",
255
257
  ref: G,
256
258
  style: { display: "none" },
257
259
  "show-file-list": !1,
258
260
  "file-list": s.value,
259
- accept: _e.value,
261
+ accept: Se.value,
260
262
  "before-upload": ne,
261
263
  "with-credentials": "",
262
264
  multiple: "",
@@ -264,13 +266,13 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
264
266
  }, null, 8, ["file-list", "accept"]),
265
267
  z.value ? (o(), c(n(Pe), {
266
268
  key: 0,
267
- "url-list": V.value,
268
- "initial-index": U.value,
269
+ "url-list": D.value,
270
+ "initial-index": V.value,
269
271
  "hide-on-click-modal": "",
270
272
  teleported: "",
271
273
  onClose: l[0] || (l[0] = (e) => z.value = !1)
272
274
  }, null, 8, ["url-list", "initial-index"])) : p("", !0),
273
- w.value ? (o(), c(n(je), {
275
+ w.value ? (o(), c(n(Re), {
274
276
  key: 1,
275
277
  modelValue: w.value,
276
278
  "onUpdate:modelValue": l[1] || (l[1] = (e) => w.value = e),
@@ -283,13 +285,13 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
283
285
  footer: r(() => [
284
286
  d(n(F), { onClick: le }, {
285
287
  default: r(() => [
286
- C(k(n(u)("d.upload.close")), 1)
288
+ S(k(n(u)("d.upload.close")), 1)
287
289
  ]),
288
290
  _: 1
289
291
  })
290
292
  ]),
291
293
  default: r(() => [
292
- _("div", at, [
294
+ C("div", ot, [
293
295
  L.value ? (o(), f("video", {
294
296
  key: 0,
295
297
  ref_key: "videoRef",
@@ -297,29 +299,29 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
297
299
  src: L.value,
298
300
  controls: "",
299
301
  class: "preview-video"
300
- }, null, 8, ot)) : p("", !0)
302
+ }, null, 8, nt)) : p("", !0)
301
303
  ])
302
304
  ]),
303
305
  _: 1
304
306
  }, 8, ["modelValue", "title"])) : p("", !0),
305
- b.value ? (o(), f("div", nt, [
306
- I.value ? (o(), c(n(F), {
307
+ b.value ? (o(), f("div", st, [
308
+ N.value ? (o(), c(n(F), {
307
309
  key: 0,
308
310
  onClick: te
309
311
  }, {
310
312
  default: r(() => [
311
- C(k(n(u)("d.upload.upload")), 1)
313
+ S(k(n(u)("d.upload.upload")), 1)
312
314
  ]),
313
315
  _: 1
314
316
  })) : p("", !0),
315
- g.showDownloadAll && E.value ? (o(), c(n(F), {
317
+ g.showDownloadAll && I.value ? (o(), c(n(F), {
316
318
  key: 1,
317
319
  type: "primary",
318
320
  link: "",
319
321
  onClick: ue
320
322
  }, {
321
323
  default: r(() => [
322
- C(k(n(u)("d.upload.downloadAll")), 1)
324
+ S(k(n(u)("d.upload.downloadAll")), 1)
323
325
  ]),
324
326
  _: 1
325
327
  })) : p("", !0)
@@ -329,49 +331,49 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
329
331
  class: "card",
330
332
  style: M(Z.value)
331
333
  }, [
332
- g.showDownloadAll && E.value ? (o(), f("div", st, [
334
+ g.showDownloadAll && I.value ? (o(), f("div", it, [
333
335
  d(n(F), {
334
336
  type: "primary",
335
337
  link: "",
336
338
  onClick: ue
337
339
  }, {
338
340
  default: r(() => [
339
- C(k(n(u)("d.upload.downloadAll")), 1)
341
+ S(k(n(u)("d.upload.downloadAll")), 1)
340
342
  ]),
341
343
  _: 1
342
344
  })
343
345
  ])) : p("", !0),
344
- (o(!0), f(j, null, me(D.value, (e, i) => (o(), f("div", {
346
+ (o(!0), f(R, null, me(E.value, (e, i) => (o(), f("div", {
345
347
  key: e.id || `${e.name}-${i}`,
346
348
  class: "card-item",
347
349
  style: M(Y.value),
348
350
  onClick: (v) => re(e)
349
351
  }, [
350
- A(e) ? (o(), f(j, { key: 0 }, [
351
- S(e) ? (o(), c(n(Re), {
352
+ U(e) ? (o(), f(R, { key: 0 }, [
353
+ _(e) ? (o(), c(n(He), {
352
354
  key: 0,
353
355
  src: e.url,
354
356
  fit: "cover"
355
357
  }, null, 8, ["src"])) : T(e) ? (o(), c(n(h), { key: 1 }, {
356
358
  default: r(() => [
357
- d(Xe)
359
+ d(Ge)
358
360
  ]),
359
361
  _: 1
360
362
  })) : (o(), c(n(h), { key: 2 }, {
361
363
  default: r(() => [
362
- d(We)
364
+ d(Ye)
363
365
  ]),
364
366
  _: 1
365
367
  })),
366
- _("div", rt, [
367
- S(e) || T(e) ? (o(), c(n(h), { key: 0 }, {
368
+ C("div", ut, [
369
+ _(e) || T(e) ? (o(), c(n(h), { key: 0 }, {
368
370
  default: r(() => [
369
- d(Qe)
371
+ d(We)
370
372
  ]),
371
373
  _: 1
372
374
  })) : (o(), c(n(h), { key: 1 }, {
373
375
  default: r(() => [
374
- d(Je)
376
+ d(Qe)
375
377
  ]),
376
378
  _: 1
377
379
  })),
@@ -380,7 +382,7 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
380
382
  onClick: ve((v) => ae(e), ["stop"])
381
383
  }, {
382
384
  default: r(() => [
383
- d(Ze)
385
+ d(et)
384
386
  ]),
385
387
  _: 1
386
388
  }, 8, ["onClick"])) : p("", !0)
@@ -392,8 +394,8 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
392
394
  "stroke-width": 5,
393
395
  "show-text": !1
394
396
  }, null, 8, ["percentage"]))
395
- ], 12, it))), 128)),
396
- I.value ? (o(), f("div", {
397
+ ], 12, rt))), 128)),
398
+ N.value ? (o(), f("div", {
397
399
  key: 1,
398
400
  class: "card-item",
399
401
  style: M(Y.value),
@@ -401,34 +403,34 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
401
403
  }, [
402
404
  d(n(h), null, {
403
405
  default: r(() => [
404
- d(Ye)
406
+ d(Ze)
405
407
  ]),
406
408
  _: 1
407
409
  })
408
410
  ], 4)) : p("", !0)
409
411
  ], 4)),
410
- I.value && g.showTip ? (o(), f("p", {
412
+ N.value && g.showTip ? (o(), f("p", {
411
413
  key: 4,
412
414
  class: "tip",
413
- innerHTML: Ce.value
414
- }, null, 8, ut)) : p("", !0),
415
- b.value && D.value.length ? (o(), f("div", {
415
+ innerHTML: Le.value
416
+ }, null, 8, dt)) : p("", !0),
417
+ b.value && E.value.length ? (o(), f("div", {
416
418
  key: 5,
417
419
  style: M(Z.value),
418
420
  class: "list"
419
421
  }, [
420
- (o(!0), f(j, null, me(D.value, (e, i) => (o(), f("div", {
422
+ (o(!0), f(R, null, me(E.value, (e, i) => (o(), f("div", {
421
423
  key: e.id || `${e.name}-${i}`,
422
424
  class: "list-item"
423
425
  }, [
424
- _("div", dt, [
425
- d(n(H), {
426
+ C("div", ct, [
427
+ d(n(q), {
426
428
  type: "primary",
427
429
  underline: "never",
428
430
  onClick: (v) => re(e)
429
431
  }, {
430
432
  default: r(() => [
431
- C(k(e.name), 1)
433
+ S(k(e.name), 1)
432
434
  ]),
433
435
  _: 2
434
436
  }, 1032, ["onClick"]),
@@ -438,46 +440,46 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
438
440
  onClick: ve((v) => ae(e), ["stop"])
439
441
  }, {
440
442
  default: r(() => [
441
- d(Ge)
443
+ d(Je)
442
444
  ]),
443
445
  _: 1
444
446
  }, 8, ["onClick"])) : p("", !0)
445
447
  ]),
446
- A(e) ? p("", !0) : (o(), c(n(he), {
448
+ U(e) ? p("", !0) : (o(), c(n(he), {
447
449
  key: 0,
448
450
  percentage: e.percentage,
449
451
  "stroke-width": 8
450
452
  }, null, 8, ["percentage"]))
451
453
  ]))), 128))
452
454
  ], 4)) : p("", !0),
453
- s.value.length > g.maxShow ? (o(), f("div", ct, [
454
- x.value ? (o(), c(n(H), {
455
+ s.value.length > g.maxShow ? (o(), f("div", pt, [
456
+ x.value ? (o(), c(n(q), {
455
457
  key: 0,
456
458
  type: "primary",
457
459
  underline: "never",
458
- onClick: B
460
+ onClick: $
459
461
  }, {
460
462
  default: r(() => [
461
- _("span", null, k(n(u)("d.upload.collapse")), 1),
463
+ C("span", null, k(n(u)("d.upload.collapse")), 1),
462
464
  d(n(h), null, {
463
465
  default: r(() => [
464
- d(Ke)
466
+ d(Xe)
465
467
  ]),
466
468
  _: 1
467
469
  })
468
470
  ]),
469
471
  _: 1
470
- })) : (o(), c(n(H), {
472
+ })) : (o(), c(n(q), {
471
473
  key: 1,
472
474
  type: "primary",
473
475
  underline: "never",
474
- onClick: B
476
+ onClick: $
475
477
  }, {
476
478
  default: r(() => [
477
- _("span", null, k(n(u)("d.upload.expand")), 1),
479
+ C("span", null, k(n(u)("d.upload.expand")), 1),
478
480
  d(n(h), null, {
479
481
  default: r(() => [
480
- d(Oe)
482
+ d(Ke)
481
483
  ]),
482
484
  _: 1
483
485
  })
@@ -487,7 +489,7 @@ const at = { class: "d-upload__preview" }, ot = ["src"], nt = { key: 2 }, st = {
487
489
  ])) : p("", !0)
488
490
  ], 2));
489
491
  }
490
- }), Dt = /* @__PURE__ */ et(pt, [["__scopeId", "data-v-bdfedf5a"]]);
492
+ }), Et = /* @__PURE__ */ tt(ft, [["__scopeId", "data-v-10f8e9fe"]]);
491
493
  export {
492
- Dt as default
494
+ Et as default
493
495
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geekplus-digital-ui",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",