slw 0.5.977 → 0.5.978

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
@@ -8511,7 +8511,7 @@ 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_c639123d_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-c639123d"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_898d08b1_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-898d08b1"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8515
8515
  class: "slw-window-grid-container",
8516
8516
  style: { height: "100%" }
8517
8517
  }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
@@ -8534,10 +8534,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
8534
8534
  },
8535
8535
  emits: ["update:gridData", "jumpDesign"],
8536
8536
  setup(__props, { expose: __expose, emit }) {
8537
- const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t");
8538
- let gridData = useVModel(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref("");
8539
- const httpHeaders = inject("$httpHeaders");
8540
- let uploadConfig = ref({
8537
+ const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessagePrompt = inject("$ElMessagePrompt");
8538
+ let gridData = useVModel(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8541
8539
  show: !1,
8542
8540
  dataId: "",
8543
8541
  regionId: "",
@@ -8550,16 +8548,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
8550
8548
  { code: "contract", name: $T("收缩节点"), disabled: !1 }
8551
8549
  ]
8552
8550
  ]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
8553
- const addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
8551
+ const preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
8554
8552
  (H) => H.showInGrid && (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || H.btnShowInGrid[Q])
8555
- ), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $modal = $Modal, $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), $Message = ref({
8553
+ ), $modal = $Modal, $Message = ref({
8556
8554
  success(Q) {
8557
8555
  success(Q);
8558
8556
  },
8559
8557
  error(Q) {
8560
8558
  error(Q);
8561
8559
  }
8562
- }), $message = $Message.value, $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), showModal = (Q, H, G) => {
8560
+ }), $message = $Message.value, showModal = (Q, H, G) => {
8563
8561
  openModal(Q, H, G);
8564
8562
  }, evalEvent = (curEvent, ...eventParams) => {
8565
8563
  if (curEvent) {
@@ -8611,7 +8609,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
8611
8609
  G !== void 0 && (Q.data[H] = void 0);
8612
8610
  }), getCurRegion().commitProxy("reload");
8613
8611
  }
8614
- const evalDefaultValue = inject("$evalDefaultValue"), operationButton = (Q) => ({
8612
+ const operationButton = (Q) => ({
8615
8613
  size: "small",
8616
8614
  type: Q.viewType,
8617
8615
  style: { ...Q.css, marginLeft: "0px", padding: "5px" },
@@ -8735,7 +8733,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
8735
8733
  }, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
8736
8734
  }, rowClick = (Q) => {
8737
8735
  gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? rowClickCommon(Q.row, Q.rowIndex) : (Q.rowIndex !== rowIndex.value && rowClickCommon(Q.row, Q.rowIndex), rowIndex.value = Q.rowIndex);
8738
- }, callGridClickEvents = inject("$callGridClickEvents"), rowClickCommon = (Q, H) => {
8736
+ }, rowClickCommon = (Q, H) => {
8739
8737
  const G = {
8740
8738
  rowId: gridData.value.rowId,
8741
8739
  // eslint-disable-next-line no-prototype-builtins
@@ -9766,7 +9764,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
9766
9764
  setChecked(Q);
9767
9765
  }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor();
9768
9766
  }), onUnmounted(() => {
9769
- gridData.value.params.parentRegionId, document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9767
+ document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9770
9768
  });
9771
9769
  const setValue = (Q, H) => {
9772
9770
  gridData.value.formConfig.formData[Q.toUpperCase()] = H;
@@ -9923,7 +9921,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
9923
9921
  ]);
9924
9922
  };
9925
9923
  }
9926
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-c639123d"]]);
9924
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-898d08b1"]]);
9927
9925
  WindowGrid.name = "slw-window-grid";
9928
9926
  WindowGrid.install = (Q) => {
9929
9927
  Q.component(WindowGrid.name, WindowGrid);
@@ -36973,11 +36971,11 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
36973
36971
  "update:formConfig"
36974
36972
  ],
36975
36973
  setup(__props, { expose: __expose, emit: emits }) {
36976
- const props = __props, componentMapping = inject("$componentMapping");
36977
- let formConfig = useVModel(props, "formConfig", emits);
36978
- const axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint");
36979
- let formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
36980
- const showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $modal = $Modal, $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t");
36974
+ const props = __props, componentMapping = inject("$componentMapping"), axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
36975
+ let regionMap = inject("$regionMap");
36976
+ const ElMessagePrompt = inject("$ElMessagePrompt");
36977
+ let formConfig = useVModel(props, "formConfig", emits), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
36978
+ const $modal = $Modal;
36981
36979
  let uploadConfig = ref({
36982
36980
  show: !1,
36983
36981
  dataId: "",
@@ -36996,7 +36994,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
36996
36994
  error(Q) {
36997
36995
  error(Q);
36998
36996
  }
36999
- }), $message = $Message.value, openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), showModal = (Q, H, G) => {
36997
+ }), $message = $Message.value, showModal = (Q, H, G) => {
37000
36998
  openModal(Q, H, G);
37001
36999
  }, getCodeLanguagePlugin = (Q) => ({
37002
37000
  javascript: javascript(),
@@ -37045,7 +37043,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37045
37043
  result = !1;
37046
37044
  }
37047
37045
  return result;
37048
- }, evalDefaultValue = inject("$evalDefaultValue"), preTag = computed(() => formConfig.value.params.preTag || ""), editRules = computed(() => {
37046
+ }, preTag = computed(() => formConfig.value.params.preTag || ""), editRules = computed(() => {
37049
37047
  let Q = {};
37050
37048
  if (Object.keys(formConfig.value.editRules).length > 0) {
37051
37049
  let H = Object.keys(formConfig.value.editRules);
@@ -37107,13 +37105,12 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37107
37105
  };
37108
37106
  formConfig.value.columns.push(G);
37109
37107
  }
37110
- formData.value._region_id = formConfig.value.params._region_id, await evalEvent(formConfig.value.params.formEvents.dataInit), await formInitData(formData.value, formConfig.value.params._region_id, Q), formConfig.value.params.parentRegionId, formConfig.value.params.queryParams && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((H) => {
37108
+ formData.value._region_id = formConfig.value.params._region_id, await evalEvent(formConfig.value.params.formEvents.dataInit), await formInitData(formData.value, formConfig.value.params._region_id, Q), formConfig.value.params.queryParams && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((H) => {
37111
37109
  H.hasOwnProperty("field") && !H.hasOwnProperty("treeNode") && (fieldColumnMap.value[H.field] = H);
37112
37110
  }), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
37113
37111
  formDataClone.value = XEUtils$1.clone(toRaw(formData.value), !0);
37114
37112
  }), formLoading.value = !1);
37115
37113
  }), onUnmounted(() => {
37116
- formConfig.value.params.linkUrl || (formConfig.value.type, formConfig.value.params.parentRegionId);
37117
37114
  });
37118
37115
  const search = (Q) => {
37119
37116
  searchData(Q);
@@ -37164,7 +37161,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37164
37161
  content: Z.data.msg,
37165
37162
  status: Z.data.result ? "success" : "error",
37166
37163
  zIndex: 3e3
37167
- }), Z.data.result && (uploadConfig.value.isHaveImgField && updatePictureDataId(Z.data.id), evalEvent(
37164
+ }), Z.data.result && (uploadConfig.value.isHaveImgField && !uploadConfig.value.dataId && updatePictureDataId(Z.data.id), evalEvent(
37168
37165
  formConfig.value.params.formEvents.afterSubmit,
37169
37166
  formData.value,
37170
37167
  Z.data
@@ -37222,9 +37219,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37222
37219
  }), Q;
37223
37220
  }, getValue = (Q) => formData.value[Q.toUpperCase()], setFieldValue = (Q, H) => {
37224
37221
  formData.value[Q.toUpperCase()] = H;
37225
- };
37226
- let regionMap = inject("$regionMap");
37227
- const getParentRegion = () => {
37222
+ }, getParentRegion = () => {
37228
37223
  let Q = regionMap.value[formConfig.value.params.parentCode + "-" + preTag.value];
37229
37224
  return Q || regionMap.value[formConfig.value.params.parentCode];
37230
37225
  }, getParentData = () => {
@@ -122181,7 +122176,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
122181
122176
  ), Q.provide("$components", H == null ? void 0 : H.components), Q.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), Q.provide(
122182
122177
  "$message",
122183
122178
  Q.config.globalProperties.$message || VXETableExport.modal.message
122184
- ), Q.provide("$modal", VXETableExport.modal), Q.provide("$vxeMessage", VXETableExport.modal.message), Q.provide("$vxeConfirm", VXETableExport.modal.confirm), Q.provide("$vxeOpen", VXETableExport.modal.open), Q.provide("$vxeReadFile", VXETableExport.readFile), initVxeRenderer(VXETableExport, G, X), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
122179
+ ), Q.provide("$modal", VXETableExport.modal), Q.provide("$vxeMessage", VXETableExport.modal.message), Q.provide("$vxeConfirm", VXETableExport.modal.confirm), Q.provide("$vxeOpen", VXETableExport.modal.open), Q.provide("$vxeReadFile", VXETableExport.readFile), Q.provide("$ElMessagePrompt", Q.config.globalProperties.$prompt), initVxeRenderer(VXETableExport, G, X), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
122185
122180
  };
122186
122181
  function reConsole() {
122187
122182
  if (console !== null) {
@@ -122201,7 +122196,7 @@ function reConsole() {
122201
122196
  }
122202
122197
  }
122203
122198
  console.info(
122204
- "%cSLW %cVer 0.5.974",
122199
+ "%cSLW %cVer 0.5.977",
122205
122200
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122206
122201
  "color:#999;font-size: 12px"
122207
122202
  );