slw 0.8.1 → 0.8.2
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 +20 -16
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -38865,7 +38865,7 @@ var js = js$1.exports;
|
|
|
38865
38865
|
})(Q);
|
|
38866
38866
|
})(js$1);
|
|
38867
38867
|
var jsExports = js$1.exports;
|
|
38868
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38868
|
+
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
38869
|
key: 0,
|
|
38870
38870
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38871
38871
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -38984,7 +38984,9 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38984
38984
|
return formConfig.value.columns.forEach((H) => {
|
|
38985
38985
|
H.editRender && H.editRender.props.readonlyLogic && (Q[H.field] = H);
|
|
38986
38986
|
}), Q;
|
|
38987
|
-
}), subQueryFields = computed(() => formConfig.value.columns.filter(
|
|
38987
|
+
}), subQueryFields = computed(() => formConfig.value.columns.filter(
|
|
38988
|
+
(Q) => Q.dataType === "SQL" && Q.displayForm
|
|
38989
|
+
)), computeSpan = computed(() => (Q) => Q.dataType === "EDITOR" || Q.dataType === "TEXT" ? 24 : Q.fwidth ? Number(Q.fwidth) > 24 ? 24 : Number(Q.fwidth) : 12), formRemoteSearchMap = computed(() => {
|
|
38988
38990
|
let Q = {};
|
|
38989
38991
|
return formConfig.value.columns.forEach((H) => {
|
|
38990
38992
|
H.remoteSearch && H.selectorId && (Q[H.id] = H);
|
|
@@ -39322,29 +39324,30 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39322
39324
|
}
|
|
39323
39325
|
}
|
|
39324
39326
|
}, onFieldChange = (Q) => {
|
|
39327
|
+
var G;
|
|
39325
39328
|
let H = Q.data[Q.property], X = {};
|
|
39326
39329
|
if (formSelectMap.value[Q.item.itemRender.props._field_id]) {
|
|
39327
39330
|
if (Q.item.itemRender.props.dataType === "TREE" && Q.item.itemRender.name === "ATreeSelect") {
|
|
39328
39331
|
if (Q.item.itemRender.props.treeData) {
|
|
39329
|
-
let
|
|
39332
|
+
let Z = Q.item.itemRender.props.treeData;
|
|
39330
39333
|
X = Object.assign(
|
|
39331
39334
|
{},
|
|
39332
|
-
getSelectedTreeDataOptionByValue(
|
|
39335
|
+
getSelectedTreeDataOptionByValue(Z, H)
|
|
39333
39336
|
), X.label = X.title;
|
|
39334
39337
|
}
|
|
39335
39338
|
} else if (formSelectMap.value[Q.item.itemRender.props._field_id].itemRender.options) {
|
|
39336
|
-
let
|
|
39337
|
-
for (let
|
|
39338
|
-
let
|
|
39339
|
-
if (
|
|
39340
|
-
X =
|
|
39339
|
+
let Z = formSelectMap.value[Q.item.itemRender.props._field_id].itemRender.options;
|
|
39340
|
+
for (let K = 0; K < Z.length; K++) {
|
|
39341
|
+
let ee = Z[K];
|
|
39342
|
+
if (ee.value === H) {
|
|
39343
|
+
X = ee;
|
|
39341
39344
|
break;
|
|
39342
39345
|
}
|
|
39343
39346
|
}
|
|
39344
39347
|
}
|
|
39345
39348
|
}
|
|
39346
|
-
evalEvent(Q.item.itemRender.props.changeFunction, H, X), readonlyLogic(), handleSelectTableField(Q.property), subQueryFields.value.forEach((
|
|
39347
|
-
getSubQueryData(Q.data._region_id,
|
|
39349
|
+
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) => {
|
|
39350
|
+
getSubQueryData(Q.data._region_id, Z.id, Z.field);
|
|
39348
39351
|
});
|
|
39349
39352
|
}, getSubQueryData = (Q, H, X) => {
|
|
39350
39353
|
let G = {
|
|
@@ -39677,7 +39680,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39677
39680
|
]);
|
|
39678
39681
|
};
|
|
39679
39682
|
}
|
|
39680
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39683
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-34e379b0"]]);
|
|
39681
39684
|
WindowForm.name = "slw-window-form";
|
|
39682
39685
|
WindowForm.install = (Q) => {
|
|
39683
39686
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -40310,7 +40313,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40310
40313
|
_sfc_main$2.install = (Q) => {
|
|
40311
40314
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40312
40315
|
};
|
|
40313
|
-
const
|
|
40316
|
+
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
40317
|
__name: "window-index",
|
|
40315
40318
|
props: {
|
|
40316
40319
|
windowId: {
|
|
@@ -40887,6 +40890,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7d5db040_lang = "", _withSco
|
|
|
40887
40890
|
unitName: oe[se].unitName,
|
|
40888
40891
|
format: oe[se].format,
|
|
40889
40892
|
filterColumn: oe[se].filterColumn,
|
|
40893
|
+
sqlLogicListenField: oe[se].sqlLogicListenField,
|
|
40890
40894
|
newLine: oe[se].newLine,
|
|
40891
40895
|
_field_id: oe[se].id,
|
|
40892
40896
|
_select_id: oe[se].selectorId,
|
|
@@ -40906,7 +40910,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7d5db040_lang = "", _withSco
|
|
|
40906
40910
|
_select_id: oe[se].selectorId
|
|
40907
40911
|
}
|
|
40908
40912
|
];
|
|
40909
|
-
});
|
|
40913
|
+
}), oe[se].sqlLogicListenField && (G.params.sqlLogicListenField = oe[se].sqlLogicListenField.toUpperCase());
|
|
40910
40914
|
let pe = {}, fe = {
|
|
40911
40915
|
field: ce,
|
|
40912
40916
|
className: ce,
|
|
@@ -41437,7 +41441,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7d5db040_lang = "", _withSco
|
|
|
41437
41441
|
]);
|
|
41438
41442
|
};
|
|
41439
41443
|
}
|
|
41440
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41444
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7185bce2"]]);
|
|
41441
41445
|
WindowIndex.name = "slw-window-index";
|
|
41442
41446
|
WindowIndex.install = (Q) => {
|
|
41443
41447
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -124236,7 +124240,7 @@ function reConsole() {
|
|
|
124236
124240
|
}
|
|
124237
124241
|
}
|
|
124238
124242
|
console.info(
|
|
124239
|
-
"%cSLW %cVer 0.8.
|
|
124243
|
+
"%cSLW %cVer 0.8.2",
|
|
124240
124244
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124241
124245
|
"color:#999;font-size: 12px"
|
|
124242
124246
|
);
|