matrix_components 2.0.375 → 2.0.376
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
|
-
"
|
|
54757
|
-
"
|
|
54758
|
-
"
|
|
54759
|
-
"
|
|
54760
|
-
"
|
|
54761
|
-
"
|
|
54762
|
-
"
|
|
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
|
|
54763
54763
|
}));
|
|
54764
54764
|
const props = __props;
|
|
54765
54765
|
const initialValues = ref$1(/* @__PURE__ */ new Map());
|
|
@@ -54882,10 +54882,6 @@ 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
|
-
}
|
|
54889
54885
|
function getComponentParams(rowInfo) {
|
|
54890
54886
|
const params = { ...rowInfo.params };
|
|
54891
54887
|
delete params["v-length"];
|
|
@@ -55309,7 +55305,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55309
55305
|
createVNode(_component_el_tooltip, {
|
|
55310
55306
|
"hide-after": 0,
|
|
55311
55307
|
"show-after": 500,
|
|
55312
|
-
disabled: !(__props.readOnly && typeof rowInfo.value === "string"),
|
|
55308
|
+
disabled: !(__props.readOnly && !rowInfo.readOnlyUseComponent && typeof rowInfo.value === "string"),
|
|
55313
55309
|
content: rowInfo.value || "",
|
|
55314
55310
|
placement: "top-start",
|
|
55315
55311
|
"popper-class": "detail-view-tooltip"
|
|
@@ -55317,7 +55313,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55317
55313
|
default: withCtx(() => {
|
|
55318
55314
|
var _a4;
|
|
55319
55315
|
return [
|
|
55320
|
-
!rowInfo.component || __props.readOnly &&
|
|
55316
|
+
!rowInfo.component || __props.readOnly && /* !isUploadComponent(rowInfo) || */
|
|
55317
|
+
(!rowInfo.readOnlyUseComponent || !rowInfo.value) ? (openBlock(), createElementBlock("span", {
|
|
55321
55318
|
key: 0,
|
|
55322
55319
|
class: normalizeClass([
|
|
55323
55320
|
"detial-row-item-value",
|
|
@@ -55334,7 +55331,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55334
55331
|
createVNode(_component_el_form_item, {
|
|
55335
55332
|
class: normalizeClass([
|
|
55336
55333
|
"component-form-item",
|
|
55337
|
-
__props.readOnly && isUploadComponent(rowInfo)
|
|
55334
|
+
__props.readOnly && /* isUploadComponent(rowInfo) */
|
|
55335
|
+
rowInfo.readOnlyUseComponent ? "hidden" : ""
|
|
55338
55336
|
]),
|
|
55339
55337
|
label: rowInfo.label,
|
|
55340
55338
|
prop: `${props.formPropKey}.${index2}.${_index}.value`,
|
|
@@ -55454,7 +55452,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55454
55452
|
};
|
|
55455
55453
|
}
|
|
55456
55454
|
});
|
|
55457
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55455
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bc0a65f5"]]);
|
|
55458
55456
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55459
55457
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55460
55458
|
const _hoisted_3 = { class: "title-text" };
|