slw 0.8.51 → 0.8.72

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
@@ -8290,10 +8290,10 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
8290
8290
  }, _withScopeId$4 = (Q) => (pushScopeId("data-v-dddba6c9"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "upload-list-box" }, _hoisted_2$kT = {
8291
8291
  key: 0,
8292
8292
  class: "thumbnail"
8293
- }, _hoisted_3$hU = { class: "el-upload-list__item-actions" }, _hoisted_4$av = ["onClick"], _hoisted_5$4V = {
8293
+ }, _hoisted_3$hU = { class: "el-upload-list__item-actions" }, _hoisted_4$aw = ["onClick"], _hoisted_5$4W = {
8294
8294
  key: 0,
8295
8295
  class: "preview-img-list__item-actions"
8296
- }, _hoisted_6$1$ = ["onClick"], _sfc_main$7 = {
8296
+ }, _hoisted_6$20 = ["onClick"], _sfc_main$7 = {
8297
8297
  __name: "picture-upload",
8298
8298
  props: {
8299
8299
  uploadConfig: {
@@ -8443,7 +8443,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
8443
8443
  ]),
8444
8444
  _: 1
8445
8445
  })
8446
- ], 8, _hoisted_4$av)) : createCommentVNode("", !0)
8446
+ ], 8, _hoisted_4$aw)) : createCommentVNode("", !0)
8447
8447
  ])
8448
8448
  ])
8449
8449
  ]),
@@ -8481,7 +8481,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
8481
8481
  style: { "max-height": "100%" },
8482
8482
  alt: "Preview Image"
8483
8483
  }, null, 512),
8484
- X.uploadConfig.openType != "view" ? (openBlock(), createElementBlock("span", _hoisted_5$4V, [
8484
+ X.uploadConfig.openType != "view" ? (openBlock(), createElementBlock("span", _hoisted_5$4W, [
8485
8485
  createElementVNode("span", {
8486
8486
  class: "preview-img-list__item-delete",
8487
8487
  onClick: (Ve) => fe(De)
@@ -8492,7 +8492,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
8492
8492
  ]),
8493
8493
  _: 1
8494
8494
  })
8495
- ], 8, _hoisted_6$1$)
8495
+ ], 8, _hoisted_6$20)
8496
8496
  ])) : createCommentVNode("", !0)
8497
8497
  ]),
8498
8498
  _: 2
@@ -8511,14 +8511,14 @@ PictureUpload.name = "slw-picture-upload";
8511
8511
  PictureUpload.install = (Q) => {
8512
8512
  Q.component(PictureUpload.name, PictureUpload);
8513
8513
  };
8514
- const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-516f3b2e"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_6ef05836_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-6ef05836"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8515
8515
  class: "slw-window-grid-container",
8516
8516
  style: { height: "100%" }
8517
- }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
8517
+ }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$av = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4V = [
8518
8518
  _hoisted_2$kS,
8519
8519
  _hoisted_3$hT,
8520
- _hoisted_4$au
8521
- ], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = {
8520
+ _hoisted_4$av
8521
+ ], _hoisted_6$1$ = ["onClick"], _hoisted_7$13 = {
8522
8522
  key: 0,
8523
8523
  style: { verticalAlign: "middle" }
8524
8524
  }, _hoisted_8$F = { style: { padding: "20px 0" } }, _sfc_main$6 = {
@@ -8548,7 +8548,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
8548
8548
  { code: "contract", name: $T("收缩节点"), disabled: !1 }
8549
8549
  ]
8550
8550
  ]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
8551
- const preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
8551
+ const preTag = computed(() => gridData.value.params.preTag || ""), computeExcelUrl = computed(() => {
8552
+ let Q = getCurRegion();
8553
+ return Q.params.newImportUrl ? Q.params.newImportUrl : importUrl.value;
8554
+ }), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
8552
8555
  (H) => H.showInGrid && (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || H.btnShowInGrid[Q])
8553
8556
  ), $modal = $Modal, $Message = ref({
8554
8557
  success(Q) {
@@ -8889,7 +8892,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
8889
8892
  });
8890
8893
  const K = {}, ee = gridData.value.columns;
8891
8894
  for (let ne = 0; ne < ee.length; ne++)
8892
- ee[ne].editRender && (K[ee[ne].field] = "");
8895
+ ee[ne].editRender && (K[ee[ne].field] = ee[ne].editRender.name == "ElInputNumber" ? null : "");
8893
8896
  if (gridData.value.params.parentRowId && (K[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), K._button_id = Q._button_id, gridData.value.type === "EDIT_GRID") {
8894
8897
  const ne = getGrid();
8895
8898
  K._region_id = gridData.value.params._region_id;
@@ -9206,7 +9209,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
9206
9209
  }, importSuccess = (Q, H) => {
9207
9210
  Q.result && (isImport.value = !1, reload()), $vxeMessage({ content: Q.msg, status: "info", zIndex: 3e3 });
9208
9211
  }, downTemplate = () => {
9209
- axios.download("/window/downloadTemplate", {
9212
+ let Q = getCurRegion(), H = Q.params.newDownTemplateUrl ? Q.params.newDownTemplateUrl : "/window/downloadTemplate";
9213
+ axios.download(H, {
9210
9214
  _region_id: gridData.value.params._region_id
9211
9215
  });
9212
9216
  }, confirm = (Q, H) => {
@@ -9797,6 +9801,20 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
9797
9801
  const { form: X } = H.getProxyInfo();
9798
9802
  return X;
9799
9803
  }
9804
+ }, setImportUrl = (Q) => {
9805
+ const H = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}${Q}`);
9806
+ let X = getCurRegion();
9807
+ X.params.newImportUrl = H.value;
9808
+ }, setDownTemplateUrl = (Q) => {
9809
+ const H = Q;
9810
+ let X = getCurRegion();
9811
+ X.params.newDownTemplateUrl = H;
9812
+ }, beforeExcelUpload = async (Q) => {
9813
+ let H = getCurRegion();
9814
+ return H.params.beforeUploadFn ? await H.params.beforeUploadFn() : !0;
9815
+ }, setBeforeUploadFn = (Q) => {
9816
+ let H = getCurRegion();
9817
+ H.params.beforeUploadFn = Q;
9800
9818
  };
9801
9819
  return onMounted(async () => {
9802
9820
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9878,7 +9896,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
9878
9896
  class: "vxe-table--cell-area",
9879
9897
  ref_key: "cellarea",
9880
9898
  ref: cellarea
9881
- }, _hoisted_5$4U, 512),
9899
+ }, _hoisted_5$4V, 512),
9882
9900
  createVNode(ee, mergeProps$1({
9883
9901
  ref_key: "curRegion",
9884
9902
  ref: curRegion,
@@ -9905,7 +9923,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
9905
9923
  class: "iconfont icon-scan1",
9906
9924
  onClick: (se) => onScanIconClick(ae[le], le),
9907
9925
  style: { cursor: "pointer" }
9908
- }, null, 8, _hoisted_6$1_)
9926
+ }, null, 8, _hoisted_6$1$)
9909
9927
  ]),
9910
9928
  _: 2
9911
9929
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -9922,7 +9940,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
9922
9940
  onClick: (ce) => toolBarButtonClick(se, ae, le)
9923
9941
  }, createSlots({
9924
9942
  default: withCtx(() => [
9925
- !se.iconComponent || typeof se.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_7$12, toDisplayString(unref($T)(se.name)), 1)) : createCommentVNode("", !0)
9943
+ !se.iconComponent || typeof se.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_7$13, toDisplayString(unref($T)(se.name)), 1)) : createCommentVNode("", !0)
9926
9944
  ]),
9927
9945
  _: 2
9928
9946
  }, [
@@ -9999,10 +10017,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
9999
10017
  ref: "uploadExcel",
10000
10018
  type: "drag",
10001
10019
  drag: "",
10002
- action: unref(importUrl),
10020
+ action: computeExcelUrl.value,
10003
10021
  headers: unref(httpHeaders)(),
10004
10022
  accept: ".xls,.xlsx",
10005
10023
  data: unref(uploadData),
10024
+ "before-upload": beforeExcelUpload,
10006
10025
  "on-format-error": importFormatError,
10007
10026
  "on-success": importSuccess
10008
10027
  }, {
@@ -10038,7 +10057,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_516f3b2e_lang = "", _withScop
10038
10057
  ]);
10039
10058
  };
10040
10059
  }
10041
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-516f3b2e"]]);
10060
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6ef05836"]]);
10042
10061
  WindowGrid.name = "slw-window-grid";
10043
10062
  WindowGrid.install = (Q) => {
10044
10063
  Q.component(WindowGrid.name, WindowGrid);
@@ -38875,10 +38894,10 @@ var js = js$1.exports;
38875
38894
  })(Q);
38876
38895
  })(js$1);
38877
38896
  var jsExports = js$1.exports;
38878
- const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_25f3b206_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-25f3b206"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38897
+ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_52054403_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-52054403"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38879
38898
  key: 0,
38880
38899
  style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
38881
- }, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
38900
+ }, _hoisted_3$hS = ["onClick"], _hoisted_4$au = ["onClick"], _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _sfc_main$5 = {
38882
38901
  __name: "window-form",
38883
38902
  props: {
38884
38903
  formConfig: {
@@ -38906,8 +38925,10 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
38906
38925
  // 是否拥有 图片上传 的按钮
38907
38926
  openType: "",
38908
38927
  fileList: []
38909
- }), filePreviewList = ref([]);
38910
- const $Message = ref({
38928
+ }), filePreviewList = ref([]), editorFocusField = ref("");
38929
+ const localEditorViews = shallowRef({}), handleReady = (Q, H) => {
38930
+ localEditorViews[Q] = H.view;
38931
+ }, $Message = ref({
38911
38932
  success(Q) {
38912
38933
  success(Q);
38913
38934
  },
@@ -38927,21 +38948,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
38927
38948
  if (typeof curEvent == "function")
38928
38949
  return curEvent(...eventParams);
38929
38950
  try {
38930
- if (eventParams.length) {
38931
- let H = curEvent.substring(curEvent.indexOf("(") + 1, curEvent.indexOf(")")).split(",")[0].replace(" ", "");
38932
- if (H == "form" || H == "grid") {
38933
- let X = curEvent.split(`
38934
- `);
38935
- if (/.+function\s{0,}([.]{0,})/.test(X[0])) {
38936
- let Z = new RegExp(`[\\s\\,]{0,}${H}[\\s\\,]{0,}`, "g");
38937
- X[0] = X[0].replace(Z, "");
38938
- }
38939
- curEvent = X.join(`
38940
- `);
38941
- let G = new RegExp(`${H}\\.`, "g");
38942
- curEvent = curEvent.replace(G, "");
38943
- }
38944
- }
38951
+ eventParams.length && (curEvent = codeTranslationV3(curEvent));
38945
38952
  let fun = curEvent.replaceAll("this.$data.", "").replaceAll("this.", "");
38946
38953
  if (typeof fun == "function" || fun.indexOf("function") > -1)
38947
38954
  return typeof fun != "function" && eval("fun = " + fun), fun(...eventParams);
@@ -38950,6 +38957,21 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
38950
38957
  console.error(Q, "evalEvent");
38951
38958
  }
38952
38959
  }
38960
+ }, codeTranslationV3 = (Q) => {
38961
+ let X = Q.substring(Q.indexOf("(") + 1, Q.indexOf(")")).split(",")[0].replace(" ", "");
38962
+ if (X == "form" || X == "grid") {
38963
+ let G = Q.split(`
38964
+ `);
38965
+ if (/.+function\s{0,}([.]{0,})/.test(G[0])) {
38966
+ let K = new RegExp(`[\\s\\,]{0,}${X}[\\s\\,]{0,}`, "g");
38967
+ console.log(K), G[0] = G[0].replace(K, "");
38968
+ }
38969
+ Q = G.join(`
38970
+ `);
38971
+ let Z = new RegExp(`${X}\\.`, "g");
38972
+ Q = Q.replace(Z, "");
38973
+ }
38974
+ return Q;
38953
38975
  }, displayLogic = (displayStr, datax) => {
38954
38976
  let data = Object.assign({}, datax), result = !1;
38955
38977
  try {
@@ -39008,7 +39030,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39008
39030
  }), computeItemTitle = computed(() => (Q) => {
39009
39031
  const H = Q.match(/([^()]+)\(/);
39010
39032
  return $T(H ? H[1] : Q);
39011
- });
39033
+ }), computeEditorBtnStyle = computed(() => (Q) => editorFocusField.value == Q ? "background: rgba(64, 158, 255, 0.5)" : "");
39012
39034
  onMounted(async () => {
39013
39035
  var H, X, G;
39014
39036
  if (formConfig.value.params.linkUrl)
@@ -39181,7 +39203,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39181
39203
  }, clearData = () => {
39182
39204
  for (let Q in formData.value)
39183
39205
  formData.value[Q] = "";
39184
- }, localEditor = ref([]), validateDataChg = () => !XEUtils$1.isEqual(toRaw(formData.value), toRaw(formDataClone.value)), linkToMenu = (Q, H) => {
39206
+ }, validateDataChg = () => !XEUtils$1.isEqual(toRaw(formData.value), toRaw(formDataClone.value)), linkToMenu = (Q, H) => {
39185
39207
  }, getRegion = (Q) => {
39186
39208
  let H = regionMap.value[Q + "-" + preTag.value];
39187
39209
  return H || regionMap.value[Q];
@@ -39537,7 +39559,42 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39537
39559
  (G) => G.field == Q.toUpperCase()
39538
39560
  )[0], X = [];
39539
39561
  return H && (X = H.itemRender.options), X;
39562
+ }, setFieldName = (Q, H) => {
39563
+ let X = formConfig.value.columns.filter(
39564
+ (G) => G.field == Q.toUpperCase()
39565
+ )[0];
39566
+ if (X) {
39567
+ const G = X.itemRender.props.unitName ? H + "(" + X.itemRender.props.unitName + ")" : H;
39568
+ X.title = G;
39569
+ }
39540
39570
  }, footerSum = () => {
39571
+ }, onEditorBtnClick = (Q, H) => {
39572
+ const X = localEditorViews[Q.field], { state: G } = X;
39573
+ if (console.log(X, G), H == "beautify")
39574
+ formData.value[Q.field] = jsExports.js_beautify(formData.value[Q.field], codeBeautifyConfig);
39575
+ else if (H == "checkAll") {
39576
+ let Z = G.doc.toString().length;
39577
+ const K = G.update({
39578
+ // selection: EditorSelection.cursor(pos), // 设置光标
39579
+ selection: EditorSelection.range(0, Z),
39580
+ scrollIntoView: !0
39581
+ });
39582
+ X.dispatch(K);
39583
+ } else if (H == "copy") {
39584
+ let Z = "";
39585
+ if (G.selection.ranges.some((K) => !K.empty)) {
39586
+ const K = G.selection.ranges[0];
39587
+ Z = G.sliceDoc(K.from, K.to);
39588
+ } else
39589
+ Z = G.doc.toString();
39590
+ navigator.clipboard.writeText(Z), success("复制成功!");
39591
+ } else if (H == "clear")
39592
+ formData.value[Q.field] = "";
39593
+ else if (H == "swap") {
39594
+ let Z = G.doc.toString();
39595
+ Z = codeTranslationV3(Z), Z = Z.replaceAll("this.$data.", "").replaceAll("this.", ""), formData.value[Q.field] = Z;
39596
+ }
39597
+ X.focus();
39541
39598
  }, throwFunction = (Q) => {
39542
39599
  Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X);
39543
39600
  };
@@ -39576,17 +39633,42 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39576
39633
  name: "default",
39577
39634
  fn: withCtx(() => [
39578
39635
  createVNode(unref(T$1), {
39579
- ref_for: !0,
39580
- ref_key: "localEditor",
39581
- ref: localEditor,
39582
39636
  modelValue: unref(formData)[ne.field],
39583
39637
  "onUpdate:modelValue": (re) => unref(formData)[ne.field] = re,
39584
39638
  extensions: [
39585
39639
  getCodeLanguagePlugin(ne.language),
39586
39640
  unref(EditorView$1).lineWrapping
39587
39641
  ],
39642
+ onReady: (re) => handleReady(ne.field, re),
39643
+ onFocus: (re) => isRef(editorFocusField) ? editorFocusField.value = ne.field : editorFocusField = ne.field,
39588
39644
  "auto-destroy": ""
39589
- }, null, 8, ["modelValue", "onUpdate:modelValue", "extensions"])
39645
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
39646
+ createElementVNode("div", {
39647
+ class: "editor-operation-btn",
39648
+ style: normalizeStyle(computeEditorBtnStyle.value(ne.field))
39649
+ }, [
39650
+ ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
39651
+ key: 0,
39652
+ title: "美化",
39653
+ class: "iconfont icon-magic-stick",
39654
+ onClick: (re) => onEditorBtnClick(ne, "beautify")
39655
+ }, null, 8, _hoisted_3$hS)) : createCommentVNode("", !0),
39656
+ createElementVNode("i", {
39657
+ title: "全选",
39658
+ class: "iconfont icon-check-square",
39659
+ onClick: (re) => onEditorBtnClick(ne, "checkAll")
39660
+ }, null, 8, _hoisted_4$au),
39661
+ createElementVNode("i", {
39662
+ title: "复制",
39663
+ class: "iconfont icon-document-copy",
39664
+ onClick: (re) => onEditorBtnClick(ne, "copy")
39665
+ }, null, 8, _hoisted_5$4U),
39666
+ createElementVNode("i", {
39667
+ title: "清空",
39668
+ class: "iconfont icon-clear",
39669
+ onClick: (re) => onEditorBtnClick(ne, "clear")
39670
+ }, null, 8, _hoisted_6$1_)
39671
+ ], 4)
39590
39672
  ]),
39591
39673
  key: "0"
39592
39674
  } : ne.dataType === "STRING" && ne.canScan === !0 ? {
@@ -39622,7 +39704,9 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39622
39704
  name: "suffix",
39623
39705
  fn: withCtx(() => [
39624
39706
  createElementVNode("i", {
39625
- class: normalizeClass("iconfont " + ne.itemRender.props.suffixIconfont),
39707
+ class: normalizeClass(
39708
+ "iconfont " + ne.itemRender.props.suffixIconfont
39709
+ ),
39626
39710
  onClick: (re) => onIconClick(ne),
39627
39711
  style: { cursor: "pointer" }
39628
39712
  }, null, 10, ["onClick"])
@@ -39632,7 +39716,9 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39632
39716
  name: "prefix",
39633
39717
  fn: withCtx(() => [
39634
39718
  createElementVNode("i", {
39635
- class: normalizeClass("iconfont " + ne.itemRender.props.prefixIconfont),
39719
+ class: normalizeClass(
39720
+ "iconfont " + ne.itemRender.props.prefixIconfont
39721
+ ),
39636
39722
  onClick: (re) => onIconClick(ne),
39637
39723
  style: { cursor: "pointer" }
39638
39724
  }, null, 10, ["onClick"])
@@ -39662,7 +39748,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39662
39748
  params: { name: unref(formData)["_" + ne.field + "_NAME"] }
39663
39749
  }),
39664
39750
  href: "javascript: void(0)"
39665
- }, toDisplayString(unref($T)(ne.title)), 9, _hoisted_3$hS)
39751
+ }, toDisplayString(unref($T)(ne.title)), 9, _hoisted_7$12)
39666
39752
  ]),
39667
39753
  key: "4"
39668
39754
  } : void 0
@@ -39733,7 +39819,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39733
39819
  ]);
39734
39820
  };
39735
39821
  }
39736
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-25f3b206"]]);
39822
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-52054403"]]);
39737
39823
  WindowForm.name = "slw-window-form";
39738
39824
  WindowForm.install = (Q) => {
39739
39825
  Q.component(WindowForm.name, WindowForm);
@@ -40366,7 +40452,7 @@ _sfc_main$2.name = "slw-preview-modal";
40366
40452
  _sfc_main$2.install = (Q) => {
40367
40453
  Q.component(_sfc_main$2.name, _sfc_main$2);
40368
40454
  };
40369
- const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-4404f820"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40455
+ const windowIndex_vue_vue_type_style_index_0_scoped_0be71b11_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-0be71b11"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40370
40456
  __name: "window-index",
40371
40457
  props: {
40372
40458
  windowId: {
@@ -40990,7 +41076,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
40990
41076
  ue.name = "ElInput";
40991
41077
  break;
40992
41078
  case "LIST":
40993
- ue.name = "ElSelect", pe.style = "width: 100px;min-width: 80px;", ue.props.filterable = !0, ue.props.disabled = oe[se].readOnly, oe[se].selector && oe[se].selector.data && (ue.options = oe[se].selector.data.map((ge) => Object.assign(
41079
+ ue.name = "ElSelect", ue.attrs.style = "width: 100%;min-width: 80px;", ue.props.filterable = !0, ue.props.disabled = oe[se].notUpdate || oe[se].readOnly, oe[se].selector && oe[se].selector.data && (ue.options = oe[se].selector.data.map((ge) => Object.assign(
40994
41080
  {
40995
41081
  value: ge.VALUE,
40996
41082
  label: ge.NAME
@@ -41001,7 +41087,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41001
41087
  };
41002
41088
  break;
41003
41089
  case "TABLE":
41004
- pe.style = "width: 100%;min-width: 80px;", ue.props.disabled = oe[se].readOnly, pe.selectorId = oe[se].selectorId, pe.formatter = ({ row: ge, column: _e }) => (!ge["_" + _e.property + "_NAME"] && _e.editRender.options && _e.editRender.options.forEach(($e) => {
41090
+ ue.attrs.style = "width: 100%;min-width: 80px;", ue.props.disabled = oe[se].notUpdate || oe[se].readOnly, pe.selectorId = oe[se].selectorId, pe.formatter = ({ row: ge, column: _e }) => (!ge["_" + _e.property + "_NAME"] && _e.editRender.options && _e.editRender.options.forEach(($e) => {
41005
41091
  if ($e.VALUE == ge[_e.property]) {
41006
41092
  ge["_" + _e.property + "_NAME"] = $e.NAME;
41007
41093
  return;
@@ -41038,14 +41124,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41038
41124
  ...ue.props,
41039
41125
  type: "date",
41040
41126
  valueFormat: "YYYY-MM-DD"
41041
- };
41127
+ }, ue.attrs.style = "width: 100%";
41042
41128
  break;
41043
41129
  case "DATETIME":
41044
41130
  ue.name = "ElDatePicker", ue.props = {
41045
41131
  ...ue.props,
41046
41132
  type: "datetime",
41047
41133
  valueFormat: "YYYY-MM-DD HH:mm:ss"
41048
- };
41134
+ }, ue.attrs.style = "width: 100%";
41049
41135
  break;
41050
41136
  case "TIME":
41051
41137
  ue.name = "ElTimePicker", ue.props = {
@@ -41069,7 +41155,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41069
41155
  let me = {
41070
41156
  name: ue.props.unitName ? "unitInput" : ue.name,
41071
41157
  props: ue.props,
41072
- attrs: { placeholder: ue.props.placeholder, id: ce },
41158
+ attrs: { placeholder: ue.props.placeholder, id: ce, ...ue.attrs },
41073
41159
  options: ue.options,
41074
41160
  events: pe.events
41075
41161
  };
@@ -41093,10 +41179,19 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41093
41179
  iconClose: "vxe-icon--caret-right"
41094
41180
  };
41095
41181
  let se = oe.filter((ce) => ce.displayGrid);
41096
- G.checkboxConfig = {
41182
+ if (G.checkboxConfig = {
41097
41183
  labelField: se[0].code.toUpperCase(),
41098
41184
  expandAll: !0
41099
- }, ae[0].title = se[0].name, ae[0].hasOwnProperty("type") || (ae[0].field = se[0].code.toUpperCase()), Z.type === "TREE_STRUCTURE" && (G.showHeader = !1, G.treeConfig.iconOpen = "vxe-icon-square-minus", G.treeConfig.iconClose = "vxe-icon-square-plus", G.toolbarConfig.custom = !1, G.treeConfig.accordion = !1, ae = ae.map((ce) => (ce.visible === !0 && (ce.visible = !1), ce)));
41185
+ }, ae[0].title = se[0].name, ae[0].hasOwnProperty("type") || (ae[0].field = se[0].code.toUpperCase(), se[0].format && Z.type === "TREE_STRUCTURE" && (ae[0].formatter = formatter, ae[0].type = "html", ae[0].editRender = {
41186
+ props: {
41187
+ format: se[0].format
41188
+ }
41189
+ })), Z.type === "TREE_STRUCTURE" && (G.showHeader = !1, G.treeConfig.iconOpen = "vxe-icon-square-minus", G.treeConfig.iconClose = "vxe-icon-square-plus", G.toolbarConfig.custom = !1, G.treeConfig.accordion = !1, ae = ae.map((ce) => (ce.visible === !0 && (ce.visible = !1), ce)), ae[0].type == "checkbox")) {
41190
+ G.checkboxConfig.labelField = "", ae[0].width = 60;
41191
+ let ce = ae.findIndex((he) => he.colId == "_operation_");
41192
+ const de = XEUtils$1.clone(ae[ce + 1]);
41193
+ de.visible = !0, de.fixed = "left", delete de.width, ae.splice(ce, 0, de);
41194
+ }
41100
41195
  }
41101
41196
  G.columns = ae, G.editRules = le;
41102
41197
  }
@@ -41149,18 +41244,18 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41149
41244
  params: X
41150
41245
  };
41151
41246
  }, beforeHideMethod = async (Q) => {
41152
- const H = formConfig.value.openType === "edit" || formConfig.value.openType === "new", X = xForm.value.validateDataChg(), G = Q.type === "mask" || Q.type === "close", Z = typeof Q == "function", K = typeof Q == "boolean" && !Q;
41153
- if (H && X && (G || Z || K)) {
41247
+ const H = formConfig.value.openType === "edit" || formConfig.value.openType === "new", X = xForm.value.validateDataChg(), K = Q.type === "mask" || Q.type === "close" || typeof Q == "function";
41248
+ if (H && X && K) {
41154
41249
  if (await $vxeConfirm(
41155
41250
  "当前页面数据有更改,是否保存数据?",
41156
41251
  void 0,
41157
41252
  { zIndex: 3e3 }
41158
41253
  ) === "confirm")
41159
41254
  saveData(!0);
41160
- else if (Z ? Q() : K && (formConfig.value.showEdit = Q), Q.type === "mask")
41255
+ else if (Q(), saveDataBtnLoading.value = !1, Q.type === "mask")
41161
41256
  return new Error();
41162
41257
  } else
41163
- Z ? Q() : K && (formConfig.value.showEdit = Q);
41258
+ Q(), saveDataBtnLoading.value = !1;
41164
41259
  }, editPreData = () => {
41165
41260
  isAutoSave.value && (formConfig.value.tableData[formConfig.value.rowIndex] = formConfig.value.formData, saveData(!1)), --formConfig.value.rowIndex < 0 && (formConfig.value.rowIndex = formConfig.value.tableData.length - 1), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
41166
41261
  }, editAfterData = () => {
@@ -41246,7 +41341,6 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41246
41341
  transfer: "",
41247
41342
  style: { overflow: "hidden" },
41248
41343
  visible: unref(formConfig).showEdit,
41249
- "onUpdate:visible": beforeHideMethod,
41250
41344
  width: unref(formConfig).width,
41251
41345
  height: unref(formConfig).height,
41252
41346
  draggable: "",
@@ -41258,7 +41352,6 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41258
41352
  footer: unref(formConfig).openType === "edit" || unref(formConfig).openType === "new" ? void 0 : null,
41259
41353
  "show-zoom": "",
41260
41354
  onZoom: zoomModal,
41261
- "before-hide-method": beforeHideMethod,
41262
41355
  "before-close": beforeHideMethod
41263
41356
  }, createSlots({
41264
41357
  header: withCtx(() => [
@@ -41507,7 +41600,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_4404f820_lang = "", _withSco
41507
41600
  ]);
41508
41601
  };
41509
41602
  }
41510
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4404f820"]]);
41603
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0be71b11"]]);
41511
41604
  WindowIndex.name = "slw-window-index";
41512
41605
  WindowIndex.install = (Q) => {
41513
41606
  Q.component(WindowIndex.name, WindowIndex);
@@ -124315,7 +124408,7 @@ function reConsole() {
124315
124408
  }
124316
124409
  }
124317
124410
  console.info(
124318
- "%cSLW %cVer 0.8.51",
124411
+ "%cSLW %cVer 0.8.72",
124319
124412
  "color:#409EFF;font-size: 22px;font-weight:bolder",
124320
124413
  "color:#999;font-size: 12px"
124321
124414
  );