slw 0.8.48 → 0.8.49

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/lib/index.js CHANGED
@@ -38875,7 +38875,7 @@ var js = js$1.exports;
38875
38875
  })(Q);
38876
38876
  })(js$1);
38877
38877
  var jsExports = js$1.exports;
38878
- const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_30347b42_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-30347b42"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38878
+ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_ee44b54c_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-ee44b54c"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38879
38879
  key: 0,
38880
38880
  style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
38881
38881
  }, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
@@ -39145,21 +39145,22 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39145
39145
  formData.value[H.toUpperCase()] = Q[H];
39146
39146
  }, setInitData = (Q) => {
39147
39147
  setData(Q);
39148
- }, setValue = async (Q, H) => {
39149
- let X = formConfig.value.columns.filter(
39148
+ }, setValue = async (Q, H, X) => {
39149
+ let G = formConfig.value.columns.filter(
39150
39150
  (Z) => Z.field == Q.toUpperCase()
39151
39151
  )[0];
39152
- X != null && X.remoteSearch ? (X.itemRender.options = await remoteMethod(
39152
+ if (G != null && G.remoteSearch ? (G.itemRender.options = await remoteMethod(
39153
39153
  H,
39154
- X.id,
39155
- X.selectorId
39156
- ), X.itemRender.options.length > 0 ? formData.value[Q.toUpperCase()] = X.itemRender.options[0].VALUE : formData.value[Q.toUpperCase()] = H) : formData.value[Q.toUpperCase()] = H;
39157
- let G = {
39158
- data: formData.value,
39159
- item: X,
39160
- property: X.field
39161
- };
39162
- onFieldChange(G);
39154
+ G.id,
39155
+ G.selectorId
39156
+ ), G.itemRender.options.length > 0 ? formData.value[Q.toUpperCase()] = G.itemRender.options[0].VALUE : formData.value[Q.toUpperCase()] = H) : formData.value[Q.toUpperCase()] = H, X) {
39157
+ let Z = {
39158
+ data: formData.value,
39159
+ item: G,
39160
+ property: G.field
39161
+ };
39162
+ onFieldChange(Z);
39163
+ }
39163
39164
  }, getData = () => formData.value, getSelectRecord = () => formData.value, getForm = () => form.value, checkSubmitData = async () => {
39164
39165
  let Q = !1;
39165
39166
  return await form.value.validate().then((H) => {
@@ -39699,7 +39700,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39699
39700
  ]);
39700
39701
  };
39701
39702
  }
39702
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-30347b42"]]);
39703
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ee44b54c"]]);
39703
39704
  WindowForm.name = "slw-window-form";
39704
39705
  WindowForm.install = (Q) => {
39705
39706
  Q.component(WindowForm.name, WindowForm);
@@ -124280,7 +124281,7 @@ function reConsole() {
124280
124281
  }
124281
124282
  }
124282
124283
  console.info(
124283
- "%cSLW %cVer 0.8.48",
124284
+ "%cSLW %cVer 0.8.49",
124284
124285
  "color:#409EFF;font-size: 22px;font-weight:bolder",
124285
124286
  "color:#999;font-size: 12px"
124286
124287
  );