slw 0.9.88 → 0.9.90

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-87f2930f.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-d3be5bf8.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -8524,7 +8524,7 @@ PictureUpload.name = "slw-picture-upload";
8524
8524
  PictureUpload.install = (H) => {
8525
8525
  H.component(PictureUpload.name, PictureUpload);
8526
8526
  };
8527
- const windowGrid_vue_vue_type_style_index_0_scoped_913b39c0_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-913b39c0"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8527
+ const windowGrid_vue_vue_type_style_index_0_scoped_ba7ec6da_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-ba7ec6da"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8528
8528
  _hoisted_1$l1,
8529
8529
  _hoisted_2$kY,
8530
8530
  _hoisted_3$hY
@@ -10100,6 +10100,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_913b39c0_lang = "", _withScop
10100
10100
  G && (G.itemRender.props[Q] = Z);
10101
10101
  }, setPictureUploadConfig = (H) => {
10102
10102
  gridData.value.params.pictureUploadConfig = H;
10103
+ }, setEditGridColumnProps = (H, Q) => {
10104
+ const X = getCurRegion().columns.filter((G) => G.field == H.toUpperCase())[0];
10105
+ X && (X.editRender.props = Object.assign(X.editRender.props, Q));
10103
10106
  };
10104
10107
  return onMounted(async () => {
10105
10108
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -10458,7 +10461,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_913b39c0_lang = "", _withScop
10458
10461
  ]);
10459
10462
  };
10460
10463
  }
10461
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-913b39c0"]]);
10464
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ba7ec6da"]]);
10462
10465
  WindowGrid.name = "slw-window-grid";
10463
10466
  WindowGrid.install = (H) => {
10464
10467
  H.component(WindowGrid.name, WindowGrid);
@@ -62594,7 +62597,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62594
62597
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62595
62598
  setup(H, { emit: Q }) {
62596
62599
  const Z = H, X = defineAsyncComponent(
62597
- () => import("./index-efdef26c.js")
62600
+ () => import("./index-6b48b093.js")
62598
62601
  );
62599
62602
  let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
62600
62603
  re.value = createDesigner();
@@ -131293,9 +131296,21 @@ function initVxeRenderer(H, Q, Z) {
131293
131296
  },
131294
131297
  ElText: {
131295
131298
  renderEdit(ve, me) {
131299
+ var _e;
131300
+ if (((_e = ve.options) == null ? void 0 : _e.length) > 0) {
131301
+ let $e = ve.options.filter((xe) => xe.value == me.row[me.column.field])[0];
131302
+ if ($e)
131303
+ return $e.label;
131304
+ }
131296
131305
  return me.row[me.column.field];
131297
131306
  },
131298
131307
  renderCell(ve, me) {
131308
+ var _e;
131309
+ if (((_e = ve.options) == null ? void 0 : _e.length) > 0) {
131310
+ let $e = ve.options.filter((xe) => xe.value == me.row[me.column.field])[0];
131311
+ if ($e)
131312
+ return $e.label;
131313
+ }
131299
131314
  return me.row[me.column.field];
131300
131315
  }
131301
131316
  }
@@ -147635,7 +147650,7 @@ function reConsole() {
147635
147650
  }
147636
147651
  }
147637
147652
  console.info(
147638
- `%cSLW %cVer 0.9.88%c
147653
+ `%cSLW %cVer 0.9.90%c
147639
147654
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147640
147655
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147641
147656
  "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-87f2930f.js";
1
+ import { i as m } from "./index-d3be5bf8.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {