mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 11:21:44 +08:00
style: tab样式调整 (#18183)
This commit is contained in:
@@ -326,8 +326,10 @@ const calcTabLength = () => {
|
||||
const containerDom = document.getElementById(
|
||||
'tab-' + element.value.propValue[element.value.propValue.length - 1].name
|
||||
)
|
||||
tabsAreaScroll.value =
|
||||
containerDom.parentNode.clientWidth > tabComponentRef.value.clientWidth - 100
|
||||
if (containerDom) {
|
||||
tabsAreaScroll.value =
|
||||
containerDom?.parentNode?.clientWidth > tabComponentRef.value.clientWidth - 100
|
||||
}
|
||||
} else {
|
||||
tabsAreaScroll.value = false
|
||||
}
|
||||
|
||||
@@ -323,8 +323,10 @@ const calcTabLength = () => {
|
||||
const containerDom = document.getElementById(
|
||||
'tab-' + element.value.propValue[element.value.propValue.length - 1].name
|
||||
)
|
||||
tabsAreaScroll.value =
|
||||
containerDom.parentNode.clientWidth > tabComponentRef.value.clientWidth - 100
|
||||
if (containerDom) {
|
||||
tabsAreaScroll.value =
|
||||
containerDom?.parentNode?.clientWidth > tabComponentRef.value.clientWidth - 100
|
||||
}
|
||||
} else {
|
||||
tabsAreaScroll.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user