不同状态下icon的两种颜色(可点击和不可点击)
<el-button type="danger"
icon="iconfont el-icon-thirdstop"
:style="{'color': (scope.row.state ==='RUNNING_EXEUTION' ? '#f04d4e':'#fab6b6')}"
circle
:disabled="scope.row.state !=='RUNNING_EXEUTION'" />
主要是
:style="{‘color’: (scope.row.state ===‘RUNNING_EXEUTION’ ? ‘#f04d4e’:’#fab6b6’)}"