slw 0.9.77 → 0.9.79
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.
|
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (H) => {
|
|
8526
8526
|
H.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_dab1ab34_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-dab1ab34"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _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 = [
|
|
@@ -8866,11 +8866,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
|
|
|
8866
8866
|
const me = ve.getColumnById("_operation_");
|
|
8867
8867
|
me && he && ve.showColumn(me);
|
|
8868
8868
|
}
|
|
8869
|
-
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(se)
|
|
8870
|
-
getCurRegion().setCheckboxRow(me, !0);
|
|
8871
|
-
});
|
|
8869
|
+
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(se);
|
|
8872
8870
|
}
|
|
8873
|
-
|
|
8871
|
+
((de = (ce = checkedGridOptions.value) == null ? void 0 : ce.data) == null ? void 0 : de.length) > 0 && checkedGridOptions.value.data.forEach((he) => {
|
|
8872
|
+
getCurRegion().setCheckboxRow(he, !0);
|
|
8873
|
+
}), rowClickCommon(se, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((he) => {
|
|
8874
8874
|
var ue;
|
|
8875
8875
|
if (he && typeof he == "function")
|
|
8876
8876
|
try {
|
|
@@ -8937,7 +8937,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
|
|
|
8937
8937
|
}
|
|
8938
8938
|
Q.length > 0 && (Q = Q[0]);
|
|
8939
8939
|
}
|
|
8940
|
-
switch (typeof Z < "u" ? H.btnLoad[Z] = !0 : H.loading = !0, H.type) {
|
|
8940
|
+
switch (typeof Z < "u" ? (H.buttonRender.props.loading = computed(() => H.btnLoad[Z]), H.btnLoad[Z] = !0) : (H.buttonRender.props.loading = computed(() => H.loading), H.loading = !0), H.type) {
|
|
8941
8941
|
case "NEW":
|
|
8942
8942
|
let G = {};
|
|
8943
8943
|
gridData.value.params.addChildData && gridData.value.params.childRegionCode.forEach((ne) => {
|
|
@@ -9248,34 +9248,37 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
|
|
|
9248
9248
|
}, clearCheckedReserveData = () => {
|
|
9249
9249
|
getCurRegion().clearCheckboxReserve(), checkedGridOptions.value && (checkedGridOptions.value.data = []);
|
|
9250
9250
|
}, headerCheckboxChange = ({ checked: H, row: Q, rowIndex: Z }) => {
|
|
9251
|
+
var G, K;
|
|
9251
9252
|
let X = getCheckedData();
|
|
9252
9253
|
if (X.length > 0)
|
|
9253
|
-
gridData.value.toolbarConfig.buttons.forEach((
|
|
9254
|
-
|
|
9255
|
-
if (
|
|
9256
|
-
...
|
|
9254
|
+
gridData.value.toolbarConfig.buttons.forEach((ee) => {
|
|
9255
|
+
ee.displayLogic && !ee.showInGrid && X.some((te) => {
|
|
9256
|
+
if (ee.visible = ee.displayLogic ? displayLogic(ee.displayLogic, {
|
|
9257
|
+
...te,
|
|
9257
9258
|
...assembleParentData(gridData.value.params.parentData)
|
|
9258
|
-
}) : !0, !
|
|
9259
|
+
}) : !0, !ee.visible)
|
|
9259
9260
|
return !0;
|
|
9260
9261
|
});
|
|
9261
9262
|
});
|
|
9262
9263
|
else {
|
|
9263
|
-
const
|
|
9264
|
-
gridData.value.toolbarConfig.buttons.forEach((
|
|
9265
|
-
|
|
9266
|
-
...
|
|
9264
|
+
const ee = getSelectRecord();
|
|
9265
|
+
gridData.value.toolbarConfig.buttons.forEach((te) => {
|
|
9266
|
+
te.displayLogic && !te.showInGrid && (te.visible = displayLogic(te.displayLogic, {
|
|
9267
|
+
...ee,
|
|
9267
9268
|
...assembleParentData(gridData.value.params.parentData)
|
|
9268
9269
|
}));
|
|
9269
9270
|
});
|
|
9270
9271
|
}
|
|
9271
|
-
Q ? rowClickCommon(Q, Z) :
|
|
9272
|
-
|
|
9272
|
+
Q ? rowClickCommon(Q, Z) : (!H && ((K = (G = checkedGridOptions.value) == null ? void 0 : G.data) == null ? void 0 : K.length) > 0 && checkedGridOptions.value.data.forEach((ee) => {
|
|
9273
|
+
removeRowEvent(ee);
|
|
9274
|
+
}), allCheckboxFunList && allCheckboxFunList.length > 0 && allCheckboxFunList.forEach((ee) => {
|
|
9275
|
+
if (ee && typeof ee == "function")
|
|
9273
9276
|
try {
|
|
9274
|
-
|
|
9275
|
-
} catch (
|
|
9276
|
-
console.error(
|
|
9277
|
+
ee(X);
|
|
9278
|
+
} catch (te) {
|
|
9279
|
+
console.error(te);
|
|
9277
9280
|
}
|
|
9278
|
-
});
|
|
9281
|
+
}));
|
|
9279
9282
|
}, getSelectRecord = () => {
|
|
9280
9283
|
const H = getCurRegion();
|
|
9281
9284
|
return H ? H.getCurrentRecord() : null;
|
|
@@ -10415,7 +10418,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
|
|
|
10415
10418
|
]);
|
|
10416
10419
|
};
|
|
10417
10420
|
}
|
|
10418
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10421
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dab1ab34"]]);
|
|
10419
10422
|
WindowGrid.name = "slw-window-grid";
|
|
10420
10423
|
WindowGrid.install = (H) => {
|
|
10421
10424
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62546,7 +62549,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62546
62549
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62547
62550
|
setup(H, { emit: Q }) {
|
|
62548
62551
|
const Z = H, X = defineAsyncComponent(
|
|
62549
|
-
() => import("./index-
|
|
62552
|
+
() => import("./index-e4d00ea8.js")
|
|
62550
62553
|
);
|
|
62551
62554
|
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);
|
|
62552
62555
|
re.value = createDesigner();
|
|
@@ -62631,7 +62634,7 @@ WindowDesigner.name = "slw-window-designer";
|
|
|
62631
62634
|
WindowDesigner.install = (H) => {
|
|
62632
62635
|
H.component(WindowDesigner.name, WindowDesigner);
|
|
62633
62636
|
};
|
|
62634
|
-
const
|
|
62637
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_bcc7dd4b_lang = "", _withScopeId = (H) => (pushScopeId("data-v-bcc7dd4b"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
62635
62638
|
__name: "window-index",
|
|
62636
62639
|
props: {
|
|
62637
62640
|
windowId: {
|
|
@@ -63462,8 +63465,16 @@ const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withSco
|
|
|
63462
63465
|
});
|
|
63463
63466
|
}, closePreModal = () => {
|
|
63464
63467
|
preViewxModal.value.close ? preViewxModal.value.close() : preViewShow.value = !1;
|
|
63465
|
-
}
|
|
63466
|
-
|
|
63468
|
+
};
|
|
63469
|
+
let ctrlTimeout = null, lastExecTime = 0;
|
|
63470
|
+
const ctrlSSave = (H) => {
|
|
63471
|
+
if (H.keyCode === 83 && (navigator.platform.match("Mac") ? H.metaKey : H.ctrlKey)) {
|
|
63472
|
+
H.preventDefault();
|
|
63473
|
+
const Q = Date.now();
|
|
63474
|
+
Q - lastExecTime >= 1e3 ? (ctrlTimeout && (clearTimeout(ctrlTimeout), ctrlTimeout = null), lastExecTime = Q, saveData(!0)) : ctrlTimeout || (ctrlTimeout = setTimeout(() => {
|
|
63475
|
+
ctrlTimeout = null;
|
|
63476
|
+
}, 1e3 - (Q - lastExecTime)));
|
|
63477
|
+
}
|
|
63467
63478
|
}, xForm = ref(), saveData = async (H) => {
|
|
63468
63479
|
saveDataBtnLoading.value || !xForm.value || (saveDataBtnLoading.value = !0, xForm.value.submitData(H), typeof H == "boolean" && !H && (saveDataBtnLoading.value = !1));
|
|
63469
63480
|
}, saveLoadingChange = () => {
|
|
@@ -63846,7 +63857,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withSco
|
|
|
63846
63857
|
]);
|
|
63847
63858
|
};
|
|
63848
63859
|
}
|
|
63849
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
63860
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-bcc7dd4b"]]);
|
|
63850
63861
|
WindowIndex.name = "slw-window-index";
|
|
63851
63862
|
WindowIndex.install = (H) => {
|
|
63852
63863
|
H.component(WindowIndex.name, WindowIndex);
|
|
@@ -147558,7 +147569,7 @@ function reConsole() {
|
|
|
147558
147569
|
}
|
|
147559
147570
|
}
|
|
147560
147571
|
console.info(
|
|
147561
|
-
`%cSLW %cVer 0.9.
|
|
147572
|
+
`%cSLW %cVer 0.9.79%c
|
|
147562
147573
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147563
147574
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147564
147575
|
"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-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-8ac7425e.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED