yqform-h5 0.1.54 → 0.1.55

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.
@@ -12368,6 +12368,9 @@ const BE = {
12368
12368
  },
12369
12369
  disableItem() {
12370
12370
  return this.enableForbid && this.item.noModify;
12371
+ },
12372
+ textRules() {
12373
+ return [{ required: this.item.required, message: this.item.emsg || "当前项不能为空" }];
12371
12374
  }
12372
12375
  },
12373
12376
  methods: {
@@ -12632,7 +12635,7 @@ const BE = {
12632
12635
  created() {
12633
12636
  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
12637
  }
12635
- }, ba = (e) => (ld("data-v-0baa1e84"), e = e(), ud(), e), RE = {
12638
+ }, ba = (e) => (ld("data-v-e5fde077"), e = e(), ud(), e), RE = {
12636
12639
  key: 0,
12637
12640
  class: "form-item-container"
12638
12641
  }, FE = {
@@ -12783,7 +12786,7 @@ function kx(e, t, n, o, a, s) {
12783
12786
  modelValue: a.textValue,
12784
12787
  "onUpdate:modelValue": t[2] || (t[2] = (O) => a.textValue = O),
12785
12788
  placeholder: n.item.placeholder,
12786
- rules: [{ required: n.item.required, message: n.item.emsg || "当前项不能为空" }],
12789
+ rules: s.textRules,
12787
12790
  [s.maxlength || ""]: n.item.limit,
12788
12791
  readonly: s.readonly,
12789
12792
  disabled: s.disableItem,
@@ -13245,7 +13248,7 @@ function kx(e, t, n, o, a, s) {
13245
13248
  }, 8, ["show"])
13246
13249
  ])) : Ce("", !0);
13247
13250
  }
13248
- const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-0baa1e84"]]);
13251
+ const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-e5fde077"]]);
13249
13252
  /*!
13250
13253
  * vue-draggable-next v2.2.0
13251
13254
  * (c) 2023 Anish George
@@ -14973,11 +14976,11 @@ const gS = {
14973
14976
  this.noAnswerKey = a;
14974
14977
  });
14975
14978
  };
14976
- if (e.type === "idPicture")
14977
- return console.log("[ newText ] >", t), t && t.front && t.back ? !0 : (s(), !1);
14978
14979
  let u, d;
14979
- 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), console.log("[ value ] >", t), t.length === 0)
14980
+ 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)
14980
14981
  return e.required ? (s(), !1) : !0;
14982
+ if (e.type === "idPicture")
14983
+ return t && t.front && t.back ? !0 : (s(), !1);
14981
14984
  if (e.type === "text" || e.type === "password") {
14982
14985
  const m = t.length;
14983
14986
  return u && m < u * 1 || d && m > d * 1 ? (s(!1), !1) : !0;
@@ -14986,7 +14989,10 @@ const gS = {
14986
14989
  return u && t * 1 < u * 1 || d && t * 1 > d * 1 ? (s(!1), !1) : !0;
14987
14990
  if (e.type === "identity") {
14988
14991
  const m = u_(t);
14989
- return console.log(m), m || s(), m;
14992
+ return m || s(), m;
14993
+ } else if (e.type === "phone") {
14994
+ const m = /^1[3-9]\d{9}$/.test(t);
14995
+ return m || s(), m;
14990
14996
  } else
14991
14997
  return !0;
14992
14998
  }
@@ -15126,7 +15132,7 @@ const gS = {
15126
15132
  },
15127
15133
  mounted() {
15128
15134
  }
15129
- }, pS = (e) => (ld("data-v-1a2c12d5"), e = e(), ud(), e), vS = { class: "main" }, yS = { class: "content-topimg" }, bS = {
15135
+ }, pS = (e) => (ld("data-v-2119be2c"), e = e(), ud(), e), vS = { class: "main" }, yS = { class: "content-topimg" }, bS = {
15130
15136
  key: 0,
15131
15137
  class: "header-img"
15132
15138
  }, wS = {
@@ -15246,7 +15252,7 @@ function TS(e, t, n, o, a, s) {
15246
15252
  ])) : Ce("", !0)
15247
15253
  ]);
15248
15254
  }
15249
- const OS = /* @__PURE__ */ vo(gS, [["render", TS], ["__scopeId", "data-v-1a2c12d5"]]);
15255
+ const OS = /* @__PURE__ */ vo(gS, [["render", TS], ["__scopeId", "data-v-2119be2c"]]);
15250
15256
  const DS = {
15251
15257
  name: "Content",
15252
15258
  emits: ["onSelect", "addFile", "submit", "edit", "handle"],