slw 1.0.0-rc.1.15 → 1.0.0-rc.1.16

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-41e636bc.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-c43c9f84.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_e1fb8661_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-e1fb8661"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53278
+ const windowGrid_vue_vue_type_style_index_0_scoped_d2618b31_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-d2618b31"), 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_ = [
@@ -53629,7 +53629,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e1fb8661_lang = "", _withScop
53629
53629
  }, rowClick = (G) => {
53630
53630
  if (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? rowClickCommon(G.row, G.rowIndex) : (G.rowIndex == -1 && (G.rowIndex = G._rowIndex), G.rowIndex !== rowIndex.value ? rowClickCommon(G.row, G.rowIndex, G.column.field) : (rowIndex.value = G.rowIndex, gridData.value.type == "EDIT_GRID" && getCurRegion().setEditCell(G.row, G.column.field))), gridData.value.rowConfig.keyField == "SYS_WINDOW_REGION_ID")
53631
53631
  try {
53632
- G.column.field == "CODE" ? (navigator.clipboard.writeText(G.row[G.column.field]), $message.success("已复制区域编码到剪贴板")) : G.column.field == "SYS_DATASOURCE_ID" && (navigator.clipboard.writeText(G.row.SYS_DATASOURCE_NAME), $message.success("已复制数据源到剪贴板"));
53632
+ navigator.clipboard && window.isSecureContext && (G.column.field == "CODE" ? (navigator.clipboard.writeText(G.row[G.column.field]), $message.success("已复制区域编码到剪贴板")) : G.column.field == "SYS_DATASOURCE_ID" && (navigator.clipboard.writeText(G.row.SYS_DATASOURCE_NAME), $message.success("已复制数据源到剪贴板")));
53633
53633
  } catch (H) {
53634
53634
  console.error("复制失败!", H);
53635
53635
  }
@@ -55417,7 +55417,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e1fb8661_lang = "", _withScop
55417
55417
  ]);
55418
55418
  };
55419
55419
  }
55420
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-e1fb8661"]]);
55420
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d2618b31"]]);
55421
55421
  WindowGrid.name = "slw-window-grid";
55422
55422
  WindowGrid.install = (G) => {
55423
55423
  G.component(WindowGrid.name, WindowGrid);
@@ -77858,7 +77858,7 @@ var js = js$1.exports;
77858
77858
  })(G);
77859
77859
  })(js$1);
77860
77860
  var jsExports = js$1.exports;
77861
- const index$p = /* @__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 = {
77861
+ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_bd19440d_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-bd19440d"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77862
77862
  key: 0,
77863
77863
  class: "form-title"
77864
77864
  }, _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 = {
@@ -77874,7 +77874,7 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77874
77874
  let regionMap = inject("$regionMap");
77875
77875
  const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), endEdit = inject("$endEdit"), route = useRoute();
77876
77876
  let success = inject("$success", null), error = inject("$error", null);
77877
- const $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), addGridClickEvent = inject("$addGridClickEvent"), $VXETableConfig = inject("$VXETableConfig"), isActivatedFun = inject("$isActivatedFun");
77877
+ const $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), addGridClickEvent = inject("$addGridClickEvent"), $VXETableConfig = inject("$VXETableConfig"), isActivatedFun = inject("$isActivatedFun"), closePreModal = inject("$closePreModal");
77878
77878
  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);
77879
77879
  const $modal = $Modal;
77880
77880
  let uploadConfig = ref$2({
@@ -78651,6 +78651,8 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78651
78651
  }, throwFunction = (G) => {
78652
78652
  G.getData = () => getData(), G.submitData = () => submitData(), G.getValue = (H) => getValue(H), G.setValue = (H, X, Q) => setValue(H, X, Q), G.checkSubmitData = () => checkSubmitData(), G.searchData = (H) => searchData(H), G.search = (H) => searchData(H), G.displayFormItem = (H, X) => displayFormItem(H, X), G.resetForm = () => resetForm(), G.clearData = () => clearData(), G.setFieldName = (H, X) => setFieldName(H, X), G.setFormItemProperty = (H, X, Q) => setFormItemProperty(H, X, Q), G.getTableFieldSelectData = (H) => getTableFieldSelectData(H), G.setFormSelectOption = (H, X) => setFormSelectOption(H, X), G.closeDrawer = () => {
78653
78653
  closeDrawer();
78654
+ }, G.closePreModal = () => {
78655
+ closePreModal && closePreModal();
78654
78656
  };
78655
78657
  };
78656
78658
  return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (G, H) => {
@@ -78966,7 +78968,7 @@ const index$p = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78966
78968
  ]);
78967
78969
  };
78968
78970
  }
78969
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-d6ee0d60"]]);
78971
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-bd19440d"]]);
78970
78972
  WindowForm.name = "slw-window-form";
78971
78973
  WindowForm.install = (G) => {
78972
78974
  G.component(WindowForm.name, WindowForm);
@@ -90658,7 +90660,7 @@ function _sfc_render(G, H, X, Q, K, Z) {
90658
90660
  }, 8, ["modelValue", "title"])
90659
90661
  ]);
90660
90662
  }
90661
- const CodemirrorModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render], ["__scopeId", "data-v-b41b4bc6"]]), index_vue_vue_type_style_index_0_scoped_c017666f_lang = "", _withScopeId$3 = (G) => (pushScopeId("data-v-c017666f"), G = G(), popScopeId(), G), _hoisted_1$kU = { class: "vxe-form-unit-name" }, _hoisted_2$kT = { class: "setter-list" }, _hoisted_3$hU = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "setter-list-columns" }, [
90663
+ const CodemirrorModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render], ["__scopeId", "data-v-b41b4bc6"]]), index_vue_vue_type_style_index_0_scoped_5bbf65eb_lang = "", _withScopeId$3 = (G) => (pushScopeId("data-v-5bbf65eb"), G = G(), popScopeId(), G), _hoisted_1$kU = { class: "vxe-form-unit-name" }, _hoisted_2$kT = { class: "setter-list" }, _hoisted_3$hU = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "setter-list-columns" }, [
90662
90664
  /* @__PURE__ */ createElementVNode("span", { class: "title-txt" }, [
90663
90665
  /* @__PURE__ */ createElementVNode("span", null, "名称")
90664
90666
  ]),
@@ -91748,7 +91750,7 @@ const CodemirrorModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sf
91748
91750
  ], 64);
91749
91751
  };
91750
91752
  }
91751
- }, SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c017666f"]]);
91753
+ }, SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-5bbf65eb"]]);
91752
91754
  function createDesigner() {
91753
91755
  return {
91754
91756
  selectedId: null,
@@ -92037,7 +92039,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
92037
92039
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
92038
92040
  setup(G, { emit: H }) {
92039
92041
  const X = G, Q = defineAsyncComponent(
92040
- () => import("./index-aea556c5.js")
92042
+ () => import("./index-868eac3b.js")
92041
92043
  );
92042
92044
  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);
92043
92045
  re.value = createDesigner();
@@ -92122,7 +92124,7 @@ WindowDesigner.name = "slw-window-designer";
92122
92124
  WindowDesigner.install = (G) => {
92123
92125
  G.component(WindowDesigner.name, WindowDesigner);
92124
92126
  };
92125
- 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 = {
92127
+ const windowIndex_vue_vue_type_style_index_0_scoped_95f638ec_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-95f638ec"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
92126
92128
  __name: "window-index",
92127
92129
  props: {
92128
92130
  windowId: {
@@ -92465,7 +92467,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_eb1e9499_lang = "", _withSco
92465
92467
  Te = JSON.parse(Te);
92466
92468
  for (let Pe = 0; Pe < me.length; Pe++) {
92467
92469
  let Ce = me[Pe].defaultValue, Ee = Te ? Te[me[Pe].columnName] : null;
92468
- Ce = evalDefaultValue(Ce, Q.params.queryParams);
92470
+ if (Q.params.queryParams) {
92471
+ let ye = Object.entries(Q.params.queryParams).reduce((be, [we, Oe]) => (be[we.toUpperCase()] = Oe, be), {});
92472
+ Ce = evalDefaultValue(Ce, ye);
92473
+ }
92469
92474
  let De = me[Pe].width || "6";
92470
92475
  De > 24 && (De = 24);
92471
92476
  let _e = {
@@ -93366,7 +93371,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_eb1e9499_lang = "", _withSco
93366
93371
  ]);
93367
93372
  };
93368
93373
  }
93369
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-eb1e9499"]]);
93374
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-95f638ec"]]);
93370
93375
  WindowIndex.name = "slw-window-index";
93371
93376
  WindowIndex.install = (G) => {
93372
93377
  G.component(WindowIndex.name, WindowIndex);
@@ -224800,7 +224805,7 @@ function reConsole() {
224800
224805
  }
224801
224806
  }
224802
224807
  console.info(
224803
- `%cSLW %cVer 1.0.0-rc.1.15%c
224808
+ `%cSLW %cVer 1.0.0-rc.1.16%c
224804
224809
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224805
224810
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/view`,
224806
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-41e636bc.js";
1
+ import { i as m } from "./index-c43c9f84.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {