refactor(knowledge): 调整知识详情页面文档列表的按钮布局和样式

- 将删除按钮移到编辑按钮之前
-为删除按钮添加"删除"文字
- 移除查看详情按钮的冗余代码
This commit is contained in:
陈昱达
2025-04-30 14:39:17 +08:00
parent ca030e4c57
commit 3903957047

View File

@@ -613,15 +613,31 @@ export default {
h('el-button', {
class: 'floatSpan',
props: {
type: 'danger',
type: 'primary',
size: 'mini',
icon: 'el-icon-delete',
title: '删除'
icon: 'el-icon-tickets',
title: '查看详情'
},
on: {
click: () => this.deleteKnowledge(params.row)
click: () => this.viewDocumentDetail(params.row)
}
}),
h(
'el-button',
{
class: 'floatSpan',
props: {
type: 'danger',
size: 'mini',
icon: 'el-icon-delete',
title: '删除'
},
on: {
click: () => this.deleteKnowledge(params.row)
}
},
'删除'
),
h(
'el-button',
{
@@ -637,22 +653,7 @@ export default {
},
'编辑'
),
h(
'el-button',
{
class: 'floatSpan',
props: {
type: 'primary',
size: 'mini',
icon: 'el-icon-tickets',
title: '查看详情'
},
on: {
click: () => this.viewDocumentDetail(params.row)
}
},
'查看详情'
),
h(
'el-button',
{