gp-designer 1.0.28 → 1.0.30
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/gp-designer.es.js +7 -7
- package/dist/gp-designer.umd.js +5 -5
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/gp-designer.es.js
CHANGED
@@ -10145,7 +10145,6 @@ const yd = {
|
|
10145
10145
|
function ce(R, O) {
|
10146
10146
|
if (!R || R.length === 0)
|
10147
10147
|
return;
|
10148
|
-
console.log("files", R, O);
|
10149
10148
|
const ee = R[0];
|
10150
10149
|
if (O.rule && (O.rule.minImageWidth || O.rule.maxImageHeight)) {
|
10151
10150
|
if (O.rule.minImageWidth && ee.width < O.rule.minImageWidth) {
|
@@ -10275,7 +10274,7 @@ const yd = {
|
|
10275
10274
|
], 64);
|
10276
10275
|
};
|
10277
10276
|
}
|
10278
|
-
}), Md = /* @__PURE__ */ ft(Rd, [["__scopeId", "data-v-
|
10277
|
+
}), Md = /* @__PURE__ */ ft(Rd, [["__scopeId", "data-v-4ca4acfe"]]), Pd = Ke({
|
10279
10278
|
name: "GpCheckbox",
|
10280
10279
|
props: {
|
10281
10280
|
modelValue: {
|
@@ -10343,7 +10342,7 @@ const Wt = /* @__PURE__ */ ft(Pd, [["render", Fd], ["__scopeId", "data-v-68b8f27
|
|
10343
10342
|
return;
|
10344
10343
|
}
|
10345
10344
|
if (s.value.type === z.Text) {
|
10346
|
-
if (s.value.rule.minText > s.value.rule.maxText) {
|
10345
|
+
if (Number(s.value.rule.minText) > Number(s.value.rule.maxText)) {
|
10347
10346
|
Z.error("最小文本长度不能大于最大文本长度");
|
10348
10347
|
return;
|
10349
10348
|
}
|
@@ -10353,7 +10352,7 @@ const Wt = /* @__PURE__ */ ft(Pd, [["render", Fd], ["__scopeId", "data-v-68b8f27
|
|
10353
10352
|
}
|
10354
10353
|
}
|
10355
10354
|
if (s.value.type === z.Block) {
|
10356
|
-
if (s.value.rule.minBlock > s.value.rule.maxBlock) {
|
10355
|
+
if (Number(s.value.rule.minBlock) > Number(s.value.rule.maxBlock)) {
|
10357
10356
|
Z.error("最小块数量不能大于最大块数量");
|
10358
10357
|
return;
|
10359
10358
|
}
|
@@ -10511,7 +10510,7 @@ const Wt = /* @__PURE__ */ ft(Pd, [["render", Fd], ["__scopeId", "data-v-68b8f27
|
|
10511
10510
|
}, " 保存 ")
|
10512
10511
|
]));
|
10513
10512
|
}
|
10514
|
-
}), tf = /* @__PURE__ */ ft(ef, [["__scopeId", "data-v-
|
10513
|
+
}), tf = /* @__PURE__ */ ft(ef, [["__scopeId", "data-v-7395db8a"]]);
|
10515
10514
|
/*!
|
10516
10515
|
* Cropper.js v1.6.2
|
10517
10516
|
* https://fengyuanchen.github.io/cropperjs
|
@@ -12572,6 +12571,7 @@ const I1 = /* @__PURE__ */ ft(p1, [["render", C1]]), S1 = { class: "p-4 flex fle
|
|
12572
12571
|
x("div", P1, [
|
12573
12572
|
u.value ? (D(), Nt(Md, {
|
12574
12573
|
key: 0,
|
12574
|
+
"upload-by-file": _.uploadByFile,
|
12575
12575
|
cropper: f.value,
|
12576
12576
|
icon: E.value,
|
12577
12577
|
mode: _.mode,
|
@@ -12587,7 +12587,7 @@ const I1 = /* @__PURE__ */ ft(p1, [["render", C1]]), S1 = { class: "p-4 flex fle
|
|
12587
12587
|
onBlockAction: re,
|
12588
12588
|
onAddIcon: Ae,
|
12589
12589
|
onUpload: Fe
|
12590
|
-
}, null, 8, ["cropper", "icon", "mode", "icons", "r", "element", "selectedElement", "hoveredElement"])) : H("", !0)
|
12590
|
+
}, null, 8, ["upload-by-file", "cropper", "icon", "mode", "icons", "r", "element", "selectedElement", "hoveredElement"])) : H("", !0)
|
12591
12591
|
])
|
12592
12592
|
]),
|
12593
12593
|
c.value == "design" ? (D(), P("div", {
|
@@ -12625,7 +12625,7 @@ const I1 = /* @__PURE__ */ ft(p1, [["render", C1]]), S1 = { class: "p-4 flex fle
|
|
12625
12625
|
}, null, 8, ["icons"])
|
12626
12626
|
]));
|
12627
12627
|
}
|
12628
|
-
}), F1 = /* @__PURE__ */ ft(U1, [["__scopeId", "data-v-
|
12628
|
+
}), F1 = /* @__PURE__ */ ft(U1, [["__scopeId", "data-v-90ae8bc1"]]), $1 = {
|
12629
12629
|
install(e) {
|
12630
12630
|
e.component("Designer", F1);
|
12631
12631
|
}
|