slw 0.5.985 → 0.5.987
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 +17 -15
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8511
8511
|
PictureUpload.install = (Q) => {
|
|
8512
8512
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8513
8513
|
};
|
|
8514
|
-
const
|
|
8514
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_f0f3f800_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-f0f3f800"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8515
8515
|
class: "slw-window-grid-container",
|
|
8516
8516
|
style: { height: "100%" }
|
|
8517
8517
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -9694,9 +9694,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
|
|
|
9694
9694
|
}, onScanIconClick = (Q, H) => {
|
|
9695
9695
|
const G = gridData.value.formConfig.items.filter((X) => X.field == H)[0];
|
|
9696
9696
|
G.itemRender.props.clickFunction && evalEvent(G.itemRender.props.clickFunction, Q, H);
|
|
9697
|
+
}, setFormValue = (Q, H) => {
|
|
9698
|
+
let G = gridData.value.formConfig.items.filter((X) => X.field == Q)[0];
|
|
9699
|
+
G && (G.itemRender.defaultValue = H);
|
|
9697
9700
|
};
|
|
9698
|
-
onMounted(() => {
|
|
9699
|
-
gridData.value.addListener && getCurRegion() && addListener(),
|
|
9701
|
+
return onMounted(async () => {
|
|
9702
|
+
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9703
|
+
body: { options: bodyMenus.value },
|
|
9704
|
+
visibleMethod
|
|
9705
|
+
}), await evalEvent(gridData.value.params.formEvents.dataInit), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
9700
9706
|
typeof Q.type < "u" && Q.type.toLowerCase() === "edit" && (editBtn.value = Q), typeof Q.type < "u" && Q.type.toLowerCase() === "export" && (exportButton.value = Q), Q.hasOwnProperty("buttonRender") || (Q.buttonRender = {
|
|
9701
9707
|
name: "ElButton",
|
|
9702
9708
|
props: {
|
|
@@ -9752,9 +9758,6 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
|
|
|
9752
9758
|
}
|
|
9753
9759
|
}), gridData.value.columns.forEach((Q) => {
|
|
9754
9760
|
Q.hasOwnProperty("field") && !Q.hasOwnProperty("treeNode") && (Q.events.change = onFieldChange, Q.events["on-change"] = onFieldChange, Q.events.keyup = onFieldEnter, Q.editRender.events = Q.events, Q.itemRender.events = Q.events), Q.itemRender && Q.itemRender.props._select_id && (formSelectMap.value[Q.id] = Q);
|
|
9755
|
-
}), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9756
|
-
body: { options: bodyMenus.value },
|
|
9757
|
-
visibleMethod
|
|
9758
9761
|
}), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
|
|
9759
9762
|
closeModal && closeModal();
|
|
9760
9763
|
}, curRegion.value.closePreModal = () => {
|
|
@@ -9765,14 +9768,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
|
|
|
9765
9768
|
search(Q);
|
|
9766
9769
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
9767
9770
|
setChecked(Q);
|
|
9768
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor();
|
|
9771
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor(), curRegion.value.setFormValue = () => setFormValue();
|
|
9769
9772
|
}), onUnmounted(() => {
|
|
9770
9773
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9771
|
-
})
|
|
9772
|
-
const setValue = (Q, H) => {
|
|
9773
|
-
gridData.value.formConfig.formData[Q.toUpperCase()] = H;
|
|
9774
|
-
};
|
|
9775
|
-
return __expose({ gridReload, reload }), (Q, H) => {
|
|
9774
|
+
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
9776
9775
|
const G = resolveComponent("el-input"), X = resolveComponent("el-icon"), Z = resolveComponent("el-tooltip"), K = resolveComponent("el-button"), ee = resolveComponent("vxe-grid"), te = resolveComponent("cloud-upload"), ne = resolveComponent("el-upload"), re = resolveComponent("download-outline"), oe = resolveComponent("el-dialog");
|
|
9777
9776
|
return openBlock(), createElementBlock("div", _hoisted_1$kW, [
|
|
9778
9777
|
createElementVNode("div", {
|
|
@@ -9939,7 +9938,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
|
|
|
9939
9938
|
]);
|
|
9940
9939
|
};
|
|
9941
9940
|
}
|
|
9942
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
9941
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-f0f3f800"]]);
|
|
9943
9942
|
WindowGrid.name = "slw-window-grid";
|
|
9944
9943
|
WindowGrid.install = (Q) => {
|
|
9945
9944
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -105652,7 +105651,10 @@ function initVxeRenderer(Q, H, G) {
|
|
|
105652
105651
|
const {
|
|
105653
105652
|
data: le,
|
|
105654
105653
|
field: se
|
|
105655
|
-
} = ae
|
|
105654
|
+
} = ae;
|
|
105655
|
+
if (typeof le > "u")
|
|
105656
|
+
return;
|
|
105657
|
+
const {
|
|
105656
105658
|
props: ce,
|
|
105657
105659
|
attrs: de,
|
|
105658
105660
|
defaultValue: he
|
|
@@ -122220,7 +122222,7 @@ function reConsole() {
|
|
|
122220
122222
|
}
|
|
122221
122223
|
}
|
|
122222
122224
|
console.info(
|
|
122223
|
-
"%cSLW %cVer 0.5.
|
|
122225
|
+
"%cSLW %cVer 0.5.986",
|
|
122224
122226
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122225
122227
|
"color:#999;font-size: 12px"
|
|
122226
122228
|
);
|