在el-table中,操作按钮中el-button 按钮置灰的操作,disable 不生效
是加了v-if判断,解决方法是 添加 key="1"
<el-table-column fixed="right" align="center" label="操作"> <template slot-scope="scope"> <el-button type="primary" v-if="scope.row.taskStatus == 1 || scope.row.taskStatus == 2" @click="endFun(scope.row)" size="mini" >结束</el-button > <el-button type="primary" v-else key="f" disabled size="mini" >结束</el-button > </template> </el-table-column>
然后就实时生效了。
标签:el,vue,button,实时,disabled,生效 From: https://www.cnblogs.com/kpengfang/p/18331810