matrix_components 2.0.386 → 2.0.387

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
- "v68e72f26": customBackgroundColor.value,
54772
- "v5e1757d7": gapV.value,
54773
- "v43d60516": superLabelWidth.value,
54774
- "v51cacfdb": subLabelWidth.value,
54775
- "v378b12fe": height.value,
54776
- "v6b8e94ee": labelWidth.value,
54777
- "ce39fc0c": _ctx.$props.labelColor
54771
+ "d86e963a": customBackgroundColor.value,
54772
+ "v29bb78a1": gapV.value,
54773
+ "v5eeb3be8": superLabelWidth.value,
54774
+ "v4ebdf251": subLabelWidth.value,
54775
+ "aaabad70": height.value,
54776
+ "v6020d25a": labelWidth.value,
54777
+ "v6c180d20": _ctx.$props.labelColor
54778
54778
  }));
54779
54779
  const props = __props;
54780
54780
  const initialValues = ref$1(/* @__PURE__ */ new Map());
@@ -55211,7 +55211,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55211
55211
  }
55212
55212
  }
55213
55213
  function getReadOnlyDisplayValue(rowInfo) {
55214
- var _a3, _b, _c2;
55214
+ var _a3, _b, _c2, _d, _e, _f;
55215
55215
  if (!props.readOnly) {
55216
55216
  return rowInfo.value;
55217
55217
  }
@@ -55236,6 +55236,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55236
55236
  return selectedOption ? selectedOption[labelKey] : rowInfo.value;
55237
55237
  }
55238
55238
  }
55239
+ if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("switch") !== -1) {
55240
+ if (rowInfo.value) {
55241
+ return ((_d = rowInfo.params) == null ? void 0 : _d["active-text"]) || "启用";
55242
+ } else {
55243
+ return ((_e = rowInfo.params) == null ? void 0 : _e["inactive-text"]) || "禁用";
55244
+ }
55245
+ }
55246
+ if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("rate") !== -1) {
55247
+ const max2 = ((_f = rowInfo.params) == null ? void 0 : _f.max) || 5;
55248
+ return `${rowInfo.value || 0}/${max2}`;
55249
+ }
55250
+ if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("slider") !== -1) {
55251
+ if (Array.isArray(rowInfo.value)) {
55252
+ return `${rowInfo.value[0]} - ${rowInfo.value[1]}`;
55253
+ }
55254
+ return rowInfo.value || 0;
55255
+ }
55256
+ if (rowInfo.component && rowInfo.component.name && (rowInfo.component.name + "").toLowerCase().indexOf("colorpicker") !== -1) {
55257
+ return rowInfo.value || "";
55258
+ }
55239
55259
  return rowInfo.value;
55240
55260
  }
55241
55261
  const getComponentValue = computed(() => {
@@ -55574,7 +55594,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55574
55594
  };
55575
55595
  }
55576
55596
  });
55577
- const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e87f3ad5"]]);
55597
+ const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-99d9d615"]]);
55578
55598
  const _hoisted_1$1 = { class: "title-image-view" };
55579
55599
  const _hoisted_2 = { class: "content-model-title" };
55580
55600
  const _hoisted_3 = { class: "title-text" };