matrix_components 2.0.386 → 2.0.388
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.
- package/README.md +1 -1
- package/dist/ComponentDemo/DialogDemo.vue +210 -0
- package/dist/ComponentDemo/ExampleFormConfig.js +270 -0
- package/dist/ComponentDemo/ExcelDemo.vue +263 -0
- package/dist/ComponentDemo/FormDemo copy 2.vue +635 -0
- package/dist/ComponentDemo/FormDemo copy.vue +631 -0
- package/dist/ComponentDemo/FormDemo.vue +656 -0
- package/dist/ComponentDemo/ImageDemo.vue +27 -0
- package/dist/ComponentDemo/MDDemo.vue +20 -0
- package/dist/ComponentDemo/OfficeDemo.vue +189 -0
- package/dist/ComponentDemo/PdfDemo.vue +207 -0
- package/dist/ComponentDemo/SaturationLineDemo.vue +592 -0
- package/dist/ComponentDemo/SimpleFormConfig.json +97 -0
- package/dist/ComponentDemo/Test.vue +437 -0
- package/dist/ComponentDemo/TestFormConfig.js +129 -0
- package/dist/ComponentDemo/VideoDemo.vue +303 -0
- package/dist/ComponentDemo/WordDemo.vue +191 -0
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +30 -10
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
"v6115667f": customBackgroundColor.value,
|
|
54772
|
+
"v234328f6": gapV.value,
|
|
54773
|
+
"v09990eb0": superLabelWidth.value,
|
|
54774
|
+
"c2980026": subLabelWidth.value,
|
|
54775
|
+
"v5b4819a8": height.value,
|
|
54776
|
+
"v57bc6292": labelWidth.value,
|
|
54777
|
+
"v229c4de8": _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(() => {
|
|
@@ -55429,7 +55449,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55429
55449
|
createVNode(_component_el_tooltip, {
|
|
55430
55450
|
"hide-after": 0,
|
|
55431
55451
|
"show-after": 500,
|
|
55432
|
-
disabled: !(__props.readOnly && !rowInfo.readOnlyUseComponent),
|
|
55452
|
+
disabled: !(__props.readOnly && (!isUploadComponent(rowInfo) && !rowInfo.readOnlyUseComponent)),
|
|
55433
55453
|
content: getComponentValue.value(rowInfo),
|
|
55434
55454
|
placement: "top-start",
|
|
55435
55455
|
"popper-class": "detail-view-tooltip"
|
|
@@ -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-
|
|
55597
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-61a3e84c"]]);
|
|
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" };
|