@lingshugroup/web-plus 1.0.35 → 1.0.37

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 (46) hide show
  1. package/lib/index.css +1 -1
  2. package/lib/index.css.br +0 -0
  3. package/lib/index.css.gz +0 -0
  4. package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.cjs +1 -1
  5. package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.js +2 -2
  6. package/lib/packages/ls-components/components/preview_docx/Index.vue/index.cjs +1 -1
  7. package/lib/packages/ls-components/components/preview_docx/Index.vue/index.js +2 -2
  8. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.cjs +1 -1
  9. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js +42 -42
  10. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.br +0 -0
  11. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.gz +0 -0
  12. package/lib/packages/ls-components/components/preview_image/Image.vue/index.cjs +1 -1
  13. package/lib/packages/ls-components/components/preview_image/Image.vue/index.js +2 -2
  14. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.cjs +1 -1
  15. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js +159 -149
  16. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.br +0 -0
  17. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.gz +0 -0
  18. package/lib/packages/ls-components/components/preview_image/Index.vue/index.cjs +1 -1
  19. package/lib/packages/ls-components/components/preview_image/Index.vue/index.js +2 -2
  20. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.cjs +1 -1
  21. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js +44 -44
  22. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.br +0 -0
  23. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.gz +0 -0
  24. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.cjs +1 -1
  25. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.js +4 -4
  26. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.cjs +1 -1
  27. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js +38 -38
  28. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.br +0 -0
  29. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.gz +0 -0
  30. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.cjs +1 -1
  31. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.js +1 -1
  32. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.cjs +1 -1
  33. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js +41 -41
  34. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.br +0 -0
  35. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.gz +0 -0
  36. package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
  37. package/lib/packages/ls-components/components/upload/Index.vue/index.js +2 -2
  38. package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
  39. package/lib/packages/ls-components/components/upload/Index.vue/index2.js +111 -104
  40. package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
  41. package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
  42. package/lib/packages/ls-components/components/upload/types/index.cjs +1 -1
  43. package/lib/packages/ls-components/components/upload/types/index.js +4 -0
  44. package/lib/packages/ls-components/components/upload/types/index.js.br +0 -0
  45. package/lib/packages/ls-components/components/upload/types/index.js.gz +0 -0
  46. package/package.json +1 -1
@@ -1,34 +1,34 @@
1
- var Ae = Object.defineProperty;
2
- var s = (V, O) => Ae(V, "name", { value: O, configurable: !0 });
1
+ var Te = Object.defineProperty;
2
+ var s = (V, O) => Te(V, "name", { value: O, configurable: !0 });
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
- import { defineComponent as Pe, useSlots as we, useAttrs as xe, ref as ie, reactive as ne, watch as Y, computed as o, openBlock as r, createElementBlock as m, normalizeClass as B, unref as n, createVNode as le, mergeProps as Me, createSlots as Re, withCtx as p, Fragment as h, createBlock as F, createElementVNode as D, toDisplayString as N, createTextVNode as P, createCommentVNode as q, renderSlot as I, toRefs as oe } from "vue";
8
- import { lsUploadProps as _e, UPLOAD_TYPE_MAP as ze, fileTypeMap as Be, UPLOAD_STATUS_MAP as De, IMG_SUFFIX_LIST as Ne } from "../types/index.js";
9
- import { getVariable as qe } from "../../_utils/config/index.js";
10
- import { useNamespace as Ie } from "../../_hooks/useNamespace/index.js";
7
+ import { defineComponent as $e, useSlots as xe, useAttrs as Me, ref as ie, reactive as ne, watch as Y, computed as l, openBlock as r, createElementBlock as m, normalizeClass as B, unref as n, createVNode as oe, mergeProps as Re, createSlots as _e, withCtx as p, Fragment as h, createBlock as F, createElementVNode as D, toDisplayString as N, createTextVNode as T, createCommentVNode as q, renderSlot as I, toRefs as le } from "vue";
8
+ import { lsUploadProps as ze, UPLOAD_TYPE_MAP as Be, fileTypeMap as De, UPLOAD_STATUS_MAP as Ne, IMG_SUFFIX_LIST as qe } from "../types/index.js";
9
+ import { getVariable as Ie } from "../../_utils/config/index.js";
10
+ import { useNamespace as Ve } from "../../_hooks/useNamespace/index.js";
11
11
  import L from "../../button/Button.vue/index.js";
12
12
  import ae from "../../icon/Index.vue/index.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { ElMessage as w } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
16
- import { ElAvatar as Ve } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/avatar/index/index.js";
17
- import { ElUpload as Oe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/upload/index/index.js";
18
- const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He = {
15
+ import { ElMessage as $ } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
16
+ import { ElAvatar as Oe } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/avatar/index/index.js";
17
+ import { ElUpload as je } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/upload/index/index.js";
18
+ const Ge = { class: "ls-drag" }, He = { class: "drag-txt ls-color-brand6" }, Ke = {
19
19
  key: 0,
20
20
  class: "btn-picture-card"
21
- }, Ke = {
21
+ }, We = {
22
22
  key: 0,
23
23
  class: "ls-tip"
24
- }, dt = /* @__PURE__ */ Pe({
24
+ }, ft = /* @__PURE__ */ $e({
25
25
  name: "LSUpload",
26
26
  inheritAttrs: !1,
27
27
  __name: "Index",
28
- props: _e,
28
+ props: ze,
29
29
  emits: ["uploadErrorFunc", "onChangeFunc", "httpResponseFunc"],
30
30
  setup(V, { expose: O, emit: se }) {
31
- const x = we(), y = xe(), re = Ie("upload").b(), f = ie(), d = ie(!1), b = ne({
31
+ const x = xe(), y = Me(), re = Ve("upload").b(), f = ie(), d = ie(!1), b = ne({
32
32
  isCover: !0,
33
33
  accept: "",
34
34
  disabled: !1
@@ -38,7 +38,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
38
38
  showPreview: !1,
39
39
  typePreview: "",
40
40
  sourcePreview: "",
41
- iconColor: qe("colorText1")
41
+ iconColor: Ie("colorText1")
42
42
  }), i = V, M = se;
43
43
  Y(
44
44
  () => y["file-list"],
@@ -50,54 +50,54 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
50
50
  deep: !0
51
51
  }
52
52
  );
53
- const U = o(() => {
53
+ const U = l(() => {
54
54
  var e, t;
55
55
  return (((e = i == null ? void 0 : i.item) == null ? void 0 : e.isToast) || typeof ((t = i == null ? void 0 : i.item) == null ? void 0 : t.isToast)) === "undefined";
56
- }), v = o(() => {
56
+ }), v = l(() => {
57
57
  var t;
58
58
  const e = (t = i == null ? void 0 : i.item) == null ? void 0 : t.isCover;
59
59
  return typeof e > "u" ? !0 : e;
60
- }), k = o(() => y.multiple), C = o(() => {
60
+ }), k = l(() => y.multiple), C = l(() => {
61
61
  const e = y["auto-upload"];
62
62
  return typeof e > "u" ? !0 : e;
63
- }), ue = o(() => {
63
+ }), ue = l(() => {
64
64
  var e;
65
65
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.emptyFileMsg) || "";
66
- }), j = o(() => y["list-type"]), R = o(() => j.value === ze.picCard), ce = o(() => !j.value || j.value == "text"), E = o(() => {
66
+ }), j = l(() => y["list-type"]), R = l(() => j.value === Be.picCard), ce = l(() => !j.value || j.value == "text"), P = l(() => {
67
67
  var e;
68
68
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.limitFile) || [];
69
- }), de = o(() => {
69
+ }), de = l(() => {
70
70
  var e;
71
71
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.limitFileMsg) || "";
72
- }), T = o(() => {
72
+ }), w = l(() => {
73
73
  var e;
74
74
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.limitSize) || 2;
75
- }), fe = o(() => {
75
+ }), fe = l(() => {
76
76
  var e;
77
77
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.limitSizeMsg) || "";
78
- }), G = o(() => {
78
+ }), G = l(() => {
79
79
  var e;
80
80
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.limitUnit) || "MB";
81
- }), me = o(() => {
81
+ }), me = l(() => {
82
82
  var e;
83
83
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.limitNumMsg) || "";
84
- }), J = o(() => {
84
+ }), J = l(() => {
85
85
  var e;
86
86
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.profile) || !1;
87
- }), $ = o(() => y.drag), ve = o(() => {
87
+ }), A = l(() => y.drag), ve = l(() => {
88
88
  var e;
89
89
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.hideCoverBtn) && v.value && u.uploadFileList.length > 0;
90
- }), S = o(() => y.disabled), H = o(() => {
90
+ }), S = l(() => y.disabled), H = l(() => {
91
91
  const e = R.value ? "图片" : "文件";
92
92
  let t = `选择${e}`;
93
93
  return d.value ? t = "正在上传..." : v.value && !k.value ? C.value ? u.initUploadStatus ? t = "点击上传" : t = "重新上传" : u.initUploadStatus ? t = `选择${e}` : t = "重新上传" : C.value && (t = "点击上传"), t;
94
- }), ge = o(() => {
94
+ }), ge = l(() => {
95
95
  let e = "不限制上传格式,";
96
- return R.value && (e = "文件须为图片格式,"), `${e}文件大小不超过${T.value}${G.value}`;
97
- }), pe = o(() => {
96
+ return R.value && (e = "文件须为图片格式,"), `${e}文件大小不超过${w.value}${G.value}`;
97
+ }), pe = l(() => {
98
98
  var e;
99
99
  return ((e = i == null ? void 0 : i.item) == null ? void 0 : e.tipContent) || "";
100
- }), K = o(() => {
100
+ }), K = l(() => {
101
101
  var e;
102
102
  return (e = i == null ? void 0 : i.item) == null ? void 0 : e.httpRequestFunc;
103
103
  });
@@ -111,7 +111,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
111
111
  deep: !0
112
112
  }
113
113
  ), Y(
114
- () => E.value,
114
+ () => P.value,
115
115
  (e) => {
116
116
  e && e.length > 0 && Fe(e);
117
117
  },
@@ -122,80 +122,80 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
122
122
  );
123
123
  function Fe(e) {
124
124
  b.accept = "", e.forEach((t) => {
125
- const l = Be[t] || "";
126
- l && (b.accept && (b.accept += ","), b.accept += l);
125
+ const o = De[t] || "";
126
+ o && (b.accept && (b.accept += ","), b.accept += o);
127
127
  });
128
128
  }
129
129
  s(Fe, "updateFileAccept");
130
- function A(e) {
131
- const { formRuleFunc: t, formValidateFunc: l } = oe(i == null ? void 0 : i.item);
132
- if (t && t.value instanceof Function && l && l.value instanceof Function) {
130
+ function E(e) {
131
+ const { formRuleFunc: t, formValidateFunc: o } = le(i == null ? void 0 : i.item);
132
+ if (t && t.value instanceof Function && o && o.value instanceof Function) {
133
133
  const a = t.value(), { message: c } = a;
134
- a.message = e, l.value(), a.message = c;
134
+ a.message = e, o.value(), a.message = c;
135
135
  }
136
136
  M("uploadErrorFunc", e);
137
137
  }
138
- s(A, "validateForm");
138
+ s(E, "validateForm");
139
139
  function ye(e, t) {
140
140
  if (d.value = !1, i.onExceed)
141
141
  return i.onExceed(e, t);
142
- const l = `当前限制选择 ${y.limit} 个文件,本次选择了 ${e.length} 个文件,共选择了 ${e.length + t.length} 个文件` || me.value;
142
+ const o = `当前限制选择 ${y.limit} 个文件,本次选择了 ${e.length} 个文件,共选择了 ${e.length + t.length} 个文件` || me.value;
143
143
  U.value ? setTimeout(() => {
144
- w.warning(l);
145
- }, 200) : A(l);
144
+ $.warning(o);
145
+ }, 200) : E(o);
146
146
  }
147
147
  s(ye, "onExceedAction");
148
148
  function be(e) {
149
149
  if (i.beforeUpload) {
150
- const l = i.beforeUpload(e);
151
- return l && v.value && !k.value && _(), l;
150
+ const o = i.beforeUpload(e);
151
+ return o && v.value && !k.value && _(), o;
152
152
  }
153
153
  const t = W(e, !0);
154
154
  return t && C.value && v.value && !k.value && _(), t;
155
155
  }
156
156
  s(be, "beforeUploadAction");
157
157
  function W(e, t) {
158
- let l = !0;
159
- const { size: a, name: c } = e, X = E.value.length > 0 && !Q(c);
158
+ let o = !0;
159
+ const { size: a, name: c } = e, X = P.value.length > 0 && !Q(c);
160
160
  let z = !1;
161
161
  switch (G.value) {
162
162
  case "KB":
163
- z = a / 1024 > T.value;
163
+ z = a / 1024 > w.value;
164
164
  break;
165
165
  case "MB":
166
- z = a / 1024 / 1024 > T.value;
166
+ z = a / 1024 / 1024 > w.value;
167
167
  break;
168
168
  default:
169
- z = a / 1024 / 1024 / 1024 > T.value;
169
+ z = a / 1024 / 1024 / 1024 > w.value;
170
170
  break;
171
171
  }
172
172
  if (X) {
173
- const g = de.value || `上传文件 ${e.name} 只能是 ${E.value.filter(($e) => $e).join(",").toLocaleLowerCase()} 格式!`;
173
+ const g = de.value || `上传文件 ${e.name} 只能是 ${P.value.filter((Ee) => Ee).join(",").toLocaleLowerCase()} 格式!`;
174
174
  U.value && t ? setTimeout(() => {
175
- w.error(g);
176
- }, 200) : A(g), l = !1;
175
+ $.error(g);
176
+ }, 200) : E(g), o = !1;
177
177
  }
178
178
  if (z) {
179
- const g = fe.value || `上传文件 ${e.name} 大小不能超过 ${T.value}${G.value}!`;
179
+ const g = fe.value || `上传文件 ${e.name} 大小不能超过 ${w.value}${G.value}!`;
180
180
  U.value && t ? setTimeout(() => {
181
- w.error(g);
182
- }, 200) : A(g), l = !1;
181
+ $.error(g);
182
+ }, 200) : E(g), o = !1;
183
183
  }
184
- if (R.value && !Q(c, Ne)) {
184
+ if (R.value && !Q(c, qe)) {
185
185
  const g = `上传文件 ${e.name} 不是图片格式的文件!`;
186
186
  U.value && t ? setTimeout(() => {
187
- w.error(g);
188
- }, 200) : A(g), l = !1;
187
+ $.error(g);
188
+ }, 200) : E(g), o = !1;
189
189
  }
190
- return l;
190
+ return o;
191
191
  }
192
192
  s(W, "validateUploadFile");
193
193
  function Q(e, t) {
194
- let l = [];
195
- if (E.value.length > 0 ? l = E.value : t && (l = t), l.length <= 0)
194
+ let o = [];
195
+ if (P.value.length > 0 ? o = P.value : t && (o = t), o.length <= 0)
196
196
  return !0;
197
- for (let a = 0; a < l.length; a++) {
198
- const c = (l[a] || "").toLowerCase();
197
+ for (let a = 0; a < o.length; a++) {
198
+ const c = (o[a] || "").toLowerCase();
199
199
  if (e.toLowerCase().endsWith(c))
200
200
  return !0;
201
201
  }
@@ -208,17 +208,17 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
208
208
  s(_, "updateCoverFileList");
209
209
  function he(e, t) {
210
210
  u.uploadFileList = t;
211
- const l = e.raw && W(e.raw, !C.value);
212
- if (l && v.value && !k.value && _(), i.onChange)
211
+ const o = e.raw && W(e.raw, !C.value);
212
+ if (o && v.value && !k.value && _(), i.onChange)
213
213
  return i.onChange(e, t);
214
214
  const { size: a } = e;
215
215
  if (a <= 0) {
216
216
  Z();
217
217
  const c = ue.value || "禁止上传空文件,请检查后重新上传!";
218
- U.value ? w.error(c) : A(c);
218
+ U.value ? $.error(c) : E(c);
219
219
  return;
220
220
  }
221
- e.raw && (!C.value && !l ? Z() : (e.blob = URL.createObjectURL(e.raw) || "", M("onChangeFunc", e)));
221
+ e.raw && (!C.value && !o ? Z() : (e.blob = URL.createObjectURL(e.raw) || "", M("onChangeFunc", e)));
222
222
  }
223
223
  s(he, "onChangeAction");
224
224
  function Z() {
@@ -226,20 +226,20 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
226
226
  u.uploadFileList.length > 1 && (e = u.uploadFileList.length - 1), _(e, 1), M("onChangeFunc", {});
227
227
  }
228
228
  s(Z, "setChangeRes");
229
- function ke(e, t, l) {
229
+ function ke(e, t, o) {
230
230
  d.value = !1, u.initUploadStatus = !1;
231
- const { formRuleFunc: a, formValidateFunc: c } = oe(i == null ? void 0 : i.item);
231
+ const { formRuleFunc: a, formValidateFunc: c } = le(i == null ? void 0 : i.item);
232
232
  if (a && a.value instanceof Function && c && c.value instanceof Function && c.value(), i.onSuccess)
233
- return i.onSuccess(e, t, l);
233
+ return i.onSuccess(e, t, o);
234
234
  }
235
235
  s(ke, "onSuccessAction");
236
- function Ce(e, t, l) {
236
+ function Ce(e, t, o) {
237
237
  if (d.value = !1, i.onError)
238
- return i.onError(e, t, l);
238
+ return i.onError(e, t, o);
239
239
  }
240
240
  s(Ce, "onErrorAction");
241
241
  function Se(e, t) {
242
- if (u.initUploadStatus = !t.length, u.uploadFileList = u.uploadFileList.filter((l) => l.uid === e.uid || l.name === e.name ? null : l), i.onRemove)
242
+ if (u.initUploadStatus = !t.length, u.uploadFileList = u.uploadFileList.filter((o) => o.uid === e.uid || o.name === e.name ? null : o), i.onRemove)
243
243
  return i.onRemove(e, t);
244
244
  }
245
245
  s(Se, "onRemoveAction");
@@ -247,8 +247,8 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
247
247
  const { file: t } = e;
248
248
  if (!t)
249
249
  return;
250
- const { size: l } = t;
251
- if (l <= 0 || !W(t, !1))
250
+ const { size: o } = t;
251
+ if (o <= 0 || !W(t, !1))
252
252
  return;
253
253
  if (i.httpRequest)
254
254
  return i.httpRequest(e);
@@ -269,7 +269,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
269
269
  function ee() {
270
270
  let e = !1;
271
271
  for (let t = 0; t < u.uploadFileList.length; t++)
272
- if (u.uploadFileList[t].status === De.ready) {
272
+ if (u.uploadFileList[t].status === Ne.ready) {
273
273
  e = !0;
274
274
  break;
275
275
  }
@@ -285,7 +285,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
285
285
  f == null || f.value.handleRemove(e);
286
286
  }
287
287
  s(Ue, "removeFile");
288
- function Ee() {
288
+ function Pe() {
289
289
  u.uploadFileList.forEach((e) => {
290
290
  var t;
291
291
  if (e)
@@ -295,18 +295,24 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
295
295
  }
296
296
  });
297
297
  }
298
- s(Ee, "cancelUpload");
299
- function Te() {
300
- d.value = !0;
298
+ s(Pe, "cancelUpload");
299
+ function we(e, t, o) {
300
+ if (d.value = !0, i.onProgress)
301
+ return i.onProgress(e, t, o);
301
302
  }
302
- return s(Te, "onProgressAction"), O({
303
+ s(we, "onProgressAction");
304
+ function Ae(e) {
305
+ if (i.onPreview)
306
+ return i.onPreview(e);
307
+ }
308
+ return s(Ae, "onPreviewAction"), O({
303
309
  uploadRef: f
304
310
  }), (e, t) => {
305
- const l = Ve, a = Oe;
311
+ const o = Oe, a = je;
306
312
  return r(), m("div", {
307
- class: B([n(re), n($) ? "ls-upload-drag" : "", n(J) ? "ls-profile" : "", n(ve) ? "hide-cover-btn" : ""])
313
+ class: B([n(re), n(A) ? "ls-upload-drag" : "", n(J) ? "ls-profile" : "", n(ve) ? "hide-cover-btn" : ""])
308
314
  }, [
309
- le(a, Me({
315
+ oe(a, Re({
310
316
  ref_key: "uploadRef",
311
317
  ref: f
312
318
  }, Object.assign(n(b), e.$attrs), {
@@ -316,17 +322,18 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
316
322
  "on-success": ke,
317
323
  "on-error": Ce,
318
324
  "on-remove": Se,
319
- "on-progress": Te
320
- }), Re({
325
+ "on-progress": we,
326
+ "on-preview": Ae
327
+ }), _e({
321
328
  trigger: p(() => [
322
- n(J) ? e.item.defProfile && n(u).uploadFileList.length < 1 ? (r(), F(l, {
329
+ n(J) ? e.item.defProfile && n(u).uploadFileList.length < 1 ? (r(), F(o, {
323
330
  key: 1,
324
331
  size: 60,
325
332
  src: e.item.defProfile,
326
333
  fit: "contain"
327
334
  }, null, 8, ["src"])) : q("", !0) : (r(), m(h, { key: 0 }, [
328
335
  n(x).trigger ? I(e.$slots, "trigger", { key: 1 }, void 0, !0) : (r(), m(h, { key: 0 }, [
329
- n($) ? (r(), m(h, { key: 0 }, [
336
+ n(A) ? (r(), m(h, { key: 0 }, [
330
337
  n(d) ? (r(), F(L, {
331
338
  key: 0,
332
339
  text: "",
@@ -339,15 +346,15 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
339
346
  size: "56",
340
347
  color: "#E7E7E7"
341
348
  })),
342
- D("div", je, [
343
- D("div", Ge, N(n(H)), 1),
349
+ D("div", Ge, [
350
+ D("div", He, N(n(H)), 1),
344
351
  n(d) ? q("", !0) : (r(), m(h, { key: 0 }, [
345
- t[0] || (t[0] = P("   /   ")),
352
+ t[0] || (t[0] = T("   /   ")),
346
353
  t[1] || (t[1] = D("div", { class: "drag-txt ls-color-text2" }, "拖拽到此区域", -1))
347
354
  ], 64))
348
355
  ])
349
356
  ], 64)) : (r(), m(h, { key: 1 }, [
350
- n(R) ? (r(), m("div", He, [
357
+ n(R) ? (r(), m("div", Ke, [
351
358
  n(d) ? (r(), F(L, {
352
359
  key: 0,
353
360
  text: "",
@@ -369,7 +376,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
369
376
  disabled: n(S)
370
377
  }, {
371
378
  default: p(() => [
372
- P(N(n(H)), 1)
379
+ T(N(n(H)), 1)
373
380
  ]),
374
381
  _: 1
375
382
  }, 8, ["loading", "disabled"]))
@@ -379,25 +386,25 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
379
386
  ]),
380
387
  default: p(() => [
381
388
  n(x).default ? I(e.$slots, "default", { key: 1 }, void 0, !0) : (r(), m(h, { key: 0 }, [
382
- !n(C) && (n(ce) || n($)) ? (r(), m("div", {
389
+ !n(C) && (n(ce) || n(A)) ? (r(), m("div", {
383
390
  key: 0,
384
- class: B(["upload-btn-handle", [n($) ? "drag-css" : "nor-css", !n(v) || n(k) ? "multi-css" : ""]])
391
+ class: B(["upload-btn-handle", [n(A) ? "drag-css" : "nor-css", !n(v) || n(k) ? "multi-css" : ""]])
385
392
  }, [
386
- n($) ? (r(), m(h, { key: 1 }, [
393
+ n(A) ? (r(), m(h, { key: 1 }, [
387
394
  !n(v) || n(k) ? (r(), F(L, {
388
395
  key: 0,
389
396
  type: "primary",
390
397
  loading: n(d),
391
398
  disabled: n(S),
392
- onClick: Ee,
399
+ onClick: Pe,
393
400
  class: "ls-upload-btn-com ls-upload-btn-cancel"
394
401
  }, {
395
402
  default: p(() => t[3] || (t[3] = [
396
- P("取消上传")
403
+ T("取消上传")
397
404
  ])),
398
405
  _: 1
399
406
  }, 8, ["loading", "disabled"])) : q("", !0),
400
- le(L, {
407
+ oe(L, {
401
408
  class: B(["start-upload ls-upload-btn-com ls-upload-btn-comfirm", { "is-ready": ee() }]),
402
409
  type: "primary",
403
410
  loading: n(d),
@@ -405,7 +412,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
405
412
  onClick: te
406
413
  }, {
407
414
  default: p(() => t[4] || (t[4] = [
408
- P("开始上传")
415
+ T("开始上传")
409
416
  ])),
410
417
  _: 1
411
418
  }, 8, ["class", "loading", "disabled"])
@@ -418,7 +425,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
418
425
  onClick: te
419
426
  }, {
420
427
  default: p(() => t[2] || (t[2] = [
421
- P("开始上传 ")
428
+ T("开始上传 ")
422
429
  ])),
423
430
  _: 1
424
431
  }, 8, ["class", "loading", "disabled"]))
@@ -426,7 +433,7 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
426
433
  ], 64))
427
434
  ]),
428
435
  tip: p(() => [
429
- n(x).tip ? I(e.$slots, "tip", { key: 1 }, void 0, !0) : (r(), m("div", Ke, N(n(pe) || n(ge)), 1))
436
+ n(x).tip ? I(e.$slots, "tip", { key: 1 }, void 0, !0) : (r(), m("div", We, N(n(pe) || n(ge)), 1))
430
437
  ]),
431
438
  _: 2
432
439
  }, [
@@ -443,5 +450,5 @@ const je = { class: "ls-drag" }, Ge = { class: "drag-txt ls-color-brand6" }, He
443
450
  }
444
451
  });
445
452
  export {
446
- dt as default
453
+ ft as default
447
454
  };
@@ -1 +1 @@
1
- "use strict";var i=Object.defineProperty;var p=(t,e)=>i(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_utils/runtime/index.cjs"),a=o.buildProps({item:{type:Object,default:p(()=>({}),"default")},onExceed:{type:Function,default:null},beforeUpload:{type:Function,default:null},onChange:{type:Function,default:null},onSuccess:{type:Function,default:null},onError:{type:Function,default:null},onRemove:{type:Function,default:null},onPreview:{type:Function,default:null},httpRequest:{type:Function,default:null}}),n={text:"text",picCard:"picture-card",pic:"picture"},l=["jpeg","jpg","dds","psd","pdt","webp","xmp","gif","bmp","svg","tiff","png","ico"],c={ready:"ready",uploading:"uploading",success:"success",fail:"fail"},d={"3gpp":"audio/3gpp, video/3gpp",ac3:"audio/ac3",asf:"allpication/vnd.ms-asf",au:"audio/basic",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",dtd:"application/xml-dtd",dwg:"image/vnd.dwg",dxf:"image/vnd.dxf",gif:"image/gif",htm:"text/html",html:"text/html",jp2:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",js:"text/javascript, application/javascript",json:"application/json",mp2:"audio/mpeg, video/mpeg",mp3:"audio/mpeg",mp4:"audio/mp4, video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",mpp:"application/vnd.ms-project",ogg:"application/ogg, audio/ogg",pdf:"application/pdf",png:"image/png",pot:"application/vnd.ms-powerpoint",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",pps:"application/vnd.ms-powerpoint",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",rtf:"application/rtf, text/rtf",svf:"image/vnd.svf",tif:"image/tiff",tiff:"image/tiff",txt:"text/plain",wdb:"application/vnd.ms-works",wps:"application/vnd.ms-works",xhtml:"application/xhtml+xml",xlc:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlsm:"application/vnd.ms-excel.addin.macroEnabled.12",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",xlt:"application/vnd.ms-excel",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",xml:"text/xml, application/xml",zip:"aplication/zip"};exports.IMG_SUFFIX_LIST=l;exports.UPLOAD_STATUS_MAP=c;exports.UPLOAD_TYPE_MAP=n;exports.fileTypeMap=d;exports.lsUploadProps=a;
1
+ "use strict";var i=Object.defineProperty;var p=(t,e)=>i(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_utils/runtime/index.cjs"),n=o.buildProps({item:{type:Object,default:p(()=>({}),"default")},onExceed:{type:Function,default:null},beforeUpload:{type:Function,default:null},onChange:{type:Function,default:null},onSuccess:{type:Function,default:null},onError:{type:Function,default:null},onRemove:{type:Function,default:null},onPreview:{type:Function,default:null},onProgress:{type:Function,default:null},httpRequest:{type:Function,default:null}}),a={text:"text",picCard:"picture-card",pic:"picture"},l=["jpeg","jpg","dds","psd","pdt","webp","xmp","gif","bmp","svg","tiff","png","ico"],c={ready:"ready",uploading:"uploading",success:"success",fail:"fail"},d={"3gpp":"audio/3gpp, video/3gpp",ac3:"audio/ac3",asf:"allpication/vnd.ms-asf",au:"audio/basic",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",dtd:"application/xml-dtd",dwg:"image/vnd.dwg",dxf:"image/vnd.dxf",gif:"image/gif",htm:"text/html",html:"text/html",jp2:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",js:"text/javascript, application/javascript",json:"application/json",mp2:"audio/mpeg, video/mpeg",mp3:"audio/mpeg",mp4:"audio/mp4, video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",mpp:"application/vnd.ms-project",ogg:"application/ogg, audio/ogg",pdf:"application/pdf",png:"image/png",pot:"application/vnd.ms-powerpoint",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",pps:"application/vnd.ms-powerpoint",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",rtf:"application/rtf, text/rtf",svf:"image/vnd.svf",tif:"image/tiff",tiff:"image/tiff",txt:"text/plain",wdb:"application/vnd.ms-works",wps:"application/vnd.ms-works",xhtml:"application/xhtml+xml",xlc:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlsm:"application/vnd.ms-excel.addin.macroEnabled.12",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",xlt:"application/vnd.ms-excel",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",xml:"text/xml, application/xml",zip:"aplication/zip"};exports.IMG_SUFFIX_LIST=l;exports.UPLOAD_STATUS_MAP=c;exports.UPLOAD_TYPE_MAP=a;exports.fileTypeMap=d;exports.lsUploadProps=n;
@@ -34,6 +34,10 @@ const l = o({
34
34
  type: Function,
35
35
  default: null
36
36
  },
37
+ onProgress: {
38
+ type: Function,
39
+ default: null
40
+ },
37
41
  httpRequest: {
38
42
  type: Function,
39
43
  default: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingshugroup/web-plus",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "零数科技前端UI组件库(Vue3)",
5
5
  "type": "module",
6
6
  "main": "./lib/index/index.cjs",