slw 0.8.99 → 0.9.11

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
@@ -8524,7 +8524,7 @@ PictureUpload.name = "slw-picture-upload";
8524
8524
  PictureUpload.install = (Q) => {
8525
8525
  Q.component(PictureUpload.name, PictureUpload);
8526
8526
  };
8527
- const windowGrid_vue_vue_type_style_index_0_scoped_4c07c40a_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-4c07c40a"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8527
+ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-933b04ff"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8528
8528
  class: "slw-window-grid-container",
8529
8529
  style: { height: "100%" }
8530
8530
  }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$av = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4V = [
@@ -9730,7 +9730,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4c07c40a_lang = "", _withScop
9730
9730
  let ee = K.attributes.rowid.value;
9731
9731
  X.find((te) => te[G.rowId] == ee) && (K.style["background-color"] = H);
9732
9732
  }
9733
- }, 500);
9733
+ }, 400);
9734
9734
  }, setRowCellColor = (Q, H, G, X = "#e6f7ff") => {
9735
9735
  let Z = getCurRegion();
9736
9736
  Q && (Z = getRegion(Q)), setTimeout(() => {
@@ -9740,15 +9740,18 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4c07c40a_lang = "", _withScop
9740
9740
  if (K.children.length > 0) {
9741
9741
  for (let ee of K.children)
9742
9742
  if (ee.attributes.rowid.value == H) {
9743
- for (let te of ee.children)
9744
- if (te.attributes.class.value.includes(G.toUpperCase())) {
9745
- te.style["background-color"] = X;
9746
- return;
9747
- }
9743
+ if (G) {
9744
+ for (let te of ee.children)
9745
+ if (te.attributes.class.value.includes(G.toUpperCase())) {
9746
+ te.style["background-color"] = X;
9747
+ return;
9748
+ }
9749
+ } else
9750
+ ee.style["background-color"] = X;
9748
9751
  return;
9749
9752
  }
9750
9753
  }
9751
- }, 500);
9754
+ }, 400);
9752
9755
  };
9753
9756
  let queryFormScanData = ref({});
9754
9757
  const onScanIconClick = (Q, H) => {
@@ -10120,7 +10123,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_4c07c40a_lang = "", _withScop
10120
10123
  ]);
10121
10124
  };
10122
10125
  }
10123
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4c07c40a"]]);
10126
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-933b04ff"]]);
10124
10127
  WindowGrid.name = "slw-window-grid";
10125
10128
  WindowGrid.install = (Q) => {
10126
10129
  Q.component(WindowGrid.name, WindowGrid);
@@ -38957,16 +38960,13 @@ var js = js$1.exports;
38957
38960
  })(Q);
38958
38961
  })(js$1);
38959
38962
  var jsExports = js$1.exports;
38960
- const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d6c22c63_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-d6c22c63"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38963
+ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_94c3b486_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-94c3b486"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38961
38964
  key: 0,
38962
38965
  class: "form-header-box"
38963
38966
  }, _hoisted_3$hS = {
38964
38967
  key: 0,
38965
38968
  class: "form-title"
38966
- }, _hoisted_4$au = {
38967
- key: 1,
38968
- class: "form-buttons"
38969
- }, _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _hoisted_8$F = ["onClick"], _hoisted_9$m = ["onClick"], _sfc_main$5 = {
38969
+ }, _hoisted_4$au = ["onClick"], _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _hoisted_8$F = ["onClick"], _sfc_main$5 = {
38970
38970
  __name: "window-form",
38971
38971
  props: {
38972
38972
  formConfig: {
@@ -39101,7 +39101,34 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39101
39101
  }), computeItemTitle = computed(() => (Q) => {
39102
39102
  const H = Q.match(/([^()]+)\(/);
39103
39103
  return $T(H ? H[1] : Q);
39104
- }), computeEditorBtnStyle = computed(() => (Q) => editorFocusField.value == Q ? "background: rgba(64, 158, 255, 0.5)" : "");
39104
+ }), computeEditorBtnStyle = computed(() => (Q) => editorFocusField.value == Q ? "background: rgba(64, 158, 255, 0.5)" : ""), computeOptBtnStyle = computed(() => (Q) => {
39105
+ let H = "";
39106
+ if (Q == "top")
39107
+ switch (formConfig.value.params.buttonPosition) {
39108
+ case "TOP_LEFT":
39109
+ H = "justify-content: flex-start;";
39110
+ break;
39111
+ case "TOP_CENTER":
39112
+ H = "justify-content: center;";
39113
+ break;
39114
+ case "TOP_RIGHT":
39115
+ H = "justify-content: flex-end;";
39116
+ break;
39117
+ }
39118
+ else if (Q == "bottom")
39119
+ switch (formConfig.value.params.buttonPosition) {
39120
+ case "BOTTOM_LEFT":
39121
+ H = "left";
39122
+ break;
39123
+ case "BOTTOM_CENTER":
39124
+ H = "center";
39125
+ break;
39126
+ case "BOTTOM_RIGHT":
39127
+ H = "right";
39128
+ break;
39129
+ }
39130
+ return H;
39131
+ });
39105
39132
  onMounted(async () => {
39106
39133
  var H, G, X;
39107
39134
  if (formConfig.value.params.linkUrl)
@@ -39674,14 +39701,18 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39674
39701
  }
39675
39702
  G.focus();
39676
39703
  }, throwFunction = (Q) => {
39677
- Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G);
39704
+ Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G), Q.checkSubmitData = () => checkSubmitData();
39678
39705
  };
39679
39706
  return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
39680
39707
  const G = resolveComponent("el-icon"), X = resolveComponent("el-button"), Z = resolveComponent("el-input"), K = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
39681
39708
  return openBlock(), createElementBlock("div", _hoisted_1$kV, [
39682
39709
  unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kR, [
39683
39710
  unref(formConfig).params.showTitle ? (openBlock(), createElementBlock("span", _hoisted_3$hS, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
39684
- buttons.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$au, [
39711
+ buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("TOP") ? (openBlock(), createElementBlock("div", {
39712
+ key: 1,
39713
+ class: "form-buttons",
39714
+ style: normalizeStyle(computeOptBtnStyle.value("top"))
39715
+ }, [
39685
39716
  (openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ne) => (openBlock(), createBlock(X, {
39686
39717
  key: ne.id,
39687
39718
  "auto-insert-space": "",
@@ -39711,7 +39742,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39711
39742
  key: "0"
39712
39743
  } : void 0
39713
39744
  ]), 1032, ["style", "loading", "onClick"]))), 128))
39714
- ])) : createCommentVNode("", !0)
39745
+ ], 4)) : createCommentVNode("", !0)
39715
39746
  ])) : createCommentVNode("", !0),
39716
39747
  createVNode(ee, {
39717
39748
  ref_key: "form",
@@ -39763,28 +39794,28 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39763
39794
  title: "美化",
39764
39795
  class: "iconfont icon-magic-stick",
39765
39796
  onClick: (re) => onEditorBtnClick(ne, "beautify")
39766
- }, null, 8, _hoisted_5$4U)) : createCommentVNode("", !0),
39797
+ }, null, 8, _hoisted_4$au)) : createCommentVNode("", !0),
39767
39798
  createElementVNode("i", {
39768
39799
  title: "全选",
39769
39800
  class: "iconfont icon-check-square",
39770
39801
  onClick: (re) => onEditorBtnClick(ne, "checkAll")
39771
- }, null, 8, _hoisted_6$1_),
39802
+ }, null, 8, _hoisted_5$4U),
39772
39803
  createElementVNode("i", {
39773
39804
  title: "复制",
39774
39805
  class: "iconfont icon-document-copy",
39775
39806
  onClick: (re) => onEditorBtnClick(ne, "copy")
39776
- }, null, 8, _hoisted_7$12),
39807
+ }, null, 8, _hoisted_6$1_),
39777
39808
  createElementVNode("i", {
39778
39809
  title: "清空",
39779
39810
  class: "iconfont icon-clear",
39780
39811
  onClick: (re) => onEditorBtnClick(ne, "clear")
39781
- }, null, 8, _hoisted_8$F),
39812
+ }, null, 8, _hoisted_7$12),
39782
39813
  ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
39783
39814
  key: 1,
39784
39815
  title: "组合式API转换",
39785
39816
  class: "iconfont icon-swap",
39786
39817
  onClick: (re) => onEditorBtnClick(ne, "swap")
39787
- }, null, 8, _hoisted_9$m)) : createCommentVNode("", !0)
39818
+ }, null, 8, _hoisted_8$F)) : createCommentVNode("", !0)
39788
39819
  ], 4)
39789
39820
  ]),
39790
39821
  key: "0"
@@ -39857,7 +39888,45 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39857
39888
  key: "3"
39858
39889
  } : void 0
39859
39890
  ]), 1032, ["field", "title", "span", "item-render", "title-prefix", "visible", "style", "class-name", "visible-method"])) : createCommentVNode("", !0)
39860
- ], 64))), 128))
39891
+ ], 64))), 128)),
39892
+ unref(formConfig).type === "FORM" && buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("BOTTOM") ? (openBlock(), createBlock(K, {
39893
+ key: 0,
39894
+ align: computeOptBtnStyle.value("bottom"),
39895
+ span: "24"
39896
+ }, {
39897
+ default: withCtx(() => [
39898
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ne) => (openBlock(), createBlock(X, {
39899
+ key: ne.id,
39900
+ "auto-insert-space": "",
39901
+ style: normalizeStyle("margin: 2px 2px 2px 2px;" + ne.css),
39902
+ type: "primary",
39903
+ loading: ne.loading,
39904
+ onClick: (re) => btnClickFun(ne)
39905
+ }, createSlots({
39906
+ default: withCtx(() => [
39907
+ createTextVNode(" " + toDisplayString(unref($T)(ne.name)), 1)
39908
+ ]),
39909
+ _: 2
39910
+ }, [
39911
+ ne.iconComponent ? {
39912
+ name: "icon",
39913
+ fn: withCtx(() => [
39914
+ createVNode(G, {
39915
+ size: "15",
39916
+ style: { verticalAlign: "middle" }
39917
+ }, {
39918
+ default: withCtx(() => [
39919
+ (openBlock(), createBlock(resolveDynamicComponent(ne.iconComponent)))
39920
+ ]),
39921
+ _: 2
39922
+ }, 1024)
39923
+ ]),
39924
+ key: "0"
39925
+ } : void 0
39926
+ ]), 1032, ["style", "loading", "onClick"]))), 128))
39927
+ ]),
39928
+ _: 1
39929
+ }, 8, ["align"])) : createCommentVNode("", !0)
39861
39930
  ]),
39862
39931
  _: 1
39863
39932
  }, 8, ["data", "rules", "loading", "class"]),
@@ -39885,7 +39954,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39885
39954
  ]);
39886
39955
  };
39887
39956
  }
39888
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-d6c22c63"]]);
39957
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-94c3b486"]]);
39889
39958
  WindowForm.name = "slw-window-form";
39890
39959
  WindowForm.install = (Q) => {
39891
39960
  Q.component(WindowForm.name, WindowForm);
@@ -40508,7 +40577,7 @@ _sfc_main$2.name = "slw-preview-modal";
40508
40577
  _sfc_main$2.install = (Q) => {
40509
40578
  Q.component(_sfc_main$2.name, _sfc_main$2);
40510
40579
  };
40511
- const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-c70f9ed4"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40580
+ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-7ff35b5d"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40512
40581
  __name: "window-index",
40513
40582
  props: {
40514
40583
  windowId: {
@@ -40531,7 +40600,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withSco
40531
40600
  const axios = inject("$axios"), $components = inject("$components"), $componentsPath = inject("$componentsPath");
40532
40601
  let preRegionMap;
40533
40602
  try {
40534
- if (preRegionMap = inject("$regionMap"), preRegionMap) {
40603
+ if (preRegionMap = inject("$regionMap", ""), preRegionMap) {
40535
40604
  let Q = preRegionMap;
40536
40605
  regionMap.value = Q.value;
40537
40606
  }
@@ -40545,7 +40614,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withSco
40545
40614
  gridClickEvents.value.forEach((G) => G(Q, H));
40546
40615
  };
40547
40616
  provide("$callGridClickEvents", callGridClickEvents);
40548
- const $Modal = inject("$modal"), $modal = $Modal, $Message = inject("$message"), $message = $Message, $qs = inject("$qs"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), getOffsetHeight = () => window.document.body.offsetHeight * 0.6 + "px", evalEvent = (curEvent, ...eventParams) => {
40617
+ const $Modal = inject("$modal"), $modal = $Modal, $Message = inject("$message"), $message = $Message, $qs = inject("$qs"), hiprint = inject("$hiprint", ""), serverPrint = inject("$serverPrint", ""), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), getOffsetHeight = () => window.document.body.offsetHeight * 0.6 + "px", evalEvent = (curEvent, ...eventParams) => {
40549
40618
  if (curEvent) {
40550
40619
  if (typeof curEvent == "function")
40551
40620
  return curEvent(...eventParams);
@@ -40822,8 +40891,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withSco
40822
40891
  linkUrl: Z.linkUrl,
40823
40892
  addChildData: Z.addChildData,
40824
40893
  childRegionCode: Z.childRegionCode,
40825
- isHavePicUploadBtn: !1
40826
- }, Z.linkUrl && $components && $componentsPath) {
40894
+ isHavePicUploadBtn: !1,
40895
+ buttonPosition: "BOTTOM_CENTER"
40896
+ // 表单操作按钮布局位置 TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER(默认), BOTTOM_RIGHT
40897
+ }, Z.buttonPosition && Z.buttonPosition != "null" && (X.params.buttonPosition = Z.buttonPosition), Z.linkUrl && $components && $componentsPath) {
40827
40898
  let ae = `${$componentsPath}/${Z.linkUrl}`, le = await $components[ae]();
40828
40899
  X.params.linkComponentView = markRaw(le.default);
40829
40900
  }
@@ -40980,6 +41051,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withSco
40980
41051
  autoInsertSpace: !0,
40981
41052
  content: $T("查询"),
40982
41053
  iconComponent: "Search",
41054
+ icon: "Search",
40983
41055
  nativeType: "submit",
40984
41056
  type: "primary",
40985
41057
  size: "default"
@@ -40990,6 +41062,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withSco
40990
41062
  autoInsertSpace: !0,
40991
41063
  content: $T("重置"),
40992
41064
  iconComponent: "Refresh",
41065
+ icon: "Refresh",
40993
41066
  nativeType: "reset",
40994
41067
  size: "default"
40995
41068
  }
@@ -41681,7 +41754,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c70f9ed4_lang = "", _withSco
41681
41754
  ]);
41682
41755
  };
41683
41756
  }
41684
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c70f9ed4"]]);
41757
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7ff35b5d"]]);
41685
41758
  WindowIndex.name = "slw-window-index";
41686
41759
  WindowIndex.install = (Q) => {
41687
41760
  Q.component(WindowIndex.name, WindowIndex);
@@ -108904,14 +108977,6 @@ function initVxeRenderer(Q, H, G) {
108904
108977
  return K(ae, le);
108905
108978
  }
108906
108979
  },
108907
- ElButtons: {
108908
- renderItemContent(ae, le) {
108909
- const {
108910
- children: se
108911
- } = ae;
108912
- return se ? se.map((ce) => K(ce, le)) : [];
108913
- }
108914
- },
108915
108980
  ElDateRangePicker: {
108916
108981
  renderItemContent(ae, le) {
108917
108982
  return ee(ae, le);
@@ -125291,9 +125356,9 @@ function reConsole() {
125291
125356
  }
125292
125357
  }
125293
125358
  console.info(
125294
- `%cSLW %cVer 0.8.99%c
125359
+ `%cSLW %cVer 0.9.11%c
125295
125360
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
125296
- %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/files/6`,
125361
+ %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
125297
125362
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
125298
125363
  "color:#fff;font-size: 12px;background-color:#409EFF;padding:2px 4px;border-radius:3px;",
125299
125364
  "color:#fff;font-size: 12px;",