slw 0.9.87 → 0.9.89
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-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-f625a613.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
|
|
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
|
|
@@ -8897,27 +8897,27 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8413aed9_lang = "", _withScop
|
|
|
8897
8897
|
}
|
|
8898
8898
|
}, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
|
|
8899
8899
|
}, rowClick = (H) => {
|
|
8900
|
-
gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE"
|
|
8901
|
-
}, rowClickCommon = (H, Q) => {
|
|
8902
|
-
var
|
|
8903
|
-
const
|
|
8900
|
+
gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? rowClickCommon(H.row, H.rowIndex) : H.rowIndex !== rowIndex.value ? rowClickCommon(H.row, H.rowIndex, H.column.field) : (rowIndex.value = H.rowIndex, gridData.value.type == "EDIT_GRID" && getCurRegion().setEditCell(H.row, H.column.field));
|
|
8901
|
+
}, rowClickCommon = (H, Q, Z) => {
|
|
8902
|
+
var ee;
|
|
8903
|
+
const X = {
|
|
8904
8904
|
rowId: gridData.value.rowId,
|
|
8905
8905
|
// eslint-disable-next-line no-prototype-builtins
|
|
8906
8906
|
rowIdValue: !H || !H.hasOwnProperty(gridData.value.rowId) ? "" : H[gridData.value.rowId],
|
|
8907
8907
|
preTag: preTag.value,
|
|
8908
8908
|
hasData: !(typeof H > "u" || Object.keys(H).length === 0),
|
|
8909
8909
|
...H
|
|
8910
|
-
},
|
|
8911
|
-
if (delete
|
|
8910
|
+
}, G = Object.assign({}, X);
|
|
8911
|
+
if (delete G._region_id, gridData.value.params.parentData = getParentData(), getCheckedData().length <= 0 && emitButtonDisplayLogic(
|
|
8912
8912
|
{ ...H, ...assembleParentData(gridData.value.params.parentData) },
|
|
8913
8913
|
Q
|
|
8914
|
-
), rowIndex.value = Q,
|
|
8915
|
-
for (let
|
|
8916
|
-
let
|
|
8917
|
-
(
|
|
8914
|
+
), rowIndex.value = Q, X.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, H), getCurRegion().setCurrentRow(H)), callGridClickEvents(G, gridData.value.params._region_id), gridData.value.type == "EDIT_GRID") {
|
|
8915
|
+
for (let te in H) {
|
|
8916
|
+
let ne = gridData.value.columns.filter((re) => re.field == te)[0];
|
|
8917
|
+
(ee = ne == null ? void 0 : ne.editRender) != null && ee.props.multiple && typeof H[te] == "string" && (H[te] = H[te].split(","));
|
|
8918
8918
|
}
|
|
8919
8919
|
setTimeout(() => {
|
|
8920
|
-
getCurRegion().setEditRow(H);
|
|
8920
|
+
Z ? getCurRegion().setEditCell(H, Z) : getCurRegion().setEditRow(H);
|
|
8921
8921
|
}, 300);
|
|
8922
8922
|
}
|
|
8923
8923
|
}, emitButtonDisplayLogic = (H, Q) => {
|
|
@@ -10100,6 +10100,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8413aed9_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_8413aed9_lang = "", _withScop
|
|
|
10458
10461
|
]);
|
|
10459
10462
|
};
|
|
10460
10463
|
}
|
|
10461
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
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-
|
|
62600
|
+
() => import("./index-5770c626.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();
|
|
@@ -131296,6 +131299,12 @@ function initVxeRenderer(H, Q, Z) {
|
|
|
131296
131299
|
return me.row[me.column.field];
|
|
131297
131300
|
},
|
|
131298
131301
|
renderCell(ve, me) {
|
|
131302
|
+
var _e;
|
|
131303
|
+
if (((_e = ve.options) == null ? void 0 : _e.length) > 0) {
|
|
131304
|
+
let $e = ve.options.filter((xe) => xe.value == me.row[me.column.field])[0];
|
|
131305
|
+
if ($e)
|
|
131306
|
+
return $e.label;
|
|
131307
|
+
}
|
|
131299
131308
|
return me.row[me.column.field];
|
|
131300
131309
|
}
|
|
131301
131310
|
}
|
|
@@ -147635,7 +147644,7 @@ function reConsole() {
|
|
|
147635
147644
|
}
|
|
147636
147645
|
}
|
|
147637
147646
|
console.info(
|
|
147638
|
-
`%cSLW %cVer 0.9.
|
|
147647
|
+
`%cSLW %cVer 0.9.89%c
|
|
147639
147648
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147640
147649
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147641
147650
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED