slw 1.0.0-rc.1.12 → 1.0.0-rc.1.13

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-f0b660bb.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-6140ca0c.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -53275,7 +53275,7 @@ WindowCharts.name = "slw-window-charts";
53275
53275
  WindowCharts.install = (G) => {
53276
53276
  G.component(WindowCharts.name, WindowCharts);
53277
53277
  };
53278
- const windowGrid_vue_vue_type_style_index_0_scoped_b86ecf3b_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-b86ecf3b"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53278
+ const windowGrid_vue_vue_type_style_index_0_scoped_e1fb8661_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-e1fb8661"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53279
53279
  class: "slw-window-grid-container",
53280
53280
  style: { height: "100%" }
53281
53281
  }, _hoisted_2$k_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$h_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$aA = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4_ = [
@@ -53313,7 +53313,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b86ecf3b_lang = "", _withScop
53313
53313
  setup(__props, { expose: __expose, emit }) {
53314
53314
  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"), toggleModalLoading = inject("$toggleModalLoading"), 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"), openDrawer = inject("$openDrawer"), closeDrawer = inject("$closeDrawer"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), endEdit = inject("$endEdit"), route = useRoute();
53315
53315
  let success = inject("$success", null), error = inject("$error", null);
53316
- const executeFun = inject("$executeFun");
53316
+ const executeFun = inject("$executeFun"), isActivatedFun = inject("$isActivatedFun");
53317
53317
  let gridData = useVModel$1(props, "gridData", emit), rowIndex = ref$2(0), isImport = ref$2(!1), importUrl = ref$2(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref$2(""), uploadConfig = ref$2({
53318
53318
  show: !1,
53319
53319
  dataId: "",
@@ -54265,7 +54265,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b86ecf3b_lang = "", _withScop
54265
54265
  const re = ne.filter((oe) => oe.value == H)[0];
54266
54266
  re && (ee = re, Z["_" + K + "_NAME"] = re.label);
54267
54267
  }
54268
- evalEvent(X.changeFunction, H, ee, "字段值更改方法");
54268
+ evalEvent(X.changeFunction, H, ee, Z, "字段值更改方法");
54269
54269
  } else if (X.dataType === "TREE") {
54270
54270
  if (X.treeData) {
54271
54271
  let ne = X.treeData, re = [];
@@ -54277,7 +54277,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b86ecf3b_lang = "", _withScop
54277
54277
  })) : (H = H[H.length - 1], re = Object.assign({}, getSelectedTreeDataOptionByValue(ne, H)), Z["_" + K + "_NAME"] = re.label), Z[K] = H) : X.multiple ? (Z["_" + K + "_NAME"] = "", H.forEach((oe, ae) => {
54278
54278
  let se = Object.assign({}, getSelectedTreeDataOptionByValue(ne, oe));
54279
54279
  ae == 0 ? Z["_" + K + "_NAME"] = se.label || se.title : Z["_" + K + "_NAME"] += `,${se.label || se.title}`;
54280
- })) : (re = Object.assign({}, getSelectedTreeDataOptionByValue(ne, H)), Z["_" + K + "_NAME"] = re.label || opt.title), evalEvent(X.changeFunction, H, re, "字段值更改方法");
54280
+ })) : (re = Object.assign({}, getSelectedTreeDataOptionByValue(ne, H)), Z["_" + K + "_NAME"] = re.label || opt.title), evalEvent(X.changeFunction, H, re, Z, "字段值更改方法");
54281
54281
  }
54282
54282
  } else
54283
54283
  evalEvent(X.changeFunction, H, K, Z, "字段值更改方法");
@@ -55417,7 +55417,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b86ecf3b_lang = "", _withScop
55417
55417
  ]);
55418
55418
  };
55419
55419
  }
55420
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b86ecf3b"]]);
55420
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-e1fb8661"]]);
55421
55421
  WindowGrid.name = "slw-window-grid";
55422
55422
  WindowGrid.install = (G) => {
55423
55423
  G.component(WindowGrid.name, WindowGrid);
@@ -77850,7 +77850,7 @@ var js = js$1.exports;
77850
77850
  })(G);
77851
77851
  })(js$1);
77852
77852
  var jsExports = js$1.exports;
77853
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_fb60725f_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-fb60725f"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77853
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_8348c45b_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-8348c45b"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77854
77854
  key: 0,
77855
77855
  class: "form-title"
77856
77856
  }, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$e = {
@@ -77866,7 +77866,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77866
77866
  let regionMap = inject("$regionMap");
77867
77867
  const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), endEdit = inject("$endEdit"), route = useRoute();
77868
77868
  let success = inject("$success", null), error = inject("$error", null);
77869
- const $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), addGridClickEvent = inject("$addGridClickEvent"), $VXETableConfig = inject("$VXETableConfig");
77869
+ const $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), addGridClickEvent = inject("$addGridClickEvent"), $VXETableConfig = inject("$VXETableConfig"), isActivatedFun = inject("$isActivatedFun");
77870
77870
  let formConfig = useVModel$1(props, "formConfig", emits), gridData = ref$2(formConfig.value), formData = ref$2({}), fieldColumnMap = ref$2({}), formDataClone = ref$2({}), formLoading = ref$2(!1), queryTimeout = ref$2(null);
77871
77871
  const $modal = $Modal;
77872
77872
  let uploadConfig = ref$2({
@@ -78957,7 +78957,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78957
78957
  ]);
78958
78958
  };
78959
78959
  }
78960
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-fb60725f"]]);
78960
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8348c45b"]]);
78961
78961
  WindowForm.name = "slw-window-form";
78962
78962
  WindowForm.install = (G) => {
78963
78963
  G.component(WindowForm.name, WindowForm);
@@ -92028,7 +92028,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
92028
92028
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
92029
92029
  setup(G, { emit: H }) {
92030
92030
  const X = G, Q = defineAsyncComponent(
92031
- () => import("./index-2705af86.js")
92031
+ () => import("./index-52bc5cdc.js")
92032
92032
  );
92033
92033
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
92034
92034
  re.value = createDesigner();
@@ -92113,7 +92113,7 @@ WindowDesigner.name = "slw-window-designer";
92113
92113
  WindowDesigner.install = (G) => {
92114
92114
  G.component(WindowDesigner.name, WindowDesigner);
92115
92115
  };
92116
- const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-888bef25"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
92116
+ const windowIndex_vue_vue_type_style_index_0_scoped_eb1e9499_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-eb1e9499"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
92117
92117
  __name: "window-index",
92118
92118
  props: {
92119
92119
  windowId: {
@@ -93066,8 +93066,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withSco
93066
93066
  const activatedList = [], addOnActivatedFun = (G) => {
93067
93067
  activatedList.push(G);
93068
93068
  };
93069
+ let activated = ref$2(!1);
93070
+ const isActivatedFun = () => activated.value;
93069
93071
  return onActivated(() => {
93070
- activatedList && activatedList.length > 0 && activatedList.forEach((G) => {
93072
+ activated.value = !0, activatedList && activatedList.length > 0 && activatedList.forEach((G) => {
93071
93073
  if (G && typeof G == "function")
93072
93074
  try {
93073
93075
  G();
@@ -93075,13 +93077,15 @@ const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withSco
93075
93077
  console.error(H);
93076
93078
  }
93077
93079
  });
93080
+ }), onDeactivated(() => {
93081
+ activated.value = !1;
93078
93082
  }), onMounted(() => {
93079
93083
  loadData(), settPageHeight(), document.addEventListener("keydown", ctrlSSave);
93080
93084
  }), onUnmounted(() => {
93081
93085
  document.removeEventListener("keydown", ctrlSSave);
93082
93086
  }), watch([() => props.windowId, () => props.queryParams], () => {
93083
93087
  loadData(), settPageHeight();
93084
- }), 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("$openDrawer", openDrawer), provide("$closeDrawer", closeDrawer), 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("$toggleModalLoading", toggleModalLoading), provide("$executeFun", props.executeFun), (G, H) => {
93088
+ }), 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("$openDrawer", openDrawer), provide("$closeDrawer", closeDrawer), 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("$toggleModalLoading", toggleModalLoading), provide("$executeFun", props.executeFun), provide("$isActivatedFun", isActivatedFun), (G, H) => {
93085
93089
  var de;
93086
93090
  const X = resolveComponent("el-tab-pane"), Q = resolveComponent("el-tabs"), K = resolveComponent("el-checkbox"), Z = resolveComponent("arrow-back"), ee = resolveComponent("el-icon"), te = resolveComponent("el-button"), ne = resolveComponent("arrow-forward"), re = resolveComponent("el-button-group"), oe = resolveComponent("save"), ae = resolveComponent("close"), se = resolveComponent("el-space"), le = resolveComponent("vxe-modal"), ce = resolveComponent("window-index", !0);
93087
93091
  return openBlock(), createElementBlock("div", _hoisted_1$kS, [
@@ -93353,7 +93357,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withSco
93353
93357
  ]);
93354
93358
  };
93355
93359
  }
93356
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-888bef25"]]);
93360
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-eb1e9499"]]);
93357
93361
  WindowIndex.name = "slw-window-index";
93358
93362
  WindowIndex.install = (G) => {
93359
93363
  G.component(WindowIndex.name, WindowIndex);
@@ -224801,7 +224805,7 @@ function reConsole() {
224801
224805
  }
224802
224806
  }
224803
224807
  console.info(
224804
- `%cSLW %cVer 1.0.0-rc.1.12%c
224808
+ `%cSLW %cVer 1.0.0-rc.1.13%c
224805
224809
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224806
224810
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/view`,
224807
224811
  "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-f0b660bb.js";
1
+ import { i as m } from "./index-6140ca0c.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {