yqform-h5 0.1.55 → 0.1.57

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.
@@ -12370,7 +12370,8 @@ const BE = {
12370
12370
  return this.enableForbid && this.item.noModify;
12371
12371
  },
12372
12372
  textRules() {
12373
- return [{ required: this.item.required, message: this.item.emsg || "当前项不能为空" }];
12373
+ const e = [{ required: this.item.required, message: this.item.emsg || "当前项不能为空" }];
12374
+ return this.item.type === "phone" && e.push({ pattern: /^1[3-9]\d{9}$/, message: "手机号格式不正确" }), e;
12374
12375
  }
12375
12376
  },
12376
12377
  methods: {
@@ -12635,7 +12636,7 @@ const BE = {
12635
12636
  created() {
12636
12637
  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 = "身份证格式不正确");
12637
12638
  }
12638
- }, ba = (e) => (ld("data-v-e5fde077"), e = e(), ud(), e), RE = {
12639
+ }, ba = (e) => (ld("data-v-f099d566"), e = e(), ud(), e), RE = {
12639
12640
  key: 0,
12640
12641
  class: "form-item-container"
12641
12642
  }, FE = {
@@ -13248,7 +13249,7 @@ function kx(e, t, n, o, a, s) {
13248
13249
  }, 8, ["show"])
13249
13250
  ])) : Ce("", !0);
13250
13251
  }
13251
- const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-e5fde077"]]);
13252
+ const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-f099d566"]]);
13252
13253
  /*!
13253
13254
  * vue-draggable-next v2.2.0
13254
13255
  * (c) 2023 Anish George
@@ -14978,7 +14979,7 @@ const gS = {
14978
14979
  };
14979
14980
  let u, d;
14980
14981
  if (e.type !== "phone" && e.type !== "identity" && (u = (f = e.range) == null ? void 0 : f.min, d = (c = e.range) == null ? void 0 : c.max), t.length === 0)
14981
- return e.required ? (s(), !1) : !0;
14982
+ return e.required ? (e.emsg = e.initialEmsg || "当前项不能为空", delete e.initialEmsg, s(), !1) : !0;
14982
14983
  if (e.type === "idPicture")
14983
14984
  return t && t.front && t.back ? !0 : (s(), !1);
14984
14985
  if (e.type === "text" || e.type === "password") {
@@ -14992,7 +14993,7 @@ const gS = {
14992
14993
  return m || s(), m;
14993
14994
  } else if (e.type === "phone") {
14994
14995
  const m = /^1[3-9]\d{9}$/.test(t);
14995
- return m || s(), m;
14996
+ return e.initialEmsg = e.emsg, e.emsg = "手机号格式不正确", m || s(), m;
14996
14997
  } else
14997
14998
  return !0;
14998
14999
  }
@@ -15132,7 +15133,7 @@ const gS = {
15132
15133
  },
15133
15134
  mounted() {
15134
15135
  }
15135
- }, pS = (e) => (ld("data-v-2119be2c"), e = e(), ud(), e), vS = { class: "main" }, yS = { class: "content-topimg" }, bS = {
15136
+ }, pS = (e) => (ld("data-v-a3e130a2"), e = e(), ud(), e), vS = { class: "main" }, yS = { class: "content-topimg" }, bS = {
15136
15137
  key: 0,
15137
15138
  class: "header-img"
15138
15139
  }, wS = {
@@ -15252,7 +15253,7 @@ function TS(e, t, n, o, a, s) {
15252
15253
  ])) : Ce("", !0)
15253
15254
  ]);
15254
15255
  }
15255
- const OS = /* @__PURE__ */ vo(gS, [["render", TS], ["__scopeId", "data-v-2119be2c"]]);
15256
+ const OS = /* @__PURE__ */ vo(gS, [["render", TS], ["__scopeId", "data-v-a3e130a2"]]);
15256
15257
  const DS = {
15257
15258
  name: "Content",
15258
15259
  emits: ["onSelect", "addFile", "submit", "edit", "handle"],