slw 0.5.993 → 0.5.995
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 +32 -4
- package/lib/index.umd.cjs +3 -3
- 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_e45797c7_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-e45797c7"), 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$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$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -9719,6 +9719,34 @@ const windowGrid_vue_vue_type_style_index_0_scoped_0eb504fd_lang = "", _withScop
|
|
|
9719
9719
|
}, setFormValue = (Q, H) => {
|
|
9720
9720
|
let G = gridData.value.formConfig.items.filter((X) => X.field == Q)[0];
|
|
9721
9721
|
G && (G.itemRender.defaultValue = H);
|
|
9722
|
+
}, setFormSelectOption = (Q, H, G = []) => {
|
|
9723
|
+
let X = getCurRegion();
|
|
9724
|
+
Q && (X = getRegion(Q));
|
|
9725
|
+
let Z = X.formConfig.items.filter((K) => K.field == H)[0];
|
|
9726
|
+
Z && (Z.itemRender.options = G);
|
|
9727
|
+
}, getFormSelectOption = async (Q, H) => {
|
|
9728
|
+
let G = getCurRegion();
|
|
9729
|
+
Q && (G = getRegion(Q));
|
|
9730
|
+
let X = G.formConfig.items.filter((K) => K.field == H)[0], Z = [];
|
|
9731
|
+
if (X.querys) {
|
|
9732
|
+
const K = await axios.post(
|
|
9733
|
+
"/window/selector",
|
|
9734
|
+
$qs.stringify({
|
|
9735
|
+
_region_id: G.params._region_id,
|
|
9736
|
+
_field_id: X.querys.id,
|
|
9737
|
+
_select_id: X.querys.selectorId
|
|
9738
|
+
})
|
|
9739
|
+
);
|
|
9740
|
+
K.data.result && K.data.data && (Z = K.data.data.map((ee) => Object.assign(
|
|
9741
|
+
{
|
|
9742
|
+
value: ee.VALUE,
|
|
9743
|
+
label: ee.NAME
|
|
9744
|
+
},
|
|
9745
|
+
ee
|
|
9746
|
+
)));
|
|
9747
|
+
} else
|
|
9748
|
+
Z = X.itemRender.options;
|
|
9749
|
+
return Z;
|
|
9722
9750
|
};
|
|
9723
9751
|
return onMounted(async () => {
|
|
9724
9752
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -9790,7 +9818,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_0eb504fd_lang = "", _withScop
|
|
|
9790
9818
|
search(Q);
|
|
9791
9819
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
9792
9820
|
setChecked(Q);
|
|
9793
|
-
}, 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(), curRegion.value.setRowCellColor = () => setRowCellColor();
|
|
9821
|
+
}, 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(), curRegion.value.setRowCellColor = () => setRowCellColor(), curRegion.value.setFormSelectOption = () => setFormSelectOption(), curRegion.value.getFormSelectOption = () => getFormSelectOption();
|
|
9794
9822
|
}), onUnmounted(() => {
|
|
9795
9823
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9796
9824
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -9960,7 +9988,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_0eb504fd_lang = "", _withScop
|
|
|
9960
9988
|
]);
|
|
9961
9989
|
};
|
|
9962
9990
|
}
|
|
9963
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
9991
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e45797c7"]]);
|
|
9964
9992
|
WindowGrid.name = "slw-window-grid";
|
|
9965
9993
|
WindowGrid.install = (Q) => {
|
|
9966
9994
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -122258,7 +122286,7 @@ function reConsole() {
|
|
|
122258
122286
|
}
|
|
122259
122287
|
}
|
|
122260
122288
|
console.info(
|
|
122261
|
-
"%cSLW %cVer 0.5.
|
|
122289
|
+
"%cSLW %cVer 0.5.995",
|
|
122262
122290
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122263
122291
|
"color:#999;font-size: 12px"
|
|
122264
122292
|
);
|