matrix_components 2.0.377 → 2.0.379

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.
@@ -54753,13 +54753,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54753
54753
  },
54754
54754
  setup(__props, { expose: __expose }) {
54755
54755
  useCssVars((_ctx) => ({
54756
- "v0e1b23a4": customBackgroundColor.value,
54757
- "v4ce19814": gapV.value,
54758
- "v609faf97": superLabelWidth.value,
54759
- "v7e4f269c": subLabelWidth.value,
54760
- "v97073946": height.value,
54761
- "v59868330": labelWidth.value,
54762
- "ac27df8a": _ctx.$props.labelColor
54756
+ "v8d5b15f6": customBackgroundColor.value,
54757
+ "v37a1af82": gapV.value,
54758
+ "v4fe763ae": superLabelWidth.value,
54759
+ "c15a171a": subLabelWidth.value,
54760
+ "d21f2d34": height.value,
54761
+ "v9e86d01e": labelWidth.value,
54762
+ "v33d1cadc": _ctx.$props.labelColor
54763
54763
  }));
54764
54764
  const props = __props;
54765
54765
  const initialValues = ref$1(/* @__PURE__ */ new Map());
@@ -54882,6 +54882,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54882
54882
  return false;
54883
54883
  }
54884
54884
  }
54885
+ function isUploadComponent(rowInfo) {
54886
+ var _a3;
54887
+ return ((((_a3 = rowInfo == null ? void 0 : rowInfo.component) == null ? void 0 : _a3.name) || "") + "").toLowerCase().indexOf("upload") !== -1;
54888
+ }
54885
54889
  function getComponentParams(rowInfo) {
54886
54890
  const params = { ...rowInfo.params };
54887
54891
  delete params["v-length"];
@@ -55295,7 +55299,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55295
55299
  props.model.indexOf("vertical") > -1 ? `vertical ${!checkIsElempentComponent(rowInfo) ? "custom-vertical" : ""}` : "horizontal"
55296
55300
  ])
55297
55301
  }, [
55298
- createTextVNode(toDisplayString(rowInfo.label || ""), 1)
55302
+ createTextVNode(toDisplayString(rowInfo.label ?? ""), 1)
55299
55303
  ], 2)), [
55300
55304
  [_directive_sline]
55301
55305
  ]) : createCommentVNode("", true)
@@ -55313,15 +55317,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55313
55317
  default: withCtx(() => {
55314
55318
  var _a4;
55315
55319
  return [
55316
- !rowInfo.component || __props.readOnly && /* !isUploadComponent(rowInfo) || */
55317
- (!rowInfo.readOnlyUseComponent || !rowInfo.value) ? (openBlock(), createElementBlock("span", {
55320
+ !rowInfo.component || __props.readOnly && (!isUploadComponent(rowInfo) || !rowInfo.readOnlyUseComponent || !rowInfo.value) ? (openBlock(), createElementBlock("span", {
55318
55321
  key: 0,
55319
55322
  class: normalizeClass([
55320
55323
  "detial-row-item-value",
55321
55324
  props.model.indexOf("table") > -1 ? "model-table" : "",
55322
55325
  props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal"
55323
55326
  ])
55324
- }, toDisplayString(rowInfo.value || __props.valueEmptyTag || ""), 3)) : (openBlock(), createElementBlock("span", {
55327
+ }, toDisplayString(rowInfo.value ?? __props.valueEmptyTag ?? ""), 3)) : (openBlock(), createElementBlock("span", {
55325
55328
  key: 1,
55326
55329
  class: normalizeClass([
55327
55330
  "detial-row-item-value",
@@ -55331,8 +55334,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55331
55334
  createVNode(_component_el_form_item, {
55332
55335
  class: normalizeClass([
55333
55336
  "component-form-item",
55334
- __props.readOnly && /* isUploadComponent(rowInfo) */
55335
- rowInfo.readOnlyUseComponent ? "hidden" : ""
55337
+ __props.readOnly && (isUploadComponent(rowInfo) || rowInfo.readOnlyUseComponent) ? "hidden" : ""
55336
55338
  ]),
55337
55339
  label: rowInfo.label,
55338
55340
  prop: `${props.formPropKey}.${index2}.${_index}.value`,
@@ -55452,7 +55454,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55452
55454
  };
55453
55455
  }
55454
55456
  });
55455
- const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bc0a65f5"]]);
55457
+ const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6c8fea3e"]]);
55456
55458
  const _hoisted_1$1 = { class: "title-image-view" };
55457
55459
  const _hoisted_2 = { class: "content-model-title" };
55458
55460
  const _hoisted_3 = { class: "title-text" };