slw 0.9.76 → 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_661b6710_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_661b6710_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_661b6710_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;
|
|
@@ -10287,6 +10290,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_661b6710_lang = "", _withScop
|
|
|
10287
10290
|
key: 0,
|
|
10288
10291
|
placement: "right",
|
|
10289
10292
|
width: 500,
|
|
10293
|
+
"popper-style": "max-height: 90vh;overflow: auto;",
|
|
10290
10294
|
trigger: "click"
|
|
10291
10295
|
}, {
|
|
10292
10296
|
reference: withCtx(() => [
|
|
@@ -10414,7 +10418,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_661b6710_lang = "", _withScop
|
|
|
10414
10418
|
]);
|
|
10415
10419
|
};
|
|
10416
10420
|
}
|
|
10417
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10421
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dab1ab34"]]);
|
|
10418
10422
|
WindowGrid.name = "slw-window-grid";
|
|
10419
10423
|
WindowGrid.install = (H) => {
|
|
10420
10424
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62545,7 +62549,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62545
62549
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62546
62550
|
setup(H, { emit: Q }) {
|
|
62547
62551
|
const Z = H, X = defineAsyncComponent(
|
|
62548
|
-
() => import("./index-
|
|
62552
|
+
() => import("./index-e4d00ea8.js")
|
|
62549
62553
|
);
|
|
62550
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);
|
|
62551
62555
|
re.value = createDesigner();
|
|
@@ -62630,7 +62634,7 @@ WindowDesigner.name = "slw-window-designer";
|
|
|
62630
62634
|
WindowDesigner.install = (H) => {
|
|
62631
62635
|
H.component(WindowDesigner.name, WindowDesigner);
|
|
62632
62636
|
};
|
|
62633
|
-
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 = {
|
|
62634
62638
|
__name: "window-index",
|
|
62635
62639
|
props: {
|
|
62636
62640
|
windowId: {
|
|
@@ -63461,8 +63465,16 @@ const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withSco
|
|
|
63461
63465
|
});
|
|
63462
63466
|
}, closePreModal = () => {
|
|
63463
63467
|
preViewxModal.value.close ? preViewxModal.value.close() : preViewShow.value = !1;
|
|
63464
|
-
}
|
|
63465
|
-
|
|
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
|
+
}
|
|
63466
63478
|
}, xForm = ref(), saveData = async (H) => {
|
|
63467
63479
|
saveDataBtnLoading.value || !xForm.value || (saveDataBtnLoading.value = !0, xForm.value.submitData(H), typeof H == "boolean" && !H && (saveDataBtnLoading.value = !1));
|
|
63468
63480
|
}, saveLoadingChange = () => {
|
|
@@ -63845,7 +63857,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withSco
|
|
|
63845
63857
|
]);
|
|
63846
63858
|
};
|
|
63847
63859
|
}
|
|
63848
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
63860
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-bcc7dd4b"]]);
|
|
63849
63861
|
WindowIndex.name = "slw-window-index";
|
|
63850
63862
|
WindowIndex.install = (H) => {
|
|
63851
63863
|
H.component(WindowIndex.name, WindowIndex);
|
|
@@ -147557,7 +147569,7 @@ function reConsole() {
|
|
|
147557
147569
|
}
|
|
147558
147570
|
}
|
|
147559
147571
|
console.info(
|
|
147560
|
-
`%cSLW %cVer 0.9.
|
|
147572
|
+
`%cSLW %cVer 0.9.79%c
|
|
147561
147573
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147562
147574
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147563
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