diff --git a/src/components/Descriptions/src/Descriptions.vue b/src/components/Descriptions/src/Descriptions.vue index eadbce97d..ca9f37c87 100644 --- a/src/components/Descriptions/src/Descriptions.vue +++ b/src/components/Descriptions/src/Descriptions.vue @@ -28,6 +28,7 @@ const props = defineProps({ width: propTypes.string.def('50px'), labelAlign: propTypes.string.def('right'), labelClassName: propTypes.string.def(''), + valueClassName: propTypes.string.def(''), schema: { type: Array as PropType, default: () => [] @@ -126,6 +127,7 @@ const showAll = () =>{ v-bind="getBindItemValue(item)" :label-align="labelAlign" :label-class-name="labelClassName" + :class-name="valueClassName || item.labelClassName" :width="width" :span="item.span" > @@ -192,4 +194,14 @@ $prefix-cls: #{$namespace}-descriptions; width: 0; } } +:deep(.text-red) { + color:red!important; +// background: #fff3f3; +} +:deep(.text-red .el-tag) { + background:#fef0f0!important; + color:red!important; + border-color:#fde2e2!important; +// background: #fff3f3; +} diff --git a/src/components/Distinction/src/Distinction.vue b/src/components/Distinction/src/Distinction.vue index 2c6876c33..e775adb9e 100644 --- a/src/components/Distinction/src/Distinction.vue +++ b/src/components/Distinction/src/Distinction.vue @@ -2,13 +2,13 @@