fix 文件为空时的颜色调整

This commit is contained in:
赵霄
2024-01-16 16:33:39 +08:00
parent f64de19ed7
commit bfaf5a6a2f
4 changed files with 14 additions and 7 deletions
+7 -2
View File
@@ -146,7 +146,8 @@
line-height: 100%;
vertical-align: middle;
}
span::before{
span::before {
content: '*';
display: inline-block;
height: 100%;
@@ -159,7 +160,11 @@
}
/deep/ .van-field {
.van-field__control[readonly]{
.van-field__control[readonly] {
color: #969799;
}
}
.readonly-file-display-empty {
color: rgba(150, 151, 153, 0.6);
}
@@ -42,9 +42,11 @@
:border="false">
<template slot="input">
<template v-if="standardList && standardList.length > 0">
<div v-for="item in standardList" :key="item.id">{{ item.standardNumber }} {{ item.standardName }}</div>
<div v-for="item in standardList" :key="item.id" class="readonly-file-display-empty">{{ item.standardNumber }}
{{ item.standardName }}
</div>
</template>
<div v-else>{{ global.emptyLine }}</div>
<div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template>
</van-field>
<!--流程说明-->
@@ -70,7 +70,7 @@
:border="false">
<template v-slot:input>
<file-display v-if="basicInfo.standardTextFileId" :file-ids="basicInfo.standardTextFileId" />
<div v-else>{{ global.emptyLine }}</div>
<div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template>
</van-field>
<!--相关文件-->
@@ -84,7 +84,7 @@
:border="false">
<template v-slot:input>
<file-display v-if="basicInfo.relatedFile" :file-ids="basicInfo.relatedFile" />
<div v-else>{{ global.emptyLine }}</div>
<div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template>
</van-field>
<!--征求意见结束日期-->
@@ -75,7 +75,7 @@
:border="false">
<template v-slot:input v-if="fileField.includes(formItem.dbFieldName)">
<file-display :file-ids="formInline[formItem.dbFieldName]" v-if="!!formInline[formItem.dbFieldName]" />
<div v-else>{{ global.emptyLine }}</div>
<div v-else class="readonly-file-display-empty">{{ global.emptyLine }}</div>
</template>
</van-field>
</van-form>