slw 0.9.31 → 0.9.33

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.
@@ -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_9be6ad8e_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-9be6ad8e"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8527
+ const windowGrid_vue_vue_type_style_index_0_scoped_ebe5a5c2_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-ebe5a5c2"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8528
8528
  class: "slw-window-grid-container",
8529
8529
  style: { height: "100%" }
8530
8530
  }, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
@@ -8776,8 +8776,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9be6ad8e_lang = "", _withScop
8776
8776
  }
8777
8777
  }, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
8778
8778
  }, rowClick = (Q) => {
8779
- gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? rowClickCommon(Q.row, Q.rowIndex) : (Q.rowIndex !== rowIndex.value && rowClickCommon(Q.row, Q.rowIndex), rowIndex.value = Q.rowIndex);
8779
+ gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || Q.rowIndex !== rowIndex.value ? rowClickCommon(Q.row, Q.rowIndex) : (rowIndex.value = Q.rowIndex, gridData.value.type == "EDIT_GRID" && getCurRegion().setEditRow(Q.row));
8780
8780
  }, rowClickCommon = (Q, H) => {
8781
+ var K;
8781
8782
  const G = {
8782
8783
  rowId: gridData.value.rowId,
8783
8784
  // eslint-disable-next-line no-prototype-builtins
@@ -8786,10 +8787,18 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9be6ad8e_lang = "", _withScop
8786
8787
  hasData: !(typeof Q > "u" || Object.keys(Q).length === 0),
8787
8788
  ...Q
8788
8789
  }, X = Object.assign({}, G);
8789
- delete X._region_id, gridData.value.params.parentData = getParentData(), getCheckedData().length <= 0 && emitButtonDisplayLogic(
8790
+ if (delete X._region_id, gridData.value.params.parentData = getParentData(), getCheckedData().length <= 0 && emitButtonDisplayLogic(
8790
8791
  { ...Q, ...assembleParentData(gridData.value.params.parentData) },
8791
8792
  H
8792
- ), rowIndex.value = H, G.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q), getCurRegion().setCurrentRow(Q)), callGridClickEvents(X, gridData.value.params._region_id);
8793
+ ), rowIndex.value = H, G.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q), getCurRegion().setCurrentRow(Q)), callGridClickEvents(X, gridData.value.params._region_id), gridData.value.type == "EDIT_GRID") {
8794
+ for (let ee in Q) {
8795
+ let te = gridData.value.columns.filter((ne) => ne.field == ee)[0];
8796
+ (K = te == null ? void 0 : te.editRender) != null && K.props.multiple && typeof Q[ee] == "string" && (Q[ee] = Q[ee].split(","));
8797
+ }
8798
+ setTimeout(() => {
8799
+ getCurRegion().setEditRow(Q);
8800
+ }, 300);
8801
+ }
8793
8802
  }, emitButtonDisplayLogic = (Q, H) => {
8794
8803
  gridData.value.toolbarConfig.buttons.forEach((G) => {
8795
8804
  G.displayLogic && (G.showInGrid || (G.visible = displayLogic(G.displayLogic, Q)), G.btnShowInGrid[H] = G.showInGrid && displayLogic(G.displayLogic, Q), G.btnShow[H] = !G.showInGrid && G.showInGrid);
@@ -10141,7 +10150,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9be6ad8e_lang = "", _withScop
10141
10150
  ]);
10142
10151
  };
10143
10152
  }
10144
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-9be6ad8e"]]);
10153
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ebe5a5c2"]]);
10145
10154
  WindowGrid.name = "slw-window-grid";
10146
10155
  WindowGrid.install = (Q) => {
10147
10156
  Q.component(WindowGrid.name, WindowGrid);
@@ -43790,7 +43799,7 @@ function P$2(Q, H, G, X, Z, K) {
43790
43799
  renderSlot(Q.$slots, "default")
43791
43800
  ], 4);
43792
43801
  }
43793
- const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_92ab7473_lang = "", _withScopeId$6 = (Q) => (pushScopeId("data-v-92ab7473"), Q = Q(), popScopeId(), Q), _hoisted_1$k$ = { class: "slw-window-layout-container" }, _sfc_main$b = {
43802
+ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_4e0ad047_lang = "", _withScopeId$6 = (Q) => (pushScopeId("data-v-4e0ad047"), Q = Q(), popScopeId(), Q), _hoisted_1$k$ = { class: "slw-window-layout-container" }, _sfc_main$b = {
43794
43803
  __name: "window-layout",
43795
43804
  props: {
43796
43805
  layoutData: {
@@ -43846,7 +43855,7 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43846
43855
  }, {
43847
43856
  default: withCtx(() => [
43848
43857
  fe.mode === "tab" ? (openBlock(), createBlock(ue, {
43849
- type: "card",
43858
+ type: "border-card",
43850
43859
  key: fe.id
43851
43860
  }, {
43852
43861
  default: withCtx(() => [
@@ -43925,7 +43934,7 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43925
43934
  ]);
43926
43935
  };
43927
43936
  }
43928
- }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-92ab7473"]]);
43937
+ }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4e0ad047"]]);
43929
43938
  WindowLayout.name = "slw-window-layout";
43930
43939
  WindowLayout.install = (Q) => {
43931
43940
  Q.component(WindowLayout.name, WindowLayout);
@@ -59217,7 +59226,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59217
59226
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59218
59227
  setup(Q, { emit: H }) {
59219
59228
  const G = Q, X = defineAsyncComponent(
59220
- () => import("./index-08e997d0.js")
59229
+ () => import("./index-8e6ec857.js")
59221
59230
  );
59222
59231
  let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
59223
59232
  re.value = createDesigner();
@@ -59302,7 +59311,7 @@ WindowDesigner.name = "slw-window-designer";
59302
59311
  WindowDesigner.install = (Q) => {
59303
59312
  Q.component(WindowDesigner.name, WindowDesigner);
59304
59313
  };
59305
- const windowIndex_vue_vue_type_style_index_0_scoped_8f51a92d_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-8f51a92d"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
59314
+ const windowIndex_vue_vue_type_style_index_0_scoped_2ca27c61_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-2ca27c61"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
59306
59315
  __name: "window-index",
59307
59316
  props: {
59308
59317
  windowId: {
@@ -59622,7 +59631,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_8f51a92d_lang = "", _withSco
59622
59631
  let ae = `${$componentsPath}/${Z.linkUrl}`, le = await $components[ae]();
59623
59632
  X.params.linkComponentView = markRaw(le.default);
59624
59633
  }
59625
- queryParams.value && (X.params.queryParams = Object.assign({}, queryParams.value), X.params.parentData = Object.assign({}, queryParams.value)), [void 0, null].includes(Z.pageSize) || (Z.pageSize === 0 && (X.pagerConfig.enabled = !1), X.pagerConfig.pageSize = Z.pageSize), X.type === "EDIT_GRID" && (X.editConfig.trigger = "click", X.editConfig.mode = "cell", X.editConfig.enabled = !0, X.toolbarConfig.refresh = !1);
59634
+ queryParams.value && (X.params.queryParams = Object.assign({}, queryParams.value), X.params.parentData = Object.assign({}, queryParams.value)), [void 0, null].includes(Z.pageSize) || (Z.pageSize === 0 && (X.pagerConfig.enabled = !1), X.pagerConfig.pageSize = Z.pageSize), X.type === "EDIT_GRID" && (X.editConfig.trigger = "manual", X.editConfig.mode = "row", X.editConfig.enabled = !0, X.toolbarConfig.refresh = !1);
59626
59635
  let K = Z.querys;
59627
59636
  if (K) {
59628
59637
  let ae = !0, le = localStorage.getItem(Z.id + preTag.value);
@@ -59839,7 +59848,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_8f51a92d_lang = "", _withSco
59839
59848
  ne = !0;
59840
59849
  le.visible = !ee[ae].showInGrid;
59841
59850
  let se = ee[ae].type.toLowerCase();
59842
- se.indexOf("delete") > -1 ? (le.iconComponent = "TrashOutline", le.viewType = "danger", le.plain = !0, !ee[ae].css && le.iconComponent && le.showInGrid && (le.css = "color: #f56c6c;"), X.params.delete_button_id = ee[ae].id, X.params.delRequestPath = ee[ae].requestPath, X.params.deleteBtn = le) : se.indexOf("new") > -1 ? (le.iconComponent = "Add", le.viewType = "primary", ee[ae].css, ee[ae].showInGrid = !1, X.params.new_button_id = ee[ae].id, X.params.newRequestPath = ee[ae].requestPath, X.params.newWidth = ee[ae].openWidth, X.params.newHeight = ee[ae].openHeight) : se.indexOf("edit") > -1 ? (le.iconComponent = "Pencil", le.viewType = "primary", ee[ae].css, X.params.edit_button_id = ee[ae].id, X.params.editRequestPath = ee[ae].requestPath, X.params.isEdit = !0, X.params.editWidth = ee[ae].openWidth, X.params.editHeight = ee[ae].openHeight) : se === "export" ? (le.icon = "cloud-download-outline", le.iconComponent = "cloud-download-outline") : se === "import" ? (le.code = "import_", le.icon = "cloud-upload-outline", le.iconComponent = "cloud-upload-outline", le.viewType = "info") : se === "pic_upload" ? (le.iconComponent = "Image", le.viewType = "info", X.params.isHavePicUploadBtn = !0) : le.viewType = "primary", X.toolbarConfig.buttons.push(le);
59851
+ se.indexOf("delete") > -1 ? (le.iconComponent = "TrashOutline", le.viewType = "danger", le.plain = !0, !ee[ae].css && le.iconComponent && le.showInGrid && (le.css = "color: #f56c6c;"), X.params.delete_button_id = ee[ae].id, X.params.delRequestPath = ee[ae].requestPath, X.params.deleteBtn = le) : se.indexOf("new") > -1 ? (le.iconComponent = "Add", le.viewType = "primary", ee[ae].css, ee[ae].showInGrid = !1, X.params.new_button_id = ee[ae].id, X.params.newRequestPath = ee[ae].requestPath, ee[ae].openWidth && (X.params.editWidth = ee[ae].openWidth, X.params.newWidth = ee[ae].openWidth), ee[ae].openHeight && (X.params.editHeight = ee[ae].openHeight, X.params.newHeight = ee[ae].openHeight)) : se.indexOf("edit") > -1 ? (le.iconComponent = "Pencil", le.viewType = "primary", ee[ae].css, X.params.edit_button_id = ee[ae].id, X.params.editRequestPath = ee[ae].requestPath, X.params.isEdit = !0, ee[ae].openWidth && (X.params.editWidth = ee[ae].openWidth, X.params.newWidth = ee[ae].openWidth), ee[ae].openHeight && (X.params.editHeight = ee[ae].openHeight, X.params.newHeight = ee[ae].openHeight)) : se === "export" ? (le.icon = "cloud-download-outline", le.iconComponent = "cloud-download-outline") : se === "import" ? (le.code = "import_", le.icon = "cloud-upload-outline", le.iconComponent = "cloud-upload-outline", le.viewType = "info") : se === "pic_upload" ? (le.iconComponent = "Image", le.viewType = "info", X.params.isHavePicUploadBtn = !0) : le.viewType = "primary", X.toolbarConfig.buttons.push(le);
59843
59852
  }
59844
59853
  if (Z.type === "TREE_STRUCTURE") {
59845
59854
  let ae = [
@@ -59984,10 +59993,15 @@ const windowIndex_vue_vue_type_style_index_0_scoped_8f51a92d_lang = "", _withSco
59984
59993
  label: ve.NAME
59985
59994
  },
59986
59995
  ve
59987
- ))), oe[se].multiRecord && (pe.formatter = ({ row: ve, column: ge }) => ve[ge.field].split(",").map((xe) => {
59988
- var $e;
59989
- return ($e = ue.options.filter((ke) => ke.value == xe)[0]) == null ? void 0 : $e.label;
59990
- }).toString()), ue.props.dropdownStyle = {
59996
+ ))), oe[se].multiRecord && (ue.props.collapseTags = !0, pe.formatter = ({ row: ve, column: ge }) => {
59997
+ let we = ve[ge.field];
59998
+ return typeof ve[ge.field] == "string" && (we = ve[ge.field].split(",")), we.map((xe) => {
59999
+ var $e;
60000
+ return ($e = ue.options.filter(
60001
+ (ke) => ke.value == xe
60002
+ )[0]) == null ? void 0 : $e.label;
60003
+ }).toString();
60004
+ }), ue.props.dropdownStyle = {
59991
60005
  "z-index": 5e3
59992
60006
  };
59993
60007
  break;
@@ -60497,7 +60511,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_8f51a92d_lang = "", _withSco
60497
60511
  ]);
60498
60512
  };
60499
60513
  }
60500
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8f51a92d"]]);
60514
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2ca27c61"]]);
60501
60515
  WindowIndex.name = "slw-window-index";
60502
60516
  WindowIndex.install = (Q) => {
60503
60517
  Q.component(WindowIndex.name, WindowIndex);
@@ -127594,7 +127608,19 @@ function initVxeRenderer(Q, H, G) {
127594
127608
  we.updateStatus(ge);
127595
127609
  });
127596
127610
  }
127597
- const he = (ve, ge) => {
127611
+ function he(ve, ge) {
127612
+ const {
127613
+ $table: we,
127614
+ row: _e,
127615
+ column: xe
127616
+ } = ge;
127617
+ return ce(ve, ge, ($e) => {
127618
+ XEUtils$1.set(_e, xe.field, $e);
127619
+ }, () => {
127620
+ we.updateStatus(ge);
127621
+ });
127622
+ }
127623
+ const ue = (ve, ge) => {
127598
127624
  const {
127599
127625
  attrs: we
127600
127626
  } = ve, {
@@ -127606,50 +127632,18 @@ function initVxeRenderer(Q, H, G) {
127606
127632
  ...ke,
127607
127633
  ...Ce
127608
127634
  })];
127609
- }, ue = (ve, ge, we, _e) => {
127610
- const {
127611
- props: xe,
127612
- attrs: $e,
127613
- options: ke
127614
- } = ve;
127615
- xe.options = ke || [];
127616
- const Ce = ve.events || {};
127617
- let be = {
127618
- data: ge,
127619
- item: _e,
127620
- property: we,
127621
- row: ge,
127622
- column: {
127623
- editRender: _e.itemRender,
127624
- property: we
127625
- }
127626
- };
127627
- return createVNode(resolveComponent("el-select-v2"), mergeProps$1({
127628
- modelValue: ge[we],
127629
- "onUpdate:modelValue": (Oe) => ge[we] = Oe
127630
- }, {
127631
- ...$e,
127632
- ...toRaw(xe)
127633
- }, {
127634
- onChange: Ce.change(be, ge[we])
127635
- }), null);
127636
127635
  }, fe = (ve, ge) => {
127637
127636
  const {
127638
- props: we,
127639
- attrs: _e,
127640
- options: xe
127641
- } = ve;
127642
- we.options = xe || [];
127643
- const $e = ve.events || {};
127644
- return createVNode(resolveComponent("el-select-v2"), mergeProps$1({
127645
- modelValue: ge.row[ge.column.field],
127646
- "onUpdate:modelValue": (ke) => ge.row[ge.column.field] = ke
127647
- }, {
127648
- ..._e,
127649
- ...toRaw(we)
127650
- }, {
127651
- onChange: $e.change(ge, ge.row[ge.column.field])
127652
- }), null);
127637
+ attrs: we
127638
+ } = ve, {
127639
+ row: _e,
127640
+ column: xe
127641
+ } = ge, $e = XEUtils$1.get(_e, xe.field), ke = se(ve, ge, $e), Ce = he(ve, ge);
127642
+ return [h$3(resolveComponent("el-select-v2"), {
127643
+ ...we,
127644
+ ...ke,
127645
+ ...Ce
127646
+ })];
127653
127647
  }, pe = (ve, ge) => {
127654
127648
  const {
127655
127649
  data: we,
@@ -127876,7 +127870,7 @@ function initVxeRenderer(Q, H, G) {
127876
127870
  },
127877
127871
  ElSelectV2: {
127878
127872
  renderItemContent(ve, ge) {
127879
- return he(ve, ge);
127873
+ return ue(ve, ge);
127880
127874
  },
127881
127875
  renderEdit(ve, ge) {
127882
127876
  return fe(ve, ge);
@@ -144222,7 +144216,7 @@ function reConsole() {
144222
144216
  }
144223
144217
  }
144224
144218
  console.info(
144225
- `%cSLW %cVer 0.9.31%c
144219
+ `%cSLW %cVer 0.9.33%c
144226
144220
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144227
144221
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144228
144222
  "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-371579d8.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-0d2a1c2a.js";
3
3
  const I = {
4
4
  computed: {},
5
5
  methods: {
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as a } from "./index-371579d8.js";
1
+ import { i as a } from "./index-0d2a1c2a.js";
2
2
  import "vue";
3
3
  export {
4
4
  a as default