vue el-button disabled没有实时生效
在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>
然后就实时生效了。
不要在该奋斗的年纪选择去偷懒,只有度过一段连自己都被感动了的日子,才会变成那个最好的自己.

浙公网安备 33010602011771号