matrix_components 2.0.404 → 2.0.406
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.
|
@@ -54768,13 +54768,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54768
54768
|
},
|
|
54769
54769
|
setup(__props, { expose: __expose }) {
|
|
54770
54770
|
useCssVars((_ctx) => ({
|
|
54771
|
-
"
|
|
54772
|
-
"
|
|
54773
|
-
"
|
|
54774
|
-
"
|
|
54775
|
-
"
|
|
54776
|
-
"
|
|
54777
|
-
"
|
|
54771
|
+
"v361296b9": customBackgroundColor.value,
|
|
54772
|
+
"v99a9cfea": gapV.value,
|
|
54773
|
+
"v3e00473c": superLabelWidth.value,
|
|
54774
|
+
"v944bebb2": subLabelWidth.value,
|
|
54775
|
+
"d2a0d39c": height.value,
|
|
54776
|
+
"v30407ebd": labelWidth.value,
|
|
54777
|
+
"da179374": _ctx.$props.labelColor
|
|
54778
54778
|
}));
|
|
54779
54779
|
const props = __props;
|
|
54780
54780
|
const initialValues = ref$1(/* @__PURE__ */ new Map());
|
|
@@ -55227,7 +55227,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55227
55227
|
}
|
|
55228
55228
|
}
|
|
55229
55229
|
function getReadOnlyDisplayValue(rowInfo) {
|
|
55230
|
-
var _a3, _b, _c2, _d, _e, _f;
|
|
55230
|
+
var _a3, _b, _c2, _d, _e, _f, _g, _h2;
|
|
55231
55231
|
if (!props.readOnly) {
|
|
55232
55232
|
return rowInfo.value;
|
|
55233
55233
|
}
|
|
@@ -55236,11 +55236,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55236
55236
|
if (componentName.indexOf("cascader") !== -1) {
|
|
55237
55237
|
return getCascaderDisplayValue(rowInfo);
|
|
55238
55238
|
}
|
|
55239
|
-
|
|
55240
|
-
if (isSelectComponent) {
|
|
55239
|
+
if (componentName.indexOf("autocomplete") !== -1) {
|
|
55241
55240
|
const options = rowInfo.params.options;
|
|
55242
55241
|
const valueKey = ((_b = rowInfo.params.props) == null ? void 0 : _b.value) || "value";
|
|
55243
55242
|
const labelKey = ((_c2 = rowInfo.params.props) == null ? void 0 : _c2.label) || "label";
|
|
55243
|
+
const selectedOption = options.find((opt) => opt[valueKey] === rowInfo.value);
|
|
55244
|
+
return selectedOption ? selectedOption[labelKey] : rowInfo.value;
|
|
55245
|
+
}
|
|
55246
|
+
const isSelectComponent = componentName.indexOf("select") !== -1 || componentName.indexOf("radio") !== -1 || componentName.indexOf("checkbox") !== -1;
|
|
55247
|
+
if (isSelectComponent) {
|
|
55248
|
+
const options = rowInfo.params.options;
|
|
55249
|
+
const valueKey = ((_d = rowInfo.params.props) == null ? void 0 : _d.value) || "value";
|
|
55250
|
+
const labelKey = ((_e = rowInfo.params.props) == null ? void 0 : _e.label) || "label";
|
|
55244
55251
|
if (Array.isArray(rowInfo.value)) {
|
|
55245
55252
|
const selectedLabels = rowInfo.value.map((val) => {
|
|
55246
55253
|
const option = options.find((opt) => opt[valueKey] === val);
|
|
@@ -55254,13 +55261,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55254
55261
|
}
|
|
55255
55262
|
if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("switch") !== -1) {
|
|
55256
55263
|
if (rowInfo.value) {
|
|
55257
|
-
return ((
|
|
55264
|
+
return ((_f = rowInfo.params) == null ? void 0 : _f["active-text"]) || "启用";
|
|
55258
55265
|
} else {
|
|
55259
|
-
return ((
|
|
55266
|
+
return ((_g = rowInfo.params) == null ? void 0 : _g["inactive-text"]) || "禁用";
|
|
55260
55267
|
}
|
|
55261
55268
|
}
|
|
55262
55269
|
if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("rate") !== -1) {
|
|
55263
|
-
const max2 = ((
|
|
55270
|
+
const max2 = ((_h2 = rowInfo.params) == null ? void 0 : _h2.max) || 5;
|
|
55264
55271
|
return `${rowInfo.value || 0}/${max2}`;
|
|
55265
55272
|
}
|
|
55266
55273
|
if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("slider") !== -1) {
|
|
@@ -55654,7 +55661,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55654
55661
|
};
|
|
55655
55662
|
}
|
|
55656
55663
|
});
|
|
55657
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55664
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f3bf8309"]]);
|
|
55658
55665
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55659
55666
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55660
55667
|
const _hoisted_3 = { class: "title-text" };
|
|
@@ -92196,6 +92203,7 @@ export {
|
|
|
92196
92203
|
get,
|
|
92197
92204
|
getAllFormKvData,
|
|
92198
92205
|
getAllFormNodeByKey,
|
|
92206
|
+
getAllFormNodeRefByKey,
|
|
92199
92207
|
getEncryptSm2,
|
|
92200
92208
|
getTokenInfo,
|
|
92201
92209
|
handleHeaderCellClass,
|