refactor(knowledge): 优化知识库相关组件的样式和功能- 修改按钮样式,增加图标并隐藏文字

- 优化表格渲染逻辑,提高组件灵活性
-统一使用 outline 图标风格- 修复搜索框回车事件处理
This commit is contained in:
陈昱达
2025-04-23 16:48:14 +08:00
parent 425cbe7621
commit 72bce3b71b
5 changed files with 59 additions and 61 deletions

View File

@@ -18,8 +18,8 @@ const RenderSlot = {
{
props: {
placement: 'bottom-end',
content: first[0].data.props.title,
effect: 'light'
content: first[0].data.props.title
// effect: 'light'
}
},
first
@@ -76,12 +76,16 @@ const RenderSlot = {
content.children = [renderTooltip(first), renderPopver(other)]
return content
} else {
const first = contentDiv.splice(0, 1)
first[0].data.class = 'normal-button'
first[0].data.props.type = null
first[0].data.props.size = null
content.children = [renderTooltip(first)]
// const first = contentDiv.splice(0, contentDiv)
contentDiv = contentDiv.map(item => {
console.log(item)
item.data.class = 'normal-button'
item.data.props.type = null
item.data.props.size = null
return renderTooltip([item])
})
content.children = contentDiv
return content
}
// let div =