liyu-pc-base 1.0.790 → 1.0.792

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.
@@ -82,7 +82,7 @@ var we = z({
82
82
  },
83
83
  emits: ["update:value", "remove"],
84
84
  setup(e, { emit: t }) {
85
- let n = U({ ...e.field.form.rules }), r = W({}), i = ae(() => import("./FormRender3-DRBqN7X_.js").then((e) => e.n)), a, o = () => {
85
+ let n = U({ ...e.field.form.rules }), r = W({}), i = ae(() => import("./FormRender3--OnHVRGF.js").then((e) => e.n)), a, o = () => {
86
86
  let e = /* @__PURE__ */ new Uint8Array(16);
87
87
  return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
88
88
  }, s = W([]), c = o(), u = ([t, i]) => {
@@ -580,21 +580,21 @@ async function He(e) {
580
580
  if (t.watchType === "scoped") {
581
581
  if (t.valueType === "single") {
582
582
  let e = r?.[t.fieldName];
583
- if (e === void 0 && n !== void 0) return null;
583
+ if (e === void 0 && n !== void 0) return { value: "" };
584
584
  if (t.valueKey && (e = e?.[t.valueKey]), e !== n) return { value: e };
585
585
  } else if (t.valueType === "multiple") {
586
586
  let e = r?.[t.fieldName];
587
587
  if (t.valueKeyList && t.valueKeyList.length) {
588
588
  let r = [];
589
589
  for (let n of t.valueKeyList) e?.[n] !== void 0 && r.push(e?.[n]);
590
- if (r.length === 0 && n !== void 0) return null;
590
+ if (r.length === 0 && n !== void 0) return { value: "" };
591
591
  if (e = r.join(t.valueSpace || ","), e !== n) return { value: e };
592
592
  }
593
593
  }
594
594
  } else if (t.watchType === "global") {
595
595
  if (t.valueType === "single") {
596
596
  let e = a?.[t.fieldName];
597
- if (t.valueKey && (e = e?.[t.valueKey]), e === void 0 && n !== void 0) return null;
597
+ if (t.valueKey && (e = e?.[t.valueKey]), e === void 0 && n !== void 0) return { value: "" };
598
598
  if (e !== n) return { value: e };
599
599
  } else if (t.valueType === "multiple") {
600
600
  let e = a?.[t.fieldName];
@@ -609,14 +609,14 @@ async function He(e) {
609
609
  let e = x(t.fieldName || "", l, ["formModel", ...u]);
610
610
  if (t.valueType === "single") {
611
611
  let r = e;
612
- if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return null;
612
+ if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return { value: "" };
613
613
  if (r !== n) return { value: r };
614
614
  } else if (t.valueType === "multiple") {
615
615
  let r = e;
616
616
  if (t.valueKeyList && t.valueKeyList.length) {
617
617
  let e = [];
618
618
  for (let n of t.valueKeyList) r?.[n] !== void 0 && e.push(r?.[n]);
619
- if (e.length === 0 && n !== void 0) return null;
619
+ if (e.length === 0 && n !== void 0) return { value: "" };
620
620
  if (r = e.join(t.valueSpace || ","), r !== n) return { value: r };
621
621
  }
622
622
  }
@@ -629,7 +629,7 @@ async function He(e) {
629
629
  context: l,
630
630
  keyPath: [...u, t.name]
631
631
  }, d);
632
- if (e === void 0 && n !== void 0) return null;
632
+ if (e === void 0 && n !== void 0) return { value: "" };
633
633
  if (e !== n) return { value: e };
634
634
  } catch (e) {
635
635
  return console.error(e), {
@@ -639,9 +639,9 @@ async function He(e) {
639
639
  }
640
640
  else if (t.watchType === "serial") {
641
641
  if (f) return await Ve(t);
642
- if (n != null && n !== "") return null;
642
+ if (n != null && n !== "") return { value: "" };
643
643
  let e = Be(t, u);
644
- if (ze.has(e)) return null;
644
+ if (ze.has(e)) return { value: "" };
645
645
  ze.add(e);
646
646
  try {
647
647
  let e = t.serialConfig || {}, r = await i({