@lingshugroup/web-plus 1.0.18 → 1.0.19
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/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +109 -103
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +6 -0
- package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js +22 -23
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
|
-
var s = (F,
|
|
2
|
+
var s = (F, W) => Ee(F, "name", { value: W, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { defineComponent as Te, useSlots as $e, useAttrs as Me, ref as ne, reactive as le, watch as J, computed as r, resolveComponent as Re, openBlock as c, createElementBlock as p, normalizeClass as D, unref as o, createVNode as Q, mergeProps as ze, createSlots as Be, withCtx as w, Fragment as S, createBlock as y, createElementVNode as
|
|
8
|
-
import { lsUploadProps as De, UPLOAD_TYPE_MAP as Ne, fileTypeMap as qe, UPLOAD_STATUS_MAP as Oe, IMG_SUFFIX_LIST as
|
|
9
|
-
import { getVariable as
|
|
7
|
+
import { defineComponent as Te, useSlots as $e, useAttrs as Me, ref as ne, reactive as le, watch as J, computed as r, resolveComponent as Re, openBlock as c, createElementBlock as p, normalizeClass as D, unref as o, createVNode as Q, mergeProps as ze, createSlots as Be, withCtx as w, Fragment as S, createBlock as y, createElementVNode as j, toDisplayString as N, createTextVNode as R, createCommentVNode as q, renderSlot as O, toRefs as ae, pushScopeId as Ie, popScopeId as Ve } from "vue";
|
|
8
|
+
import { lsUploadProps as De, UPLOAD_TYPE_MAP as Ne, fileTypeMap as qe, UPLOAD_STATUS_MAP as Oe, IMG_SUFFIX_LIST as je } from "../types/index.js";
|
|
9
|
+
import { getVariable as We } from "../../_utils/config/index.js";
|
|
10
10
|
import { useNamespace as Ge } from "../../_hooks/useNamespace/index.js";
|
|
11
11
|
import x from "../../button/Button.vue/index.js";
|
|
12
12
|
import se from "../../icon/Index.vue/index.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import He from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
16
15
|
import { ElMessage as z } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
|
|
17
|
-
import { ElAvatar as
|
|
18
|
-
import { ElUpload as
|
|
19
|
-
const
|
|
16
|
+
import { ElAvatar as He } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/avatar/index/index.js";
|
|
17
|
+
import { ElUpload as Ke } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/upload/index/index.js";
|
|
18
|
+
const Xe = /* @__PURE__ */ s((F) => (Ie("data-v-6c006232"), F = F(), Ve(), F), "_withScopeId"), Ye = { class: "ls-drag" }, Je = { class: "drag-txt ls-color-brand6" }, Qe = /* @__PURE__ */ Xe(() => /* @__PURE__ */ j("div", { class: "drag-txt ls-color-text2" }, "拖拽到此区域", -1)), Ze = {
|
|
20
19
|
key: 0,
|
|
21
20
|
class: "btn-picture-card"
|
|
22
|
-
},
|
|
21
|
+
}, et = {
|
|
23
22
|
key: 0,
|
|
24
23
|
class: "ls-tip"
|
|
25
|
-
},
|
|
24
|
+
}, wt = /* @__PURE__ */ Te({
|
|
26
25
|
name: "LSUpload",
|
|
27
26
|
inheritAttrs: !1,
|
|
28
27
|
__name: "Index",
|
|
29
28
|
props: De,
|
|
30
29
|
emits: ["uploadErrorFunc", "onChangeFunc", "httpResponseFunc"],
|
|
31
|
-
setup(F, { expose:
|
|
30
|
+
setup(F, { expose: W, emit: re }) {
|
|
32
31
|
const B = $e(), b = Me(), ue = Ge("upload").b(), v = ne(), d = ne(!1), P = le({
|
|
33
32
|
isCover: !0,
|
|
34
33
|
accept: "",
|
|
@@ -39,7 +38,7 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
39
38
|
showPreview: !1,
|
|
40
39
|
typePreview: "",
|
|
41
40
|
sourcePreview: "",
|
|
42
|
-
iconColor:
|
|
41
|
+
iconColor: We("colorText1")
|
|
43
42
|
}), i = F, I = re;
|
|
44
43
|
J(
|
|
45
44
|
() => b["file-list"],
|
|
@@ -182,7 +181,7 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
182
181
|
z.error(h);
|
|
183
182
|
}, 200) : M(h), n = !1;
|
|
184
183
|
}
|
|
185
|
-
if (k.value && !ee(u,
|
|
184
|
+
if (k.value && !ee(u, je)) {
|
|
186
185
|
const h = `上传文件 ${e.name} 不是图片格式的文件!`;
|
|
187
186
|
U.value && t ? setTimeout(() => {
|
|
188
187
|
z.error(h);
|
|
@@ -315,17 +314,17 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
315
314
|
function Ue() {
|
|
316
315
|
l.showPreview = !1, l.sourcePreview = "";
|
|
317
316
|
}
|
|
318
|
-
return s(Ue, "closePreview"),
|
|
317
|
+
return s(Ue, "closePreview"), W({
|
|
319
318
|
uploadRef: v
|
|
320
319
|
}), (e, t) => {
|
|
321
|
-
const n =
|
|
320
|
+
const n = He, a = Ke, u = Re("LSPreview");
|
|
322
321
|
return c(), p("div", {
|
|
323
322
|
class: D([o(ue), o(T) ? "ls-upload-drag" : "", o(Z) ? "ls-profile" : "", o(pe) ? "hide-cover-btn" : ""])
|
|
324
323
|
}, [
|
|
325
324
|
Q(a, ze({
|
|
326
325
|
ref_key: "uploadRef",
|
|
327
326
|
ref: v
|
|
328
|
-
},
|
|
327
|
+
}, Object.assign(o(P), e.$attrs), {
|
|
329
328
|
"on-exceed": we,
|
|
330
329
|
"before-upload": ye,
|
|
331
330
|
"on-change": Fe,
|
|
@@ -356,15 +355,15 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
356
355
|
size: "56",
|
|
357
356
|
color: "#E7E7E7"
|
|
358
357
|
})),
|
|
359
|
-
|
|
360
|
-
|
|
358
|
+
j("div", Ye, [
|
|
359
|
+
j("div", Je, N(o(K)), 1),
|
|
361
360
|
o(d) ? q("", !0) : (c(), p(S, { key: 0 }, [
|
|
362
361
|
R(" / "),
|
|
363
|
-
|
|
362
|
+
Qe
|
|
364
363
|
], 64))
|
|
365
364
|
])
|
|
366
365
|
], 64)) : (c(), p(S, { key: 1 }, [
|
|
367
|
-
o(k) ? (c(), p("div",
|
|
366
|
+
o(k) ? (c(), p("div", Ze, [
|
|
368
367
|
o(d) ? (c(), y(x, {
|
|
369
368
|
key: 0,
|
|
370
369
|
text: "",
|
|
@@ -377,7 +376,7 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
377
376
|
size: 28,
|
|
378
377
|
color: o(l).iconColor
|
|
379
378
|
}, null, 8, ["color"])),
|
|
380
|
-
|
|
379
|
+
j("div", null, N(o(K)), 1)
|
|
381
380
|
])) : (c(), y(x, {
|
|
382
381
|
key: 1,
|
|
383
382
|
plain: "",
|
|
@@ -443,7 +442,7 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
443
442
|
], 64))
|
|
444
443
|
]),
|
|
445
444
|
tip: w(() => [
|
|
446
|
-
o(B).tip ? O(e.$slots, "tip", { key: 1 }, void 0, !0) : (c(), p("div",
|
|
445
|
+
o(B).tip ? O(e.$slots, "tip", { key: 1 }, void 0, !0) : (c(), p("div", et, N(o(ge)), 1))
|
|
447
446
|
]),
|
|
448
447
|
_: 2
|
|
449
448
|
}, [
|
|
@@ -467,5 +466,5 @@ const Ye = /* @__PURE__ */ s((F) => (Ie("data-v-52217f7f"), F = F(), Ve(), F), "
|
|
|
467
466
|
}
|
|
468
467
|
});
|
|
469
468
|
export {
|
|
470
|
-
|
|
469
|
+
wt as default
|
|
471
470
|
};
|
|
Binary file
|
|
Binary file
|