删除多余代码
This commit is contained in:
@@ -362,6 +362,15 @@
|
||||
|
||||
const actionList = props.actions(row)
|
||||
|
||||
// 如果没有操作按钮,显示提示
|
||||
if (actionList.length === 0) {
|
||||
return h(
|
||||
'span',
|
||||
{ style: 'color: var(--el-text-color-placeholder); font-size: 12px;' },
|
||||
'暂无可用操作'
|
||||
)
|
||||
}
|
||||
|
||||
// 如果操作数量 <= 2,直接显示所有按钮
|
||||
if (actionList.length <= 2) {
|
||||
return h(
|
||||
|
||||
Reference in New Issue
Block a user