This commit is contained in:
@@ -371,8 +371,8 @@
|
||||
)
|
||||
}
|
||||
|
||||
// 如果操作数量 <= 2,直接显示所有按钮
|
||||
if (actionList.length <= 2) {
|
||||
// 如果操作数量 <= 3,直接显示所有按钮
|
||||
if (actionList.length <= 3) {
|
||||
return h(
|
||||
'div',
|
||||
{ style: 'display: flex; gap: 8px;' },
|
||||
@@ -390,7 +390,7 @@
|
||||
)
|
||||
}
|
||||
|
||||
// 如果操作数量 > 2,显示第一个 + 更多下拉菜单
|
||||
// 如果操作数量 > 3,显示第一个 + 更多下拉菜单
|
||||
const firstAction = actionList[0]
|
||||
const moreActions = actionList.slice(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user