matrix_components 2.0.406 → 2.0.407
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
|
+
"a4ad2066": customBackgroundColor.value,
|
|
54772
|
+
"v25792477": gapV.value,
|
|
54773
|
+
"v24a41476": superLabelWidth.value,
|
|
54774
|
+
"v7b95373b": subLabelWidth.value,
|
|
54775
|
+
"a4a790c4": height.value,
|
|
54776
|
+
"v4bf68a29": labelWidth.value,
|
|
54777
|
+
"v7e6ab95a": _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;
|
|
55231
55231
|
if (!props.readOnly) {
|
|
55232
55232
|
return rowInfo.value;
|
|
55233
55233
|
}
|
|
@@ -55236,18 +55236,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55236
55236
|
if (componentName.indexOf("cascader") !== -1) {
|
|
55237
55237
|
return getCascaderDisplayValue(rowInfo);
|
|
55238
55238
|
}
|
|
55239
|
-
if (componentName.indexOf("autocomplete") !== -1) {
|
|
55240
|
-
const options = rowInfo.params.options;
|
|
55241
|
-
const valueKey = ((_b = rowInfo.params.props) == null ? void 0 : _b.value) || "value";
|
|
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
55239
|
const isSelectComponent = componentName.indexOf("select") !== -1 || componentName.indexOf("radio") !== -1 || componentName.indexOf("checkbox") !== -1;
|
|
55247
55240
|
if (isSelectComponent) {
|
|
55248
55241
|
const options = rowInfo.params.options;
|
|
55249
|
-
const valueKey = ((
|
|
55250
|
-
const labelKey = ((
|
|
55242
|
+
const valueKey = ((_b = rowInfo.params.props) == null ? void 0 : _b.value) || "value";
|
|
55243
|
+
const labelKey = ((_c2 = rowInfo.params.props) == null ? void 0 : _c2.label) || "label";
|
|
55251
55244
|
if (Array.isArray(rowInfo.value)) {
|
|
55252
55245
|
const selectedLabels = rowInfo.value.map((val) => {
|
|
55253
55246
|
const option = options.find((opt) => opt[valueKey] === val);
|
|
@@ -55261,13 +55254,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55261
55254
|
}
|
|
55262
55255
|
if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("switch") !== -1) {
|
|
55263
55256
|
if (rowInfo.value) {
|
|
55264
|
-
return ((
|
|
55257
|
+
return ((_d = rowInfo.params) == null ? void 0 : _d["active-text"]) || "启用";
|
|
55265
55258
|
} else {
|
|
55266
|
-
return ((
|
|
55259
|
+
return ((_e = rowInfo.params) == null ? void 0 : _e["inactive-text"]) || "禁用";
|
|
55267
55260
|
}
|
|
55268
55261
|
}
|
|
55269
55262
|
if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("rate") !== -1) {
|
|
55270
|
-
const max2 = ((
|
|
55263
|
+
const max2 = ((_f = rowInfo.params) == null ? void 0 : _f.max) || 5;
|
|
55271
55264
|
return `${rowInfo.value || 0}/${max2}`;
|
|
55272
55265
|
}
|
|
55273
55266
|
if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("slider") !== -1) {
|
|
@@ -55661,7 +55654,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55661
55654
|
};
|
|
55662
55655
|
}
|
|
55663
55656
|
});
|
|
55664
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55657
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-fbb893d9"]]);
|
|
55665
55658
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55666
55659
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55667
55660
|
const _hoisted_3 = { class: "title-text" };
|