style(button): 优化按钮样式和布局

- 调整了多个组件中的按钮样式,包括禁用状态的样式
- 优化了按钮的排列和间距
- 统一了按钮的样式类和属性
- 移除了部分冗余的代码
This commit is contained in:
陈昱达
2025-05-14 15:36:34 +08:00
parent 2c9ac917fe
commit 6d86c3e447
6 changed files with 83 additions and 75 deletions

View File

@@ -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)