slw 0.8.1 → 0.8.3
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 +26 -18
- package/lib/index.umd.cjs +7 -7
- 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_fee74758_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-fee74758"), 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 = [
|
|
@@ -8643,6 +8643,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScop
|
|
|
8643
8643
|
},
|
|
8644
8644
|
ajax: {
|
|
8645
8645
|
query: ({ page: H, sorts: X, filters: G, form: Z }, K) => {
|
|
8646
|
+
if (gridData.value.noSearchData) {
|
|
8647
|
+
delete gridData.value.noSearchData;
|
|
8648
|
+
return;
|
|
8649
|
+
}
|
|
8646
8650
|
if (K != null && K.clearGrid) {
|
|
8647
8651
|
for (let le in Z)
|
|
8648
8652
|
Z[le] = null;
|
|
@@ -10028,7 +10032,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScop
|
|
|
10028
10032
|
]);
|
|
10029
10033
|
};
|
|
10030
10034
|
}
|
|
10031
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10035
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-fee74758"]]);
|
|
10032
10036
|
WindowGrid.name = "slw-window-grid";
|
|
10033
10037
|
WindowGrid.install = (Q) => {
|
|
10034
10038
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -38865,7 +38869,7 @@ var js = js$1.exports;
|
|
|
38865
38869
|
})(Q);
|
|
38866
38870
|
})(js$1);
|
|
38867
38871
|
var jsExports = js$1.exports;
|
|
38868
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38872
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_34e379b0_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-34e379b0"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38869
38873
|
key: 0,
|
|
38870
38874
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38871
38875
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -38984,7 +38988,9 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38984
38988
|
return formConfig.value.columns.forEach((H) => {
|
|
38985
38989
|
H.editRender && H.editRender.props.readonlyLogic && (Q[H.field] = H);
|
|
38986
38990
|
}), Q;
|
|
38987
|
-
}), subQueryFields = computed(() => formConfig.value.columns.filter(
|
|
38991
|
+
}), subQueryFields = computed(() => formConfig.value.columns.filter(
|
|
38992
|
+
(Q) => Q.dataType === "SQL" && Q.displayForm
|
|
38993
|
+
)), computeSpan = computed(() => (Q) => Q.dataType === "EDITOR" || Q.dataType === "TEXT" ? 24 : Q.fwidth ? Number(Q.fwidth) > 24 ? 24 : Number(Q.fwidth) : 12), formRemoteSearchMap = computed(() => {
|
|
38988
38994
|
let Q = {};
|
|
38989
38995
|
return formConfig.value.columns.forEach((H) => {
|
|
38990
38996
|
H.remoteSearch && H.selectorId && (Q[H.id] = H);
|
|
@@ -39322,29 +39328,30 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39322
39328
|
}
|
|
39323
39329
|
}
|
|
39324
39330
|
}, onFieldChange = (Q) => {
|
|
39331
|
+
var G;
|
|
39325
39332
|
let H = Q.data[Q.property], X = {};
|
|
39326
39333
|
if (formSelectMap.value[Q.item.itemRender.props._field_id]) {
|
|
39327
39334
|
if (Q.item.itemRender.props.dataType === "TREE" && Q.item.itemRender.name === "ATreeSelect") {
|
|
39328
39335
|
if (Q.item.itemRender.props.treeData) {
|
|
39329
|
-
let
|
|
39336
|
+
let Z = Q.item.itemRender.props.treeData;
|
|
39330
39337
|
X = Object.assign(
|
|
39331
39338
|
{},
|
|
39332
|
-
getSelectedTreeDataOptionByValue(
|
|
39339
|
+
getSelectedTreeDataOptionByValue(Z, H)
|
|
39333
39340
|
), X.label = X.title;
|
|
39334
39341
|
}
|
|
39335
39342
|
} else if (formSelectMap.value[Q.item.itemRender.props._field_id].itemRender.options) {
|
|
39336
|
-
let
|
|
39337
|
-
for (let
|
|
39338
|
-
let
|
|
39339
|
-
if (
|
|
39340
|
-
X =
|
|
39343
|
+
let Z = formSelectMap.value[Q.item.itemRender.props._field_id].itemRender.options;
|
|
39344
|
+
for (let K = 0; K < Z.length; K++) {
|
|
39345
|
+
let ee = Z[K];
|
|
39346
|
+
if (ee.value === H) {
|
|
39347
|
+
X = ee;
|
|
39341
39348
|
break;
|
|
39342
39349
|
}
|
|
39343
39350
|
}
|
|
39344
39351
|
}
|
|
39345
39352
|
}
|
|
39346
|
-
evalEvent(Q.item.itemRender.props.changeFunction, H, X), readonlyLogic(), handleSelectTableField(Q.property), subQueryFields.value.forEach((
|
|
39347
|
-
getSubQueryData(Q.data._region_id,
|
|
39353
|
+
evalEvent(Q.item.itemRender.props.changeFunction, H, X), readonlyLogic(), handleSelectTableField(Q.property), (G = formConfig.value.params.sqlLogicListenField) != null && G.includes(Q.property) && subQueryFields.value.forEach((Z) => {
|
|
39354
|
+
getSubQueryData(Q.data._region_id, Z.id, Z.field);
|
|
39348
39355
|
});
|
|
39349
39356
|
}, getSubQueryData = (Q, H, X) => {
|
|
39350
39357
|
let G = {
|
|
@@ -39677,7 +39684,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39677
39684
|
]);
|
|
39678
39685
|
};
|
|
39679
39686
|
}
|
|
39680
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39687
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-34e379b0"]]);
|
|
39681
39688
|
WindowForm.name = "slw-window-form";
|
|
39682
39689
|
WindowForm.install = (Q) => {
|
|
39683
39690
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -40310,7 +40317,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40310
40317
|
_sfc_main$2.install = (Q) => {
|
|
40311
40318
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40312
40319
|
};
|
|
40313
|
-
const
|
|
40320
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_7185bce2_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-7185bce2"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40314
40321
|
__name: "window-index",
|
|
40315
40322
|
props: {
|
|
40316
40323
|
windowId: {
|
|
@@ -40887,6 +40894,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7d5db040_lang = "", _withSco
|
|
|
40887
40894
|
unitName: oe[se].unitName,
|
|
40888
40895
|
format: oe[se].format,
|
|
40889
40896
|
filterColumn: oe[se].filterColumn,
|
|
40897
|
+
sqlLogicListenField: oe[se].sqlLogicListenField,
|
|
40890
40898
|
newLine: oe[se].newLine,
|
|
40891
40899
|
_field_id: oe[se].id,
|
|
40892
40900
|
_select_id: oe[se].selectorId,
|
|
@@ -40906,7 +40914,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7d5db040_lang = "", _withSco
|
|
|
40906
40914
|
_select_id: oe[se].selectorId
|
|
40907
40915
|
}
|
|
40908
40916
|
];
|
|
40909
|
-
});
|
|
40917
|
+
}), oe[se].sqlLogicListenField && (G.params.sqlLogicListenField = oe[se].sqlLogicListenField.toUpperCase());
|
|
40910
40918
|
let pe = {}, fe = {
|
|
40911
40919
|
field: ce,
|
|
40912
40920
|
className: ce,
|
|
@@ -41437,7 +41445,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7d5db040_lang = "", _withSco
|
|
|
41437
41445
|
]);
|
|
41438
41446
|
};
|
|
41439
41447
|
}
|
|
41440
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41448
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7185bce2"]]);
|
|
41441
41449
|
WindowIndex.name = "slw-window-index";
|
|
41442
41450
|
WindowIndex.install = (Q) => {
|
|
41443
41451
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -124236,7 +124244,7 @@ function reConsole() {
|
|
|
124236
124244
|
}
|
|
124237
124245
|
}
|
|
124238
124246
|
console.info(
|
|
124239
|
-
"%cSLW %cVer 0.8.
|
|
124247
|
+
"%cSLW %cVer 0.8.3",
|
|
124240
124248
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124241
124249
|
"color:#999;font-size: 12px"
|
|
124242
124250
|
);
|