slw 1.0.0-rc.1.12 → 1.0.0-rc.1.14

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.
@@ -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_d6ee0d60_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-d6ee0d60"), 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({
@@ -78184,11 +78184,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78184
78184
  return G ? G.getCurrentRecord() : null;
78185
78185
  }, hide = (G) => {
78186
78186
  fieldColumnMap.value[G].displayForm = !1;
78187
- }, resetForm = () => {
78187
+ }, resetForm = (G) => {
78188
+ var H;
78188
78189
  form.value.reset();
78189
- for (let G in formData.value) {
78190
- let H = formConfig.value.columns.filter((X) => X.field == G);
78191
- H.length > 0 && (H[0].dataType == "LONG" || H[0].dataType == "PLONG" || H[0].dataType == "DOUBLE") && (formData.value[G] = 0);
78190
+ for (let X in formData.value) {
78191
+ let Q = formConfig.value.columns.filter((K) => K.field == X)[0];
78192
+ Q && (G && ((H = Q.itemRender) != null && H.defaultValue) ? formData.value[X] = Q.itemRender.defaultValue : ["LONG", "PLONG", "DOUBLE"].includes(Q.dataType) && (formData.value[X] = 0));
78192
78193
  }
78193
78194
  }, clearData = () => {
78194
78195
  for (let G in formData.value)
@@ -78212,12 +78213,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78212
78213
  ...Z,
78213
78214
  ...ee
78214
78215
  }), G[ne]) {
78215
- let oe = {
78216
+ let oe = formConfig.value.columns.filter((se) => se.field == ne)[0];
78217
+ oe.itemRender.defaultValue = G[ne], onFieldChange({
78216
78218
  data: G,
78217
- item: formConfig.value.columns.filter((ae) => ae.field == ne)[0],
78219
+ item: oe,
78218
78220
  property: ne
78219
- };
78220
- onFieldChange(oe);
78221
+ });
78221
78222
  }
78222
78223
  }
78223
78224
  });
@@ -78957,7 +78958,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78957
78958
  ]);
78958
78959
  };
78959
78960
  }
78960
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-fb60725f"]]);
78961
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-d6ee0d60"]]);
78961
78962
  WindowForm.name = "slw-window-form";
78962
78963
  WindowForm.install = (G) => {
78963
78964
  G.component(WindowForm.name, WindowForm);
@@ -92028,7 +92029,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
92028
92029
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
92029
92030
  setup(G, { emit: H }) {
92030
92031
  const X = G, Q = defineAsyncComponent(
92031
- () => import("./index-2705af86.js")
92032
+ () => import("./index-d170ec59.js")
92032
92033
  );
92033
92034
  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
92035
  re.value = createDesigner();
@@ -92113,7 +92114,7 @@ WindowDesigner.name = "slw-window-designer";
92113
92114
  WindowDesigner.install = (G) => {
92114
92115
  G.component(WindowDesigner.name, WindowDesigner);
92115
92116
  };
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 = {
92117
+ 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
92118
  __name: "window-index",
92118
92119
  props: {
92119
92120
  windowId: {
@@ -93066,8 +93067,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withSco
93066
93067
  const activatedList = [], addOnActivatedFun = (G) => {
93067
93068
  activatedList.push(G);
93068
93069
  };
93070
+ let activated = ref$2(!1);
93071
+ const isActivatedFun = () => activated.value;
93069
93072
  return onActivated(() => {
93070
- activatedList && activatedList.length > 0 && activatedList.forEach((G) => {
93073
+ activated.value = !0, activatedList && activatedList.length > 0 && activatedList.forEach((G) => {
93071
93074
  if (G && typeof G == "function")
93072
93075
  try {
93073
93076
  G();
@@ -93075,13 +93078,15 @@ const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withSco
93075
93078
  console.error(H);
93076
93079
  }
93077
93080
  });
93081
+ }), onDeactivated(() => {
93082
+ activated.value = !1;
93078
93083
  }), onMounted(() => {
93079
93084
  loadData(), settPageHeight(), document.addEventListener("keydown", ctrlSSave);
93080
93085
  }), onUnmounted(() => {
93081
93086
  document.removeEventListener("keydown", ctrlSSave);
93082
93087
  }), watch([() => props.windowId, () => props.queryParams], () => {
93083
93088
  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) => {
93089
+ }), 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
93090
  var de;
93086
93091
  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
93092
  return openBlock(), createElementBlock("div", _hoisted_1$kS, [
@@ -93353,7 +93358,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_888bef25_lang = "", _withSco
93353
93358
  ]);
93354
93359
  };
93355
93360
  }
93356
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-888bef25"]]);
93361
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-eb1e9499"]]);
93357
93362
  WindowIndex.name = "slw-window-index";
93358
93363
  WindowIndex.install = (G) => {
93359
93364
  G.component(WindowIndex.name, WindowIndex);
@@ -224801,7 +224806,7 @@ function reConsole() {
224801
224806
  }
224802
224807
  }
224803
224808
  console.info(
224804
- `%cSLW %cVer 1.0.0-rc.1.12%c
224809
+ `%cSLW %cVer 1.0.0-rc.1.14%c
224805
224810
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224806
224811
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/view`,
224807
224812
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
@@ -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-1f717067.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
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-1f717067.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {