slw 0.8.47 → 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_69cc421a_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-69cc421a"), 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,15 +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(
39150
- (G) => G.field == Q.toUpperCase()
39148
+ }, setValue = async (Q, H, X) => {
39149
+ let G = formConfig.value.columns.filter(
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;
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
+ }
39157
39164
  }, getData = () => formData.value, getSelectRecord = () => formData.value, getForm = () => form.value, checkSubmitData = async () => {
39158
39165
  let Q = !1;
39159
39166
  return await form.value.validate().then((H) => {
@@ -39693,7 +39700,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39693
39700
  ]);
39694
39701
  };
39695
39702
  }
39696
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-69cc421a"]]);
39703
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ee44b54c"]]);
39697
39704
  WindowForm.name = "slw-window-form";
39698
39705
  WindowForm.install = (Q) => {
39699
39706
  Q.component(WindowForm.name, WindowForm);
@@ -124274,7 +124281,7 @@ function reConsole() {
124274
124281
  }
124275
124282
  }
124276
124283
  console.info(
124277
- "%cSLW %cVer 0.8.47",
124284
+ "%cSLW %cVer 0.8.49",
124278
124285
  "color:#409EFF;font-size: 22px;font-weight:bolder",
124279
124286
  "color:#999;font-size: 12px"
124280
124287
  );