vue-wiring-diagram 1.0.8 → 1.0.10
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/style.css +1 -1
- package/dist/vue-wiring-diagram.es.js +14 -12
- package/dist/vue-wiring-diagram.umd.js +2 -2
- package/package.json +1 -1
- package/packages/components/common.js +2 -2
- package/packages/components/editor/index.vue +3 -7
- package/packages/components/image-control/image-form.vue +3 -3
|
@@ -11161,16 +11161,16 @@ const Co = (n, e = {}) => ei.get(n, { params: e }), Ja = (n, e = {}) => ei.post(
|
|
|
11161
11161
|
s[r].style.visibility = e ? "visible" : "hidden";
|
|
11162
11162
|
for (let r = 0, o = i.length; r < o; r += 1)
|
|
11163
11163
|
i[r].style.visibility = e ? "visible" : "hidden";
|
|
11164
|
-
}, Ky = () => Co("/cny/template/selectOne", { id:
|
|
11165
|
-
if (
|
|
11166
|
-
const
|
|
11164
|
+
}, Ky = (n) => Co("/cny/template/selectOne", { id: n }).then((e) => {
|
|
11165
|
+
if (e != null && e.isOk) {
|
|
11166
|
+
const t = JSON.parse(e.data.remark);
|
|
11167
11167
|
return {
|
|
11168
|
-
background:
|
|
11169
|
-
grid:
|
|
11170
|
-
data:
|
|
11168
|
+
background: t.background,
|
|
11169
|
+
grid: t.grid,
|
|
11170
|
+
data: t.data
|
|
11171
11171
|
};
|
|
11172
11172
|
} else
|
|
11173
|
-
Ke.error((
|
|
11173
|
+
Ke.error((e == null ? void 0 : e.msg) || "获取失败");
|
|
11174
11174
|
}), UD = (n) => Ja("/cny/custom/arrRealData", n).then((e) => {
|
|
11175
11175
|
if (e != null && e.isOk)
|
|
11176
11176
|
return e.data;
|
|
@@ -34835,8 +34835,10 @@ const F$ = { class: "control-box" }, V$ = {
|
|
|
34835
34835
|
{ type: "number", message: "排序必须为数字值" }
|
|
34836
34836
|
]
|
|
34837
34837
|
}, a = U(""), l = (d) => {
|
|
34838
|
-
if (d.raw.type
|
|
34839
|
-
|
|
34838
|
+
if (d.raw.type.indexOf("image") === -1) {
|
|
34839
|
+
Ke.error("请上传图片格式的文件");
|
|
34840
|
+
return;
|
|
34841
|
+
}
|
|
34840
34842
|
const h = new FormData();
|
|
34841
34843
|
h.append("file", d.raw), HD("/cny/file/fileUpload", h).then((f) => {
|
|
34842
34844
|
f != null && f.isOk ? (a.value = ei.defaults.baseURL + "/cny/upload/" + (f == null ? void 0 : f.data), r.imageUrl = f == null ? void 0 : f.data) : Ke.error((f == null ? void 0 : f.msg) || "上传失败");
|
|
@@ -34970,7 +34972,7 @@ const F$ = { class: "control-box" }, V$ = {
|
|
|
34970
34972
|
]);
|
|
34971
34973
|
};
|
|
34972
34974
|
}
|
|
34973
|
-
}, K$ = /* @__PURE__ */ Ss(X$, [["__scopeId", "data-v-
|
|
34975
|
+
}, K$ = /* @__PURE__ */ Ss(X$, [["__scopeId", "data-v-c7d87a18"]]), Z$ = { class: "form-container" }, Q$ = { style: { padding: "0 10px", display: "flex", "flex-direction": "column", gap: "5px", "align-items": "flex-start" } }, e6 = ["src"], t6 = {
|
|
34974
34976
|
__name: "image-management",
|
|
34975
34977
|
setup(n) {
|
|
34976
34978
|
const e = Dt({
|
|
@@ -35369,7 +35371,7 @@ const F$ = { class: "control-box" }, V$ = {
|
|
|
35369
35371
|
notFoundText: "未找到匹配项",
|
|
35370
35372
|
getDragNode: (F) => {
|
|
35371
35373
|
const T = F.clone({ keepId: !0 });
|
|
35372
|
-
return T.label = "", T;
|
|
35374
|
+
return T.label !== "文本" && (T.label = ""), T;
|
|
35373
35375
|
},
|
|
35374
35376
|
getDropNode: (F) => F.clone({ keepId: !0 })
|
|
35375
35377
|
});
|
|
@@ -35687,7 +35689,7 @@ const F$ = { class: "control-box" }, V$ = {
|
|
|
35687
35689
|
]);
|
|
35688
35690
|
};
|
|
35689
35691
|
}
|
|
35690
|
-
}), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-
|
|
35692
|
+
}), g6 = /* @__PURE__ */ Ss(f6, [["__scopeId", "data-v-74192f25"]]), p6 = [
|
|
35691
35693
|
g6,
|
|
35692
35694
|
$0
|
|
35693
35695
|
], z0 = (n, e) => {
|