slw 0.5.999 → 0.6.1
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 +62 -47
- package/lib/index.umd.cjs +5 -5
- 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_588d3ee7_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-588d3ee7"), 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 = [
|
|
@@ -9729,36 +9729,40 @@ const windowGrid_vue_vue_type_style_index_0_scoped_1e029ec8_lang = "", _withScop
|
|
|
9729
9729
|
G && (G.itemRender.defaultValue = H);
|
|
9730
9730
|
}, setFormSelectOption = (Q, H, G = []) => {
|
|
9731
9731
|
let X = getCurRegion();
|
|
9732
|
-
Q && (X = getRegion(Q))
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9732
|
+
if (Q && (X = getRegion(Q)), X) {
|
|
9733
|
+
let Z = X.formConfig.items.filter(
|
|
9734
|
+
(K) => K.field == H
|
|
9735
|
+
)[0];
|
|
9736
|
+
Z && (Z.itemRender.options = G);
|
|
9737
|
+
}
|
|
9737
9738
|
}, getFormSelectOption = async (Q, H) => {
|
|
9738
9739
|
let G = getCurRegion();
|
|
9739
9740
|
Q && (G = getRegion(Q));
|
|
9740
|
-
let X =
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9741
|
+
let X = [];
|
|
9742
|
+
if (G) {
|
|
9743
|
+
let Z = G.formConfig.items.filter(
|
|
9744
|
+
(K) => K.field == H
|
|
9745
|
+
)[0];
|
|
9746
|
+
if (Z.querys) {
|
|
9747
|
+
const K = await axios.post(
|
|
9748
|
+
"/window/selector",
|
|
9749
|
+
$qs.stringify({
|
|
9750
|
+
_region_id: G.params._region_id,
|
|
9751
|
+
_field_id: Z.querys.id,
|
|
9752
|
+
_select_id: Z.querys.selectorId
|
|
9753
|
+
})
|
|
9754
|
+
);
|
|
9755
|
+
K.data.result && K.data.data && (X = K.data.data.map((ee) => Object.assign(
|
|
9756
|
+
{
|
|
9757
|
+
value: ee.VALUE,
|
|
9758
|
+
label: ee.NAME
|
|
9759
|
+
},
|
|
9760
|
+
ee
|
|
9761
|
+
)));
|
|
9762
|
+
} else
|
|
9763
|
+
X = Z.itemRender.options;
|
|
9764
|
+
}
|
|
9765
|
+
return X;
|
|
9762
9766
|
}, footerSum = (Q) => {
|
|
9763
9767
|
const H = (X, Z) => {
|
|
9764
9768
|
let K = 0;
|
|
@@ -9769,6 +9773,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_1e029ec8_lang = "", _withScop
|
|
|
9769
9773
|
X.map((K, ee) => ee === 2 ? "和值" : Q.includes(K.field) ? H(Z, K.field) : "")
|
|
9770
9774
|
];
|
|
9771
9775
|
gridData.value.showFooter = !0, gridData.value.footerMethod = G;
|
|
9776
|
+
}, setColumnFixed = (Q, H = "left") => {
|
|
9777
|
+
let G = getCurRegion();
|
|
9778
|
+
if (G) {
|
|
9779
|
+
let X = G.columns.filter(
|
|
9780
|
+
(Z) => Z.field == Q.toUpperCase()
|
|
9781
|
+
)[0];
|
|
9782
|
+
X.fixed = H;
|
|
9783
|
+
}
|
|
9772
9784
|
};
|
|
9773
9785
|
return onMounted(async () => {
|
|
9774
9786
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -9840,7 +9852,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_1e029ec8_lang = "", _withScop
|
|
|
9840
9852
|
search(Q);
|
|
9841
9853
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
9842
9854
|
setChecked(Q);
|
|
9843
|
-
}, 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();
|
|
9855
|
+
}, 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(), curRegion.value.setColumnFixed = () => setColumnFixed();
|
|
9844
9856
|
}), onUnmounted(() => {
|
|
9845
9857
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9846
9858
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -10010,7 +10022,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_1e029ec8_lang = "", _withScop
|
|
|
10010
10022
|
]);
|
|
10011
10023
|
};
|
|
10012
10024
|
}
|
|
10013
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10025
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-588d3ee7"]]);
|
|
10014
10026
|
WindowGrid.name = "slw-window-grid";
|
|
10015
10027
|
WindowGrid.install = (Q) => {
|
|
10016
10028
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -37044,7 +37056,7 @@ const pseudoClasses = /* @__PURE__ */ [
|
|
|
37044
37056
|
function css$1() {
|
|
37045
37057
|
return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
|
|
37046
37058
|
}
|
|
37047
|
-
const
|
|
37059
|
+
const windowForm_vue_vue_type_style_index_0_scoped_a12a6513_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a12a6513"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
37048
37060
|
key: 0,
|
|
37049
37061
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
37050
37062
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -37145,15 +37157,13 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37145
37157
|
}
|
|
37146
37158
|
}
|
|
37147
37159
|
return Q;
|
|
37148
|
-
}), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter(
|
|
37149
|
-
|
|
37150
|
-
|
|
37151
|
-
|
|
37152
|
-
|
|
37153
|
-
|
|
37154
|
-
|
|
37155
|
-
}
|
|
37156
|
-
)), formSelectMap = computed(() => {
|
|
37160
|
+
}), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter((Q) => {
|
|
37161
|
+
let H = !0;
|
|
37162
|
+
return Q.displayLogic && (H = displayLogic(Q.displayLogic, {
|
|
37163
|
+
...formData.value,
|
|
37164
|
+
...assembleParentData()
|
|
37165
|
+
})), typeof Q.code < "u" && Q.type != "EDIT" && Q.type != "DELETE" && Q.type != "NEW" && !(uploadConfig.value.isHaveImgField && Q.type == "PIC_UPLOAD") && H;
|
|
37166
|
+
})), formSelectMap = computed(() => {
|
|
37157
37167
|
let Q = {};
|
|
37158
37168
|
return formConfig.value.columns.forEach((H) => {
|
|
37159
37169
|
H.itemRender && H.itemRender.props._select_id && (Q[H.id] = H);
|
|
@@ -37303,7 +37313,9 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37303
37313
|
}, setInitData = (Q) => {
|
|
37304
37314
|
setData(Q);
|
|
37305
37315
|
}, setValue = async (Q, H) => {
|
|
37306
|
-
let G = formConfig.value.columns.filter(
|
|
37316
|
+
let G = formConfig.value.columns.filter(
|
|
37317
|
+
(X) => X.field == Q.toUpperCase()
|
|
37318
|
+
)[0];
|
|
37307
37319
|
G != null && G.remoteSearch ? (G.itemRender.options = await remoteMethod(
|
|
37308
37320
|
H,
|
|
37309
37321
|
G.id,
|
|
@@ -37454,10 +37466,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37454
37466
|
_select_id: G
|
|
37455
37467
|
};
|
|
37456
37468
|
K[X] = Q;
|
|
37457
|
-
let ee = await axios.post(
|
|
37458
|
-
"/window/selector",
|
|
37459
|
-
$qs.stringify(K)
|
|
37460
|
-
);
|
|
37469
|
+
let ee = await axios.post("/window/selector", $qs.stringify(K));
|
|
37461
37470
|
if (ee.data.result && ee.data.data)
|
|
37462
37471
|
return Z = ee.data.data.map((te) => Object.assign(
|
|
37463
37472
|
{
|
|
@@ -37653,6 +37662,12 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37653
37662
|
var X;
|
|
37654
37663
|
(X = G == null ? void 0 : G.data) != null && X.result || $message.error(G.msg);
|
|
37655
37664
|
});
|
|
37665
|
+
}, setFormSelectOption = (Q, H = []) => {
|
|
37666
|
+
let G = formConfig.value.columns.filter(
|
|
37667
|
+
(X) => X.field == Q.toUpperCase()
|
|
37668
|
+
)[0];
|
|
37669
|
+
G && (G.itemRender.options = H);
|
|
37670
|
+
}, footerSum = () => {
|
|
37656
37671
|
}, throwFunction = (Q) => {
|
|
37657
37672
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G);
|
|
37658
37673
|
};
|
|
@@ -37814,7 +37829,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37814
37829
|
]);
|
|
37815
37830
|
};
|
|
37816
37831
|
}
|
|
37817
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
37832
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a12a6513"]]);
|
|
37818
37833
|
WindowForm.name = "slw-window-form";
|
|
37819
37834
|
WindowForm.install = (Q) => {
|
|
37820
37835
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -122332,7 +122347,7 @@ function reConsole() {
|
|
|
122332
122347
|
}
|
|
122333
122348
|
}
|
|
122334
122349
|
console.info(
|
|
122335
|
-
"%cSLW %cVer 0.
|
|
122350
|
+
"%cSLW %cVer 0.6.1",
|
|
122336
122351
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122337
122352
|
"color:#999;font-size: 12px"
|
|
122338
122353
|
);
|