禁用样式:cursor: not-allowed
事件不可用:pointer-events:none
<div class="rightButton" style="cursor: not-allowed">
<el-button
style="background: #165DFF; color: #FFFFFF;pointer-events:none;"
@click="EMRAdd"
>
<SvgIcon
icon-class="add-icon"
/>
<div>{{ $t('common.new') }}</div>
</el-button>
</div>
最开始都写在el-button上,但是事件禁用生效,样式不生效,就把样式写在div上了