liyu-pc-base 1.0.757 → 1.0.763

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 = R({
82
82
  },
83
83
  emits: ["update:value", "remove"],
84
84
  setup(e, { emit: t }) {
85
- let n = H({ ...e.field.form.rules }), r = U({}), i = L(() => import("./FormRender3-DEuv5tRK.js").then((e) => e.n)), a, o = () => {
85
+ let n = H({ ...e.field.form.rules }), r = U({}), i = L(() => import("./FormRender3-CFahE5cD.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 = U([]), c = o(), u = ([t, i]) => {
@@ -1103,19 +1103,19 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
1103
1103
  },
1104
1104
  emits: ["update:value"],
1105
1105
  setup(e, { emit: t }) {
1106
- let n = e, r = t, i = U(null), a = (0, Q.debounce)(async (e, t, a, o) => {
1107
- let s = await He({
1108
- field: a,
1109
- currentValue: n.value,
1106
+ let n = e, r = t, i = U(null), a = U(n.value || ""), o = k(() => n.is_form_design ? a.value : n.value), s = (0, Q.debounce)(async (e, t, s, c) => {
1107
+ let l = await He({
1108
+ field: s,
1109
+ currentValue: o.value,
1110
1110
  innerModel: e,
1111
1111
  globalInnerModel: t,
1112
- formModel: o,
1112
+ formModel: c,
1113
1113
  context: n.context,
1114
1114
  baseKeyPath: n.baseKeyPath,
1115
1115
  workerHostFunctions: n.workerHostFunctions || {},
1116
1116
  is_form_design: n.is_form_design
1117
1117
  });
1118
- s && (s.value !== void 0 && s.value !== null && s.value !== "" && r("update:value", s.value), (a.watchType === "code" || a.watchType === "serial") && (i.value = s.error || null));
1118
+ l && (n.is_form_design ? a.value = l.value ?? "" : l.value !== void 0 && l.value !== null && l.value !== "" && r("update:value", l.value), (s.watchType === "code" || s.watchType === "serial") && (i.value = l.error || null));
1119
1119
  }, 200);
1120
1120
  return J(() => [
1121
1121
  n.innerModel,
@@ -1124,7 +1124,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
1124
1124
  n.formModel,
1125
1125
  n.context
1126
1126
  ], ([e, t, n, r]) => {
1127
- a(e, t, n, r);
1127
+ s(e, t, n, r);
1128
1128
  }, {
1129
1129
  immediate: !0,
1130
1130
  deep: !0
@@ -1135,7 +1135,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
1135
1135
  "show-debug-code": e.field.watchType === "code"
1136
1136
  }, {
1137
1137
  default: Y(() => [I(r, {
1138
- value: e.value,
1138
+ value: o.value,
1139
1139
  readonly: "",
1140
1140
  size: "small",
1141
1141
  style: { "background-color": "#f5f5f5" }
@@ -1144,7 +1144,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
1144
1144
  }, 8, ["value-code", "show-debug-code"]), i.value ? (V(), M("span", Ge, q(i.value), 1)) : j("", !0)], 64);
1145
1145
  };
1146
1146
  }
1147
- }), [["__scopeId", "data-v-10895af3"]]), qe = R({
1147
+ }), [["__scopeId", "data-v-eab2ef4b"]]), qe = R({
1148
1148
  name: "FormButton",
1149
1149
  components: { debugCode: C },
1150
1150
  props: {