slw 0.9.82 → 0.9.84

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.
@@ -1,5 +1,5 @@
1
1
  import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as x, d as S, a as L, u as N } from "./index-e877783e.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-2110424f.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
8525
8525
  PictureUpload.install = (H) => {
8526
8526
  H.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_7c222a98_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-7c222a98"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_4e571b73_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-4e571b73"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8529
8529
  _hoisted_1$l1,
8530
8530
  _hoisted_2$kY,
8531
8531
  _hoisted_3$hY
@@ -8551,7 +8551,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_7c222a98_lang = "", _withScop
8551
8551
  },
8552
8552
  emits: ["update:gridData", "jumpDesign"],
8553
8553
  setup(__props, { expose: __expose, emit }) {
8554
- 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"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $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"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath");
8554
+ 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"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $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"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun");
8555
8555
  let gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8556
8556
  show: !1,
8557
8557
  dataId: "",
@@ -10095,7 +10095,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_7c222a98_lang = "", _withScop
10095
10095
  checkedGridFixed.value || (checkedGridVisible.value = !1);
10096
10096
  }, setColumnElement = (H, Q, Z) => {
10097
10097
  let X = gridData.value.columns.filter((G) => G.field == H.toUpperCase())[0];
10098
- X && (X.editRender.name = Q, Z && Z instanceof Object && (X.editRender.props.elementProps = Z));
10098
+ X && (X.editRender.name = Q, X.editRender.props.elementProps = {}, Z && Z instanceof Object && (X.editRender.props.elementProps = Z));
10099
+ }, setQueryFormItemProperty = (H, Q, Z) => {
10100
+ const G = getCurRegion().formConfig.items.filter((K) => K.field == H)[0];
10101
+ G && (G.itemRender.props[Q] = Z);
10099
10102
  };
10100
10103
  return onMounted(async () => {
10101
10104
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -10168,7 +10171,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_7c222a98_lang = "", _withScop
10168
10171
  search(H);
10169
10172
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (H) => {
10170
10173
  setChecked(H);
10171
- }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData();
10174
+ }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData(), curRegion.value.setQueryFormItemProperty = (H, Q, Z) => setQueryFormItemProperty(H, Q, Z);
10172
10175
  }), onUnmounted(() => {
10173
10176
  checkedGridVisible.value = !1, checkedGridFixed.value = !1, document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
10174
10177
  }), onDeactivated(() => {
@@ -10454,7 +10457,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_7c222a98_lang = "", _withScop
10454
10457
  ]);
10455
10458
  };
10456
10459
  }
10457
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-7c222a98"]]);
10460
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-4e571b73"]]);
10458
10461
  WindowGrid.name = "slw-window-grid";
10459
10462
  WindowGrid.install = (H) => {
10460
10463
  H.component(WindowGrid.name, WindowGrid);
@@ -44418,7 +44421,7 @@ var js = js$1.exports;
44418
44421
  })(H);
44419
44422
  })(js$1);
44420
44423
  var jsExports = js$1.exports;
44421
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_133d5993_lang = "", _withScopeId$7 = (H) => (pushScopeId("data-v-133d5993"), H = H(), popScopeId(), H), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
44424
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_7881c813_lang = "", _withScopeId$7 = (H) => (pushScopeId("data-v-7881c813"), H = H(), popScopeId(), H), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
44422
44425
  key: 0,
44423
44426
  class: "form-title"
44424
44427
  }, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$c = {
@@ -44436,7 +44439,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
44436
44439
  setup(__props, { expose: __expose, emit: emits }) {
44437
44440
  const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $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");
44438
44441
  let regionMap = inject("$regionMap");
44439
- const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath");
44442
+ const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun");
44440
44443
  let formConfig = useVModel$1(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
44441
44444
  const $modal = $Modal;
44442
44445
  let uploadConfig = ref({
@@ -45441,7 +45444,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
45441
45444
  ]);
45442
45445
  };
45443
45446
  }
45444
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-133d5993"]]);
45447
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-7881c813"]]);
45445
45448
  WindowForm.name = "slw-window-form";
45446
45449
  WindowForm.install = (H) => {
45447
45450
  H.component(WindowForm.name, WindowForm);
@@ -62585,7 +62588,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62585
62588
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62586
62589
  setup(H, { emit: Q }) {
62587
62590
  const Z = H, X = defineAsyncComponent(
62588
- () => import("./index-8aa7d704.js")
62591
+ () => import("./index-048c0f21.js")
62589
62592
  );
62590
62593
  let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
62591
62594
  re.value = createDesigner();
@@ -62670,7 +62673,7 @@ WindowDesigner.name = "slw-window-designer";
62670
62673
  WindowDesigner.install = (H) => {
62671
62674
  H.component(WindowDesigner.name, WindowDesigner);
62672
62675
  };
62673
- const windowIndex_vue_vue_type_style_index_0_scoped_bcc7dd4b_lang = "", _withScopeId = (H) => (pushScopeId("data-v-bcc7dd4b"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
62676
+ const windowIndex_vue_vue_type_style_index_0_scoped_0a50772a_lang = "", _withScopeId = (H) => (pushScopeId("data-v-0a50772a"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
62674
62677
  __name: "window-index",
62675
62678
  props: {
62676
62679
  windowId: {
@@ -62682,6 +62685,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_bcc7dd4b_lang = "", _withSco
62682
62685
  },
62683
62686
  height: {
62684
62687
  type: [String, Number]
62688
+ },
62689
+ executeFun: {
62690
+ type: Object
62685
62691
  }
62686
62692
  },
62687
62693
  emits: ["update:queryParams", "on-load-success", "close"],
@@ -63615,7 +63621,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_bcc7dd4b_lang = "", _withSco
63615
63621
  document.removeEventListener("keydown", ctrlSSave);
63616
63622
  }), watch([() => props.windowId, () => props.queryParams], () => {
63617
63623
  loadData(), settPageHeight();
63618
- }), provide("$addGridClickEvent", addGridClickEvent), provide("$callGridClickEvents", callGridClickEvents), provide("$evalDefaultValue", evalDefaultValue), provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), provide("$addOnActivatedFun", addOnActivatedFun), provide("$debounce", debounce), provide("$getInitData", getInitData), (H, Q) => {
63624
+ }), provide("$addGridClickEvent", addGridClickEvent), provide("$callGridClickEvents", callGridClickEvents), provide("$evalDefaultValue", evalDefaultValue), provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), provide("$addOnActivatedFun", addOnActivatedFun), provide("$debounce", debounce), provide("$getInitData", getInitData), provide("$executeFun", props.executeFun), (H, Q) => {
63619
63625
  var he;
63620
63626
  const Z = resolveComponent("el-tab-pane"), X = resolveComponent("el-tabs"), G = resolveComponent("el-scrollbar"), K = resolveComponent("el-checkbox"), ee = resolveComponent("arrow-back"), te = resolveComponent("el-icon"), ne = resolveComponent("el-button"), re = resolveComponent("arrow-forward"), oe = resolveComponent("el-button-group"), ae = resolveComponent("save"), le = resolveComponent("close"), se = resolveComponent("el-space"), ce = resolveComponent("el-dialog"), de = resolveComponent("window-index", !0);
63621
63627
  return openBlock(), createElementBlock("div", _hoisted_1$kR, [
@@ -63893,7 +63899,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_bcc7dd4b_lang = "", _withSco
63893
63899
  ]);
63894
63900
  };
63895
63901
  }
63896
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-bcc7dd4b"]]);
63902
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0a50772a"]]);
63897
63903
  WindowIndex.name = "slw-window-index";
63898
63904
  WindowIndex.install = (H) => {
63899
63905
  H.component(WindowIndex.name, WindowIndex);
@@ -147619,7 +147625,7 @@ function reConsole() {
147619
147625
  }
147620
147626
  }
147621
147627
  console.info(
147622
- `%cSLW %cVer 0.9.82%c
147628
+ `%cSLW %cVer 0.9.84%c
147623
147629
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147624
147630
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147625
147631
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-e877783e.js";
1
+ import { i as m } from "./index-2110424f.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {