slw 0.5.978 → 0.5.980

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_898d08b1_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-898d08b1"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_3dfea0dd_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-3dfea0dd"), 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,7 +8534,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_898d08b1_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"), 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");
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"), ElMessageBox = inject("$ElMessageBox");
8538
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({
8539
8539
  show: !1,
8540
8540
  dataId: "",
@@ -9921,7 +9921,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_898d08b1_lang = "", _withScop
9921
9921
  ]);
9922
9922
  };
9923
9923
  }
9924
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-898d08b1"]]);
9924
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-3dfea0dd"]]);
9925
9925
  WindowGrid.name = "slw-window-grid";
9926
9926
  WindowGrid.install = (Q) => {
9927
9927
  Q.component(WindowGrid.name, WindowGrid);
@@ -36973,7 +36973,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
36973
36973
  setup(__props, { expose: __expose, emit: emits }) {
36974
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
36975
  let regionMap = inject("$regionMap");
36976
- const ElMessagePrompt = inject("$ElMessagePrompt");
36976
+ const ElMessageBox = inject("$ElMessageBox");
36977
36977
  let formConfig = useVModel(props, "formConfig", emits), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
36978
36978
  const $modal = $Modal;
36979
36979
  let uploadConfig = ref({
@@ -37081,31 +37081,9 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37081
37081
  } else
37082
37082
  for (const H in formConfig.value.columns)
37083
37083
  formConfig.value.columns[H].type !== "seq" && formConfig.value.columns[H].type !== "checkbox" && (formData.value[formConfig.value.columns[H].field] = "");
37084
- if (uploadConfig.value.dataId = formData.value[formConfig.value.rowId], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(formConfig.value), formConfig.value.columns.forEach((H, G, X) => {
37084
+ uploadConfig.value.dataId = formData.value[formConfig.value.rowId], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(formConfig.value), formConfig.value.columns.forEach((H, G, X) => {
37085
37085
  H.hasOwnProperty("field") && !H.hasOwnProperty("treeNode") && (H.events.change = onFieldChange, H.hasOwnProperty("search") && (H.events.search = remoteSearch), H.events.keyup = onFieldEnter, H.events.click = onFieldClick), (H == null ? void 0 : H.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0);
37086
- }), formConfig.value.formData && formConfig.value.openType != "new" && await getPictureList() && !uploadConfig.value.isHaveImgField) {
37087
- let H = {
37088
- name: "ElImg",
37089
- props: {},
37090
- attrs: {},
37091
- options: [],
37092
- events: {}
37093
- }, G = {
37094
- colType: "showInForm",
37095
- dataType: "IMG",
37096
- displayForm: !0,
37097
- field: "img",
37098
- events: {},
37099
- itemRender: H,
37100
- editRender: H,
37101
- minWidth: 100,
37102
- title: "图片",
37103
- visible: !0,
37104
- width: 200
37105
- };
37106
- formConfig.value.columns.push(G);
37107
- }
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) => {
37086
+ }), 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) => {
37109
37087
  H.hasOwnProperty("field") && !H.hasOwnProperty("treeNode") && (fieldColumnMap.value[H.field] = H);
37110
37088
  }), !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(() => {
37111
37089
  formDataClone.value = XEUtils$1.clone(toRaw(formData.value), !0);
@@ -122176,7 +122154,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
122176
122154
  ), Q.provide("$components", H == null ? void 0 : H.components), Q.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), Q.provide(
122177
122155
  "$message",
122178
122156
  Q.config.globalProperties.$message || VXETableExport.modal.message
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);
122157
+ ), 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("$ElMessageBox", Q.config.globalProperties.$msgbox), initVxeRenderer(VXETableExport, G, X), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
122180
122158
  };
122181
122159
  function reConsole() {
122182
122160
  if (console !== null) {
@@ -122196,7 +122174,7 @@ function reConsole() {
122196
122174
  }
122197
122175
  }
122198
122176
  console.info(
122199
- "%cSLW %cVer 0.5.977",
122177
+ "%cSLW %cVer 0.5.979",
122200
122178
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122201
122179
  "color:#999;font-size: 12px"
122202
122180
  );