:style="getMembertemporaryStatus(status)"
方法:
getMembertemporaryStatus(status) {
if (status) {
return 'background:#f5ccff'
}
return ''
},
第二种:
文章:https://www.cnblogs.com/lpp-11-15/p/13163492.html
<el-input
v-model="itemLabel.oldValue" class="borderNone"
:style="{width:(label.flag == 'basePerson'?'40%':'100%'),color:'#8b8b8b'}"
readonly
></el-input>