Merge pull request #13528 from dataease/pr@dev-v2@style_tab

style: 样式调整
This commit is contained in:
王嘉豪 2024-11-25 14:28:49 +08:00 committed by GitHub
commit ae075a7089
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,18 +294,10 @@ export function groupStyleRevertBatch(groupComponent, parentStyle) {
export function tabInnerStyleRevert(tabOuterComponent) {
const parentStyle = {
width: tabOuterComponent.style.width,
height: tabOuterComponent.style.height - tabOuterComponent.style.showTabTitle ? 46 : 0
height: tabOuterComponent.style.height - (tabOuterComponent.style.showTabTitle ? 46 : 0)
}
tabOuterComponent.propValue.forEach(tabItem => {
tabItem.componentData.forEach(tabComponent => {
console.log(
'====test===inner-width---' +
tabComponent.style.width +
'---height---' +
tabComponent.style.height +
'---' +
JSON.stringify(parentStyle)
)
groupStyleRevert(tabComponent, parentStyle)
})
})
@ -336,6 +328,6 @@ export function dataVTabComponentAdd(innerComponent, parentComponent) {
innerComponent.style.left = 0
const parentStyleAdaptor = { ...parentComponent.style }
// 去掉tab头部高度
parentStyleAdaptor.height = parentStyleAdaptor.height - parentComponent.showTabTitle ? 46 : 0
parentStyleAdaptor.height = parentStyleAdaptor.height - (parentComponent.showTabTitle ? 46 : 0)
groupStyleRevert(innerComponent, parentStyleAdaptor)
}