slw 0.8.4 → 0.8.42
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 +35 -21
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -38875,7 +38875,7 @@ var js = js$1.exports;
|
|
|
38875
38875
|
})(Q);
|
|
38876
38876
|
})(js$1);
|
|
38877
38877
|
var jsExports = js$1.exports;
|
|
38878
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38878
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_cabeb728_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-cabeb728"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38879
38879
|
key: 0,
|
|
38880
38880
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38881
38881
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -39005,6 +39005,9 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39005
39005
|
var H;
|
|
39006
39006
|
if (formConfig.value.openType === "view" && ((H = Q.itemRender) == null ? void 0 : H.name) !== "ElInput")
|
|
39007
39007
|
return "item-readonly";
|
|
39008
|
+
}), computeItemTitle = computed(() => (Q) => {
|
|
39009
|
+
const H = Q.match(/([^()]+)\(/);
|
|
39010
|
+
return $T(H ? H[1] : Q);
|
|
39008
39011
|
});
|
|
39009
39012
|
onMounted(async () => {
|
|
39010
39013
|
var H, X, G;
|
|
@@ -39552,7 +39555,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39552
39555
|
ne.colType !== "showInGrid" ? (openBlock(), createBlock(G, {
|
|
39553
39556
|
key: 0,
|
|
39554
39557
|
field: ne.field,
|
|
39555
|
-
title:
|
|
39558
|
+
title: computeItemTitle.value(ne.title),
|
|
39556
39559
|
"title-overflow": "tooltip",
|
|
39557
39560
|
span: computeSpan.value(ne),
|
|
39558
39561
|
"item-render": ne.itemRender,
|
|
@@ -39690,7 +39693,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39690
39693
|
]);
|
|
39691
39694
|
};
|
|
39692
39695
|
}
|
|
39693
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39696
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cabeb728"]]);
|
|
39694
39697
|
WindowForm.name = "slw-window-form";
|
|
39695
39698
|
WindowForm.install = (Q) => {
|
|
39696
39699
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -107757,23 +107760,34 @@ function initVxeRenderer(Q, H, X) {
|
|
|
107757
107760
|
renderItemContent(ae, le) {
|
|
107758
107761
|
const {
|
|
107759
107762
|
data: se,
|
|
107760
|
-
field: ce
|
|
107761
|
-
|
|
107762
|
-
|
|
107763
|
-
|
|
107764
|
-
|
|
107765
|
-
|
|
107766
|
-
|
|
107767
|
-
|
|
107768
|
-
|
|
107769
|
-
|
|
107770
|
-
|
|
107771
|
-
|
|
107772
|
-
|
|
107773
|
-
|
|
107774
|
-
|
|
107775
|
-
|
|
107776
|
-
|
|
107763
|
+
field: ce,
|
|
107764
|
+
item: de
|
|
107765
|
+
} = le, he = ae.props || {}, ue = ae.events || {};
|
|
107766
|
+
if (he.dataType == "DOUBLE" || he.dataType == "LONG" || he.dataType == "PLONG") {
|
|
107767
|
+
let pe = {
|
|
107768
|
+
data: se,
|
|
107769
|
+
item: de,
|
|
107770
|
+
property: le.field
|
|
107771
|
+
};
|
|
107772
|
+
return [createVNode(resolveComponent("ElInputNumber"), mergeProps$1({
|
|
107773
|
+
modelValue: se[ce],
|
|
107774
|
+
"onUpdate:modelValue": (fe) => se[ce] = fe
|
|
107775
|
+
}, he, {
|
|
107776
|
+
onChange: ue.change(pe)
|
|
107777
|
+
}), {
|
|
107778
|
+
default: () => [createTextVNode("~")]
|
|
107779
|
+
}), createVNode("span", {
|
|
107780
|
+
style: "font-size: 12px;padding-left: 4px;"
|
|
107781
|
+
}, [X(he.unitName)])];
|
|
107782
|
+
} else
|
|
107783
|
+
return [createVNode(resolveComponent("vxe-input"), mergeProps$1({
|
|
107784
|
+
modelValue: se[ce],
|
|
107785
|
+
"onUpdate:modelValue": (pe) => se[ce] = pe
|
|
107786
|
+
}, he, {
|
|
107787
|
+
style: "width:80%;padding-right: 4px;"
|
|
107788
|
+
}), {
|
|
107789
|
+
default: () => [createTextVNode("~")]
|
|
107790
|
+
}), createVNode("span", null, [X(he.unitName)])];
|
|
107777
107791
|
}
|
|
107778
107792
|
// renderCell(renderOpts, params) {
|
|
107779
107793
|
// if (params.row[params.column.field]) {
|
|
@@ -124250,7 +124264,7 @@ function reConsole() {
|
|
|
124250
124264
|
}
|
|
124251
124265
|
}
|
|
124252
124266
|
console.info(
|
|
124253
|
-
"%cSLW %cVer 0.8.
|
|
124267
|
+
"%cSLW %cVer 0.8.42",
|
|
124254
124268
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124255
124269
|
"color:#999;font-size: 12px"
|
|
124256
124270
|
);
|