yqform-h5 0.1.52 → 0.1.54
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/yqform-h5.es.js +9 -9
- package/dist/yqform-h5.umd.js +2 -2
- package/package.json +1 -1
package/dist/yqform-h5.es.js
CHANGED
|
@@ -12510,7 +12510,7 @@ const BE = {
|
|
|
12510
12510
|
beforeReadFile(e) {
|
|
12511
12511
|
return new Promise((t, n) => {
|
|
12512
12512
|
if (e.type.includes("image"))
|
|
12513
|
-
d_([e], (o) => {
|
|
12513
|
+
console.log("file before read >>", e), d_([e], (o) => {
|
|
12514
12514
|
const a = o[0];
|
|
12515
12515
|
if (a.size > this.item.size * 1024 * 1024) {
|
|
12516
12516
|
let s = "图片大小不符合要求";
|
|
@@ -12527,7 +12527,7 @@ const BE = {
|
|
|
12527
12527
|
},
|
|
12528
12528
|
// 上传图片、文件完成
|
|
12529
12529
|
afterReadFile(e) {
|
|
12530
|
-
Array.isArray(e) ? e.forEach((t) => {
|
|
12530
|
+
console.log("[ file ] >", e), Array.isArray(e) ? e.forEach((t) => {
|
|
12531
12531
|
this.handleFileUpload(t);
|
|
12532
12532
|
}) : this.handleFileUpload(e);
|
|
12533
12533
|
},
|
|
@@ -12586,7 +12586,7 @@ const BE = {
|
|
|
12586
12586
|
if (!o)
|
|
12587
12587
|
return !1;
|
|
12588
12588
|
const { kb: a } = Xo(o);
|
|
12589
|
-
return a > 100 ? (this.$toast.fail("图片太大了"), !1) : (this.frontImg = { url: o, type: e.type, isImage: !0 }, this.idFront.push(this.frontImg), this.dependChange(), !0);
|
|
12589
|
+
return a > 100 ? (this.$toast.fail("图片太大了"), !1) : (this.frontImg = { url: o, type: e.type, isImage: !0, name: e.name }, this.idFront.push(this.frontImg), this.dependChange(), !0);
|
|
12590
12590
|
});
|
|
12591
12591
|
}, t.readAsDataURL(e);
|
|
12592
12592
|
},
|
|
@@ -12598,7 +12598,7 @@ const BE = {
|
|
|
12598
12598
|
if (!o)
|
|
12599
12599
|
return !1;
|
|
12600
12600
|
const { kb: a } = Xo(o);
|
|
12601
|
-
return a > 80 ? (this.$toast.fail("图片太大了"), !1) : (this.backImg = { url: o, type: e.type, isImage: !0 }, this.idBack.push(this.backImg), this.dependChange(), !0);
|
|
12601
|
+
return a > 80 ? (this.$toast.fail("图片太大了"), !1) : (this.backImg = { url: o, type: e.type, isImage: !0, name: e.name }, this.idBack.push(this.backImg), this.dependChange(), !0);
|
|
12602
12602
|
});
|
|
12603
12603
|
}, t.readAsDataURL(e);
|
|
12604
12604
|
},
|
|
@@ -12632,7 +12632,7 @@ const BE = {
|
|
|
12632
12632
|
created() {
|
|
12633
12633
|
this.item.type === "rate" && (this.rateValue = 1), this.initDependValue(), this.item.type === "phone" && this.item.autoFill && this.item.autoFill.auto && this.item.autoFill.config && (this.textValue = this.item.autoFill.config()), this.item.type === "identity" && !this.item.emsg && (this.item.emsg = "身份证格式不正确");
|
|
12634
12634
|
}
|
|
12635
|
-
}, ba = (e) => (ld("data-v-
|
|
12635
|
+
}, ba = (e) => (ld("data-v-0baa1e84"), e = e(), ud(), e), RE = {
|
|
12636
12636
|
key: 0,
|
|
12637
12637
|
class: "form-item-container"
|
|
12638
12638
|
}, FE = {
|
|
@@ -13245,7 +13245,7 @@ function kx(e, t, n, o, a, s) {
|
|
|
13245
13245
|
}, 8, ["show"])
|
|
13246
13246
|
])) : Ce("", !0);
|
|
13247
13247
|
}
|
|
13248
|
-
const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-
|
|
13248
|
+
const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-0baa1e84"]]);
|
|
13249
13249
|
/*!
|
|
13250
13250
|
* vue-draggable-next v2.2.0
|
|
13251
13251
|
* (c) 2023 Anish George
|
|
@@ -15035,7 +15035,7 @@ const gS = {
|
|
|
15035
15035
|
} else if (s[d].type === "image") {
|
|
15036
15036
|
const p = [];
|
|
15037
15037
|
g.value.forEach((x) => {
|
|
15038
|
-
p.push({ url: x.url });
|
|
15038
|
+
p.push({ url: x.url, name: x.name });
|
|
15039
15039
|
}), o.push(g), t[`${g.key}`] = [{ content: p }];
|
|
15040
15040
|
} else
|
|
15041
15041
|
s[d].type === "pay" || s[d].type === "idPicture" ? t[`${g.key}`] = [{ ...g.value }] : t[`${g.key}`] = [{ content: g.value }];
|
|
@@ -15126,7 +15126,7 @@ const gS = {
|
|
|
15126
15126
|
},
|
|
15127
15127
|
mounted() {
|
|
15128
15128
|
}
|
|
15129
|
-
}, pS = (e) => (ld("data-v-
|
|
15129
|
+
}, pS = (e) => (ld("data-v-1a2c12d5"), e = e(), ud(), e), vS = { class: "main" }, yS = { class: "content-topimg" }, bS = {
|
|
15130
15130
|
key: 0,
|
|
15131
15131
|
class: "header-img"
|
|
15132
15132
|
}, wS = {
|
|
@@ -15246,7 +15246,7 @@ function TS(e, t, n, o, a, s) {
|
|
|
15246
15246
|
])) : Ce("", !0)
|
|
15247
15247
|
]);
|
|
15248
15248
|
}
|
|
15249
|
-
const OS = /* @__PURE__ */ vo(gS, [["render", TS], ["__scopeId", "data-v-
|
|
15249
|
+
const OS = /* @__PURE__ */ vo(gS, [["render", TS], ["__scopeId", "data-v-1a2c12d5"]]);
|
|
15250
15250
|
const DS = {
|
|
15251
15251
|
name: "Content",
|
|
15252
15252
|
emits: ["onSelect", "addFile", "submit", "edit", "handle"],
|