slw 0.5.999 → 0.6.0

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
@@ -37044,7 +37044,7 @@ const pseudoClasses = /* @__PURE__ */ [
37044
37044
  function css$1() {
37045
37045
  return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
37046
37046
  }
37047
- const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-3b82697d"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
37047
+ const windowForm_vue_vue_type_style_index_0_scoped_a12a6513_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a12a6513"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
37048
37048
  key: 0,
37049
37049
  style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
37050
37050
  }, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
@@ -37145,15 +37145,13 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
37145
37145
  }
37146
37146
  }
37147
37147
  return Q;
37148
- }), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter(
37149
- (Q) => {
37150
- let H = !0;
37151
- return Q.displayLogic && (H = displayLogic(Q.displayLogic, {
37152
- ...formData.value,
37153
- ...assembleParentData()
37154
- })), typeof Q.code < "u" && Q.type != "EDIT" && Q.type != "DELETE" && Q.type != "NEW" && !(uploadConfig.value.isHaveImgField && Q.type == "PIC_UPLOAD") && H;
37155
- }
37156
- )), formSelectMap = computed(() => {
37148
+ }), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter((Q) => {
37149
+ let H = !0;
37150
+ return Q.displayLogic && (H = displayLogic(Q.displayLogic, {
37151
+ ...formData.value,
37152
+ ...assembleParentData()
37153
+ })), typeof Q.code < "u" && Q.type != "EDIT" && Q.type != "DELETE" && Q.type != "NEW" && !(uploadConfig.value.isHaveImgField && Q.type == "PIC_UPLOAD") && H;
37154
+ })), formSelectMap = computed(() => {
37157
37155
  let Q = {};
37158
37156
  return formConfig.value.columns.forEach((H) => {
37159
37157
  H.itemRender && H.itemRender.props._select_id && (Q[H.id] = H);
@@ -37303,7 +37301,9 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
37303
37301
  }, setInitData = (Q) => {
37304
37302
  setData(Q);
37305
37303
  }, setValue = async (Q, H) => {
37306
- let G = formConfig.value.columns.filter((X) => X.field == Q.toUpperCase())[0];
37304
+ let G = formConfig.value.columns.filter(
37305
+ (X) => X.field == Q.toUpperCase()
37306
+ )[0];
37307
37307
  G != null && G.remoteSearch ? (G.itemRender.options = await remoteMethod(
37308
37308
  H,
37309
37309
  G.id,
@@ -37454,10 +37454,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
37454
37454
  _select_id: G
37455
37455
  };
37456
37456
  K[X] = Q;
37457
- let ee = await axios.post(
37458
- "/window/selector",
37459
- $qs.stringify(K)
37460
- );
37457
+ let ee = await axios.post("/window/selector", $qs.stringify(K));
37461
37458
  if (ee.data.result && ee.data.data)
37462
37459
  return Z = ee.data.data.map((te) => Object.assign(
37463
37460
  {
@@ -37653,6 +37650,12 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
37653
37650
  var X;
37654
37651
  (X = G == null ? void 0 : G.data) != null && X.result || $message.error(G.msg);
37655
37652
  });
37653
+ }, setFormSelectOption = (Q, H = []) => {
37654
+ let G = formConfig.value.columns.filter(
37655
+ (X) => X.field == Q.toUpperCase()
37656
+ )[0];
37657
+ G && (G.itemRender.options = H);
37658
+ }, footerSum = () => {
37656
37659
  }, throwFunction = (Q) => {
37657
37660
  Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G);
37658
37661
  };
@@ -37814,7 +37817,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
37814
37817
  ]);
37815
37818
  };
37816
37819
  }
37817
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-3b82697d"]]);
37820
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a12a6513"]]);
37818
37821
  WindowForm.name = "slw-window-form";
37819
37822
  WindowForm.install = (Q) => {
37820
37823
  Q.component(WindowForm.name, WindowForm);
@@ -122332,7 +122335,7 @@ function reConsole() {
122332
122335
  }
122333
122336
  }
122334
122337
  console.info(
122335
- "%cSLW %cVer 0.5.999",
122338
+ "%cSLW %cVer 0.6.000",
122336
122339
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122337
122340
  "color:#999;font-size: 12px"
122338
122341
  );