slw 0.5.989 → 0.5.991
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 -13
- package/lib/index.umd.cjs +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -37248,7 +37248,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37248
37248
|
setData(Q);
|
|
37249
37249
|
}, setValue = async (Q, H) => {
|
|
37250
37250
|
let G = formConfig.value.columns.filter((X) => X.field == Q.toUpperCase())[0];
|
|
37251
|
-
G.remoteSearch ? (G.itemRender.options = await remoteMethod(
|
|
37251
|
+
G != null && G.remoteSearch ? (G.itemRender.options = await remoteMethod(
|
|
37252
37252
|
H,
|
|
37253
37253
|
G.id,
|
|
37254
37254
|
G.selectorId
|
|
@@ -37371,14 +37371,18 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37371
37371
|
Z.itemRender.props.loading = !1;
|
|
37372
37372
|
}
|
|
37373
37373
|
});
|
|
37374
|
-
else if (formConfig.value.openType === "new" && Z.visible && Z.editRender.options && Z.editRender.options.length > 0
|
|
37375
|
-
Q[Z.field]
|
|
37376
|
-
|
|
37377
|
-
|
|
37378
|
-
|
|
37379
|
-
|
|
37380
|
-
|
|
37381
|
-
|
|
37374
|
+
else if (formConfig.value.openType === "new" && Z.visible && Z.editRender.options && Z.editRender.options.length > 0) {
|
|
37375
|
+
if (Q[Z.field] === "null")
|
|
37376
|
+
Q[Z.field] = "";
|
|
37377
|
+
else if (!Q[Z.field]) {
|
|
37378
|
+
Q[Z.field] = Z.editRender.options[0].VALUE;
|
|
37379
|
+
let K = {
|
|
37380
|
+
data: Q,
|
|
37381
|
+
item: Z,
|
|
37382
|
+
property: Z.field
|
|
37383
|
+
};
|
|
37384
|
+
onFieldChange(K);
|
|
37385
|
+
}
|
|
37382
37386
|
}
|
|
37383
37387
|
}
|
|
37384
37388
|
}
|
|
@@ -38377,7 +38381,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
38377
38381
|
_sfc_main$2.install = (Q) => {
|
|
38378
38382
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
38379
38383
|
};
|
|
38380
|
-
const
|
|
38384
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_9f348366_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-9f348366"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
38381
38385
|
__name: "window-index",
|
|
38382
38386
|
props: {
|
|
38383
38387
|
windowId: {
|
|
@@ -38727,7 +38731,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_3dd8bca2_lang = "", _withSco
|
|
|
38727
38731
|
visible: !K[se].hide,
|
|
38728
38732
|
folding: se > 2,
|
|
38729
38733
|
events: {},
|
|
38730
|
-
canScan: K[se].canScan
|
|
38734
|
+
canScan: K[se].canScan
|
|
38731
38735
|
// 支持扫码
|
|
38732
38736
|
};
|
|
38733
38737
|
switch (K[se].dataType) {
|
|
@@ -39483,7 +39487,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_3dd8bca2_lang = "", _withSco
|
|
|
39483
39487
|
]);
|
|
39484
39488
|
};
|
|
39485
39489
|
}
|
|
39486
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
39490
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-9f348366"]]);
|
|
39487
39491
|
WindowIndex.name = "slw-window-index";
|
|
39488
39492
|
WindowIndex.install = (Q) => {
|
|
39489
39493
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -122250,7 +122254,7 @@ function reConsole() {
|
|
|
122250
122254
|
}
|
|
122251
122255
|
}
|
|
122252
122256
|
console.info(
|
|
122253
|
-
"%cSLW %cVer 0.5.
|
|
122257
|
+
"%cSLW %cVer 0.5.991",
|
|
122254
122258
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122255
122259
|
"color:#999;font-size: 12px"
|
|
122256
122260
|
);
|