slw 0.8.92 → 0.8.94
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.
- package/lib/index.js +51 -8
- package/lib/index.umd.cjs +6 -6
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -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
|
|
8527
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_b21fa00b_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-b21fa00b"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8528
8528
|
class: "slw-window-grid-container",
|
|
8529
8529
|
style: { height: "100%" }
|
|
8530
8530
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$av = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4V = [
|
|
@@ -9155,7 +9155,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b753fe6a_lang = "", _withScop
|
|
|
9155
9155
|
}) : !0, !X.visible)
|
|
9156
9156
|
return !0;
|
|
9157
9157
|
});
|
|
9158
|
-
});
|
|
9158
|
+
}), Q && getCurRegion().setCurrentRow(H);
|
|
9159
9159
|
else {
|
|
9160
9160
|
const X = getSelectRecord();
|
|
9161
9161
|
gridData.value.toolbarConfig.buttons.forEach((Z) => {
|
|
@@ -9170,7 +9170,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b753fe6a_lang = "", _withScop
|
|
|
9170
9170
|
return Q ? Q.getCurrentRecord() : null;
|
|
9171
9171
|
}, getData = () => {
|
|
9172
9172
|
const Q = getCurRegion();
|
|
9173
|
-
|
|
9173
|
+
if (gridData.value.type == "GRID")
|
|
9174
|
+
return Q ? Q.getData() : null;
|
|
9175
|
+
if (gridData.value.type == "EDIT_GRID")
|
|
9176
|
+
return Q ? Q.getTableData().visibleData : null;
|
|
9174
9177
|
}, setSelectRecordValue = (Q, H) => {
|
|
9175
9178
|
const G = getSelectRecord();
|
|
9176
9179
|
G[Q] = H;
|
|
@@ -9834,8 +9837,48 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b753fe6a_lang = "", _withScop
|
|
|
9834
9837
|
}, setBeforeUploadFn = (Q) => {
|
|
9835
9838
|
let H = getCurRegion();
|
|
9836
9839
|
H.params.beforeUploadFn = Q;
|
|
9840
|
+
}, editGridFunList = [];
|
|
9841
|
+
let oldInsertRecords = null;
|
|
9842
|
+
const addEditGridDataChangeFun = (Q) => {
|
|
9843
|
+
editGridFunList.push(Q);
|
|
9844
|
+
}, isEqual = (Q, H) => {
|
|
9845
|
+
let G = !0;
|
|
9846
|
+
for (let X in Q)
|
|
9847
|
+
if (Q[X].length > 0) {
|
|
9848
|
+
G = !1;
|
|
9849
|
+
break;
|
|
9850
|
+
}
|
|
9851
|
+
if (G)
|
|
9852
|
+
return !0;
|
|
9853
|
+
if (H == null)
|
|
9854
|
+
return oldInsertRecords = XEUtils$1.clone(Q, !0), !0;
|
|
9855
|
+
for (let X in Q) {
|
|
9856
|
+
if (Q[X].length != H[X].length)
|
|
9857
|
+
return !1;
|
|
9858
|
+
for (let [Z, K] of Q[X].entries())
|
|
9859
|
+
if (!XEUtils$1.isEqual(K, H[X][Z]))
|
|
9860
|
+
return !1;
|
|
9861
|
+
}
|
|
9862
|
+
return !0;
|
|
9837
9863
|
};
|
|
9838
|
-
return
|
|
9864
|
+
return watch(
|
|
9865
|
+
() => {
|
|
9866
|
+
var Q;
|
|
9867
|
+
return (Q = curRegion.value) == null ? void 0 : Q.getRecordset();
|
|
9868
|
+
},
|
|
9869
|
+
(Q, H) => {
|
|
9870
|
+
gridData.value.type != "EDIT_GRID" || typeof H > "u" || isEqual(Q, oldInsertRecords) || (oldInsertRecords = XEUtils$1.clone(Q, !0), editGridFunList && editGridFunList.length > 0 && editGridFunList.forEach((G) => {
|
|
9871
|
+
if (G && typeof G == "function")
|
|
9872
|
+
try {
|
|
9873
|
+
const X = curRegion.value.getTableData().visibleData;
|
|
9874
|
+
G({ visibleData: X, ...Q });
|
|
9875
|
+
} catch (X) {
|
|
9876
|
+
console.error(X);
|
|
9877
|
+
}
|
|
9878
|
+
}));
|
|
9879
|
+
},
|
|
9880
|
+
{ deep: !0 }
|
|
9881
|
+
), onMounted(async () => {
|
|
9839
9882
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9840
9883
|
body: { options: bodyMenus.value },
|
|
9841
9884
|
visibleMethod
|
|
@@ -10076,7 +10119,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_b753fe6a_lang = "", _withScop
|
|
|
10076
10119
|
]);
|
|
10077
10120
|
};
|
|
10078
10121
|
}
|
|
10079
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10122
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b21fa00b"]]);
|
|
10080
10123
|
WindowGrid.name = "slw-window-grid";
|
|
10081
10124
|
WindowGrid.install = (Q) => {
|
|
10082
10125
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -38913,7 +38956,7 @@ var js = js$1.exports;
|
|
|
38913
38956
|
})(Q);
|
|
38914
38957
|
})(js$1);
|
|
38915
38958
|
var jsExports = js$1.exports;
|
|
38916
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38959
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_497e0601_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-497e0601"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38917
38960
|
key: 0,
|
|
38918
38961
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38919
38962
|
}, _hoisted_3$hS = ["onClick"], _hoisted_4$au = ["onClick"], _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _sfc_main$5 = {
|
|
@@ -39833,7 +39876,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39833
39876
|
]);
|
|
39834
39877
|
};
|
|
39835
39878
|
}
|
|
39836
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39879
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-497e0601"]]);
|
|
39837
39880
|
WindowForm.name = "slw-window-form";
|
|
39838
39881
|
WindowForm.install = (Q) => {
|
|
39839
39882
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -125230,7 +125273,7 @@ function reConsole() {
|
|
|
125230
125273
|
}
|
|
125231
125274
|
}
|
|
125232
125275
|
console.info(
|
|
125233
|
-
`%cSLW %cVer 0.8.
|
|
125276
|
+
`%cSLW %cVer 0.8.94%c
|
|
125234
125277
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
125235
125278
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/files/6`,
|
|
125236
125279
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|