mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-15 05:46:50 +08:00
refactor(knowledge): 优化知识库相关组件的样式和功能- 修改按钮样式,增加图标并隐藏文字
- 优化表格渲染逻辑,提高组件灵活性 -统一使用 outline 图标风格- 修复搜索框回车事件处理
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user