fix:修复表格行侧边 confirmButton 按钮 disabled 无效的问题 !83

This commit is contained in:
Vimin 2023-01-14 10:38:27 +00:00 committed by 妙码生花
parent c528d2952b
commit 47ea35d037

View File

@ -151,7 +151,7 @@
<div v-if="btn.text" class="table-operate-text">{{ btn.text }}</div>
</el-button>
</el-tooltip>
<el-popconfirm v-if="btn.render == 'confirmButton'" v-bind="btn.popconfirm" @confirm="onButtonClick(btn)">
<el-popconfirm v-if="btn.render == 'confirmButton'" :disabled="btn.disabled && btn.disabled(row, field)" v-bind="btn.popconfirm" @confirm="onButtonClick(btn)">
<template #reference>
<div class="ml-6">
<el-tooltip :disabled="btn.title ? false : true" :content="btn.title ? t(btn.title) : ''" placement="top">