slw 0.9.73 → 0.9.74
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-a1308ede.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -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_7110123a_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-7110123a"), 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 = [
|
|
@@ -8579,12 +8579,18 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c7bc17e1_lang = "", _withScop
|
|
|
8579
8579
|
let G = gridData.value.formConfig.items.filter((K) => K.folding).map((K) => K.field);
|
|
8580
8580
|
if (G.length > 0) {
|
|
8581
8581
|
let K = !1;
|
|
8582
|
-
|
|
8583
|
-
if (X[ee])
|
|
8582
|
+
for (let ee of G)
|
|
8583
|
+
if (X[ee] instanceof Array)
|
|
8584
|
+
if (X[ee].length > 0) {
|
|
8585
|
+
K = !0;
|
|
8586
|
+
break;
|
|
8587
|
+
} else
|
|
8588
|
+
continue;
|
|
8589
|
+
else if (X[ee]) {
|
|
8584
8590
|
K = !0;
|
|
8585
|
-
|
|
8591
|
+
break;
|
|
8586
8592
|
}
|
|
8587
|
-
|
|
8593
|
+
K && (H += " form-folding");
|
|
8588
8594
|
}
|
|
8589
8595
|
}
|
|
8590
8596
|
}
|
|
@@ -9237,6 +9243,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c7bc17e1_lang = "", _withScop
|
|
|
9237
9243
|
}, getCheckedData = () => {
|
|
9238
9244
|
const H = getCurRegion();
|
|
9239
9245
|
return H ? H.getCheckboxRecords().concat(H.getCheckboxReserveRecords()) : null;
|
|
9246
|
+
}, clearCheckedReserveData = () => {
|
|
9247
|
+
getCurRegion().clearCheckboxReserve(), checkedGridOptions.value && (checkedGridOptions.value.data = []);
|
|
9240
9248
|
}, headerCheckboxChange = ({ checked: H, row: Q, rowIndex: Z }) => {
|
|
9241
9249
|
let X = getCheckedData();
|
|
9242
9250
|
if (X.length > 0)
|
|
@@ -9799,6 +9807,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c7bc17e1_lang = "", _withScop
|
|
|
9799
9807
|
};
|
|
9800
9808
|
}, headerProxyQuery = () => {
|
|
9801
9809
|
evalEvent(gridData.value.params.formEvents.regionInit);
|
|
9810
|
+
}, headerFormReset = ({ data: H, $event: Q }) => {
|
|
9811
|
+
gridData.value.checkboxConfig.reserve && clearCheckedReserveData();
|
|
9802
9812
|
}, setCheckboxRowColor = (H, Q = "#e6f7ff") => {
|
|
9803
9813
|
let Z = getCurRegion();
|
|
9804
9814
|
H && (Z = getRegion(H));
|
|
@@ -10125,7 +10135,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c7bc17e1_lang = "", _withScop
|
|
|
10125
10135
|
search(H);
|
|
10126
10136
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (H) => {
|
|
10127
10137
|
setChecked(H);
|
|
10128
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H);
|
|
10138
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData();
|
|
10129
10139
|
}), onUnmounted(() => {
|
|
10130
10140
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10131
10141
|
}), __expose({ gridReload, reload }), (H, Q) => {
|
|
@@ -10151,6 +10161,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c7bc17e1_lang = "", _withScop
|
|
|
10151
10161
|
onCheckboxChange: headerCheckboxChange,
|
|
10152
10162
|
onCheckboxAll: headerCheckboxChange,
|
|
10153
10163
|
onProxyQuery: headerProxyQuery,
|
|
10164
|
+
onFormReset: headerFormReset,
|
|
10154
10165
|
onCustom: headerCustomClick
|
|
10155
10166
|
}), {
|
|
10156
10167
|
scan_item: withCtx(({ data: se, property: ce }) => [
|
|
@@ -10353,7 +10364,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c7bc17e1_lang = "", _withScop
|
|
|
10353
10364
|
]);
|
|
10354
10365
|
};
|
|
10355
10366
|
}
|
|
10356
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10367
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-7110123a"]]);
|
|
10357
10368
|
WindowGrid.name = "slw-window-grid";
|
|
10358
10369
|
WindowGrid.install = (H) => {
|
|
10359
10370
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -62484,7 +62495,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62484
62495
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62485
62496
|
setup(H, { emit: Q }) {
|
|
62486
62497
|
const Z = H, X = defineAsyncComponent(
|
|
62487
|
-
() => import("./index-
|
|
62498
|
+
() => import("./index-038e88c2.js")
|
|
62488
62499
|
);
|
|
62489
62500
|
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);
|
|
62490
62501
|
re.value = createDesigner();
|
|
@@ -147493,7 +147504,7 @@ function reConsole() {
|
|
|
147493
147504
|
}
|
|
147494
147505
|
}
|
|
147495
147506
|
console.info(
|
|
147496
|
-
`%cSLW %cVer 0.9.
|
|
147507
|
+
`%cSLW %cVer 0.9.74%c
|
|
147497
147508
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147498
147509
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147499
147510
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED