请问下 进度100设置status的属性是success,其余时候不设置status属性怎么写吗? 试了值为空也不行会报:
<el-progress :percentage="scope.row.resourcePct" :status="resourcePct == 100 ?'success':''"></el-progress>
难道要写判断条件吗? 写if else也太不简洁了吧!
//写if else也太不简洁了吧!
<el-progress :percentage="scope.row.resourcePct" v-if="resourcePct == 100" status="success"></el-progress>
<el-progress :percentage="scope.row.resourcePct" v-else></el-progress>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…