epic-designer-gold 0.0.45 → 0.0.47
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/dist/{attributeView-DtpDKBv3.js → attributeView-C75ra3CN.js} +1 -1
- package/dist/{attributeView-NViG1QIW.cjs → attributeView-CA-6yB0k.cjs} +1 -1
- package/dist/{index-Cbdo388f.cjs → index-0RqJEjlH.cjs} +1 -1
- package/dist/{index-CEWzIISV.cjs → index-9VqDmCT_.cjs} +1 -1
- package/dist/{index-orcBQmhb.cjs → index-B-Uox2mn.cjs} +1 -1
- package/dist/{index-B0mkrnRU.cjs → index-BGT2-jZP.cjs} +1 -1
- package/dist/{index-QyL4F13K.js → index-BHWJ1KwT.js} +1 -1
- package/dist/index-BRZDZuxE.js +4 -0
- package/dist/index-BbCEtCJA.cjs +1 -0
- package/dist/{index-Cr0fs3qQ.cjs → index-Bdnc9TGH.cjs} +1 -1
- package/dist/{index-CeB5DFBE.js → index-BgTlZ9gW.js} +1 -1
- package/dist/{index-W-UeQAtk.js → index-Bgvfahgd.js} +532 -512
- package/dist/{index-B3SPoHbr.cjs → index-Bmo9n7ut.cjs} +1 -1
- package/dist/{index-Deui5A5E.js → index-C32P7cCc.js} +1 -1
- package/dist/{index-Xym112zw.js → index-CML-aVic.js} +1 -1
- package/dist/{index-DXzERji1.js → index-CvIjQtJw.js} +65 -63
- package/dist/index-DEPx91yu.cjs +1 -0
- package/dist/{index-D1mKcGjX.js → index-DwDY6KkH.js} +1 -1
- package/dist/index-ETJEJKM_.cjs +10 -0
- package/dist/{index-0zDuNn0Q.js → index-JhxJizMR.js} +171 -171
- package/dist/{index-CwevnKNM.js → index-M3HldxkA.js} +1 -1
- package/dist/{index-DgI4MFJ_.cjs → index-baUE53XK.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{sign-CJJd-ctq.js → sign-BRchUdJt.js} +29 -29
- package/dist/sign-CnQtsTLr.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-BD_oQt7b.cjs → styleView-CXdgqy6O.cjs} +1 -1
- package/dist/{styleView-B-yx1iR4.js → styleView-cuoX6XX4.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +3 -3
- package/dist/uploadFile-CYDDVa_x.js +76 -0
- package/dist/uploadFile-eWBMdZ9d.cjs +1 -0
- package/dist/uploadImage-742IA7ei.js +95 -0
- package/dist/uploadImage-BXcN2FA_.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-BYMDoYaj.js +0 -4
- package/dist/index-BenbgJD8.cjs +0 -1
- package/dist/index-CLpKjuat.cjs +0 -10
- package/dist/index-zASDVLOl.cjs +0 -1
- package/dist/sign-Bfrdd-6m.cjs +0 -1
- package/dist/uploadFile-BU5cBhab.js +0 -67
- package/dist/uploadFile-z7Ko58XG.cjs +0 -1
- package/dist/uploadImage-tLXX1j6A.js +0 -88
- package/dist/uploadImage-xU0He_aO.cjs +0 -1
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as h, watch as u, computed as g, h as o, nextTick as v } from "vue";
|
|
2
|
-
import { ElUpload as E, ElButton as F, ElMessage as x } from "element-plus";
|
|
3
|
-
const y = m({
|
|
4
|
-
props: {
|
|
5
|
-
modelValue: {
|
|
6
|
-
type: Array,
|
|
7
|
-
default: () => []
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:modelValue"],
|
|
11
|
-
setup(n, { emit: r, attrs: d }) {
|
|
12
|
-
const l = h([]);
|
|
13
|
-
u(l, (e) => {
|
|
14
|
-
r("update:modelValue", e);
|
|
15
|
-
}), u(
|
|
16
|
-
() => n.modelValue,
|
|
17
|
-
(e) => {
|
|
18
|
-
if (e != null && e.length > 0 && l.value != null) {
|
|
19
|
-
if (l.value === e) return;
|
|
20
|
-
l.value.length = 0, l.value.push(...e);
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{ deep: !0, immediate: !0 }
|
|
24
|
-
);
|
|
25
|
-
const s = (e, a) => {
|
|
26
|
-
v(() => {
|
|
27
|
-
l.value = a;
|
|
28
|
-
});
|
|
29
|
-
}, p = (e) => {
|
|
30
|
-
}, i = (e, a, t) => {
|
|
31
|
-
console.log(t);
|
|
32
|
-
}, c = (e, a, t) => {
|
|
33
|
-
x.error("上传失败"), console.error(e);
|
|
34
|
-
}, f = g(() => ({
|
|
35
|
-
...d,
|
|
36
|
-
"file-list": l.value,
|
|
37
|
-
onBeforeUpload: p,
|
|
38
|
-
onChange: s,
|
|
39
|
-
onSuccess: i,
|
|
40
|
-
onError: c
|
|
41
|
-
}));
|
|
42
|
-
return () => o("div", null, {
|
|
43
|
-
default: () => [
|
|
44
|
-
o(E, f.value, {
|
|
45
|
-
default: () => [
|
|
46
|
-
o(
|
|
47
|
-
F,
|
|
48
|
-
{},
|
|
49
|
-
{
|
|
50
|
-
default: () => [
|
|
51
|
-
o("span", {
|
|
52
|
-
class: "icon--epic icon--epic--cloud-upload-outlined text-lg",
|
|
53
|
-
style: { "margin-right": "2px" }
|
|
54
|
-
}),
|
|
55
|
-
o("span", null, { default: () => "上传文件" })
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
]
|
|
60
|
-
})
|
|
61
|
-
]
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
export {
|
|
66
|
-
y as default
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("element-plus"),h=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(n,{emit:r,attrs:s}){const o=l.ref([]);l.watch(o,e=>{r("update:modelValue",e)}),l.watch(()=>n.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const d=(e,t)=>{l.nextTick(()=>{o.value=t})},i=e=>{},p=(e,t,a)=>{console.log(a)},c=(e,t,a)=>{u.ElMessage.error("上传失败"),console.error(e)},f=l.computed(()=>({...s,"file-list":o.value,onBeforeUpload:i,onChange:d,onSuccess:p,onError:c}));return()=>l.h("div",null,{default:()=>[l.h(u.ElUpload,f.value,{default:()=>[l.h(u.ElButton,{},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-lg",style:{"margin-right":"2px"}}),l.h("span",null,{default:()=>"上传文件"})]})]})]})}});exports.default=h;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, ref as o, watch as s, computed as E, h as a, nextTick as U } from "vue";
|
|
2
|
-
import { ElUpload as w, ElImageViewer as y, ElMessage as C } from "element-plus";
|
|
3
|
-
const P = V({
|
|
4
|
-
props: {
|
|
5
|
-
modelValue: {
|
|
6
|
-
type: Array,
|
|
7
|
-
default: () => []
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:modelValue"],
|
|
11
|
-
setup(d, { emit: p, attrs: c }) {
|
|
12
|
-
const l = o([]), u = o(""), r = o(!1), n = (e) => {
|
|
13
|
-
r.value = e;
|
|
14
|
-
};
|
|
15
|
-
s(l, (e) => {
|
|
16
|
-
p("update:modelValue", e);
|
|
17
|
-
}), s(
|
|
18
|
-
() => d.modelValue,
|
|
19
|
-
(e) => {
|
|
20
|
-
if (e != null && e.length > 0 && l.value != null) {
|
|
21
|
-
if (l.value === e) return;
|
|
22
|
-
l.value.length = 0, l.value.push(...e);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{ deep: !0, immediate: !0 }
|
|
26
|
-
);
|
|
27
|
-
const g = (e, t) => {
|
|
28
|
-
U(() => {
|
|
29
|
-
l.value = t;
|
|
30
|
-
});
|
|
31
|
-
}, m = (e, t, i) => {
|
|
32
|
-
console.log(i);
|
|
33
|
-
}, f = (e, t, i) => {
|
|
34
|
-
C.error("上传失败"), console.error(e);
|
|
35
|
-
}, v = (e) => {
|
|
36
|
-
}, h = E(() => ({
|
|
37
|
-
...c,
|
|
38
|
-
"file-list": l.value,
|
|
39
|
-
"list-type": "picture-card",
|
|
40
|
-
accept: "image/gif,image/jpeg,image/jpg,image/png,image/svg",
|
|
41
|
-
onBeforeUpload: v,
|
|
42
|
-
onChange: g,
|
|
43
|
-
onSuccess: m,
|
|
44
|
-
onError: f,
|
|
45
|
-
onPreview: x
|
|
46
|
-
})), x = (e) => {
|
|
47
|
-
e.url && (u.value = e.url, n(!0));
|
|
48
|
-
};
|
|
49
|
-
return () => a(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
class: "epic-upload-image"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
default: () => [
|
|
56
|
-
a(w, h.value, {
|
|
57
|
-
default: () => [
|
|
58
|
-
a(
|
|
59
|
-
"div",
|
|
60
|
-
{ style: { "text-align": "center" } },
|
|
61
|
-
{
|
|
62
|
-
default: () => [
|
|
63
|
-
a("span", {
|
|
64
|
-
class: "icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"
|
|
65
|
-
}),
|
|
66
|
-
a("div", { class: "ant-upload-text" }, { default: () => "点击上传" })
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
]
|
|
71
|
-
}),
|
|
72
|
-
(() => {
|
|
73
|
-
if (r.value)
|
|
74
|
-
return a(y, {
|
|
75
|
-
urlList: [u.value],
|
|
76
|
-
onClose: () => {
|
|
77
|
-
n(!1);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
})()
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
P as default
|
|
88
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),o=require("element-plus"),y=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(i,{emit:c,attrs:d}){const t=l.ref([]),u=l.ref(""),r=l.ref(!1),n=e=>{r.value=e};l.watch(t,e=>{c("update:modelValue",e)}),l.watch(()=>i.modelValue,e=>{if(e!=null&&e.length>0&&t.value!=null){if(t.value===e)return;t.value.length=0,t.value.push(...e)}},{deep:!0,immediate:!0});const p=(e,a)=>{l.nextTick(()=>{t.value=a})},g=(e,a,s)=>{console.log(s)},f=(e,a,s)=>{o.ElMessage.error("上传失败"),console.error(e)},m=e=>{},v=l.computed(()=>({...d,"file-list":t.value,"list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onBeforeUpload:m,onChange:p,onSuccess:g,onError:f,onPreview:h})),h=e=>{e.url&&(u.value=e.url,n(!0))};return()=>l.h("div",{class:"epic-upload-image"},{default:()=>[l.h(o.ElUpload,v.value,{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>"点击上传"})]})]}),(()=>{if(r.value)return l.h(o.ElImageViewer,{urlList:[u.value],onClose:()=>{n(!1)}})})()]})}});exports.default=y;
|