mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-10 03:16:49 +08:00
style(button): 优化按钮样式和布局
- 调整了多个组件中的按钮样式,包括禁用状态的样式 - 优化了按钮的排列和间距 - 统一了按钮的样式类和属性 - 移除了部分冗余的代码
This commit is contained in:
@@ -61,33 +61,33 @@ const RenderSlot = {
|
||||
if (params.column.isRedraw) {
|
||||
let content = data.props.render(h, params)
|
||||
let contentDiv = content.children
|
||||
if (contentDiv.length > 2) {
|
||||
// 切割掉第一个div
|
||||
const first = contentDiv.splice(0, 1)
|
||||
const other = contentDiv.splice(0, contentDiv.length)
|
||||
first[0].data.class = 'normal-button'
|
||||
first[0].data.props.type = null
|
||||
first[0].data.props.size = null
|
||||
other.forEach(item => {
|
||||
// item.data.class = 'normal-button '
|
||||
item.data.class = 'normal-button popver-button'
|
||||
})
|
||||
// if (contentDiv.length > 2) {
|
||||
// 切割掉第一个div
|
||||
// const first = contentDiv.splice(0, 1)
|
||||
// const other = contentDiv.splice(0, contentDiv.length)
|
||||
// first[0].data.class = 'normal-button'
|
||||
// first[0].data.props.type = null
|
||||
// first[0].data.props.size = null
|
||||
// other.forEach(item => {
|
||||
// // item.data.class = 'normal-button '
|
||||
// item.data.class = 'normal-button popver-button'
|
||||
// })
|
||||
//
|
||||
// content.children = [renderTooltip(first), renderPopver(other)]
|
||||
// // content.children = [renderTooltip(first), ...other]
|
||||
// return content
|
||||
// } else {
|
||||
// const first = contentDiv.splice(0, contentDiv)
|
||||
|
||||
content.children = [renderTooltip(first), renderPopver(other)]
|
||||
// content.children = [renderTooltip(first), ...other]
|
||||
return content
|
||||
} else {
|
||||
// const first = contentDiv.splice(0, contentDiv)
|
||||
|
||||
contentDiv = contentDiv.map(item => {
|
||||
item.data.class = 'normal-button'
|
||||
item.data.props.type = null
|
||||
item.data.props.size = null
|
||||
return renderTooltip([item])
|
||||
})
|
||||
content.children = contentDiv
|
||||
return content
|
||||
}
|
||||
contentDiv = contentDiv.map(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 =
|
||||
} else {
|
||||
return data.props.render(h, params)
|
||||
|
||||
Reference in New Issue
Block a user