forked from github/dataease
fix: 仪表板数字范围组件样式错误
This commit is contained in:
parent
bf619698ad
commit
f257b4db1d
@ -77,7 +77,11 @@ export default {
|
||||
const titleWidth = this.$refs.deTitle.offsetWidth
|
||||
const deContentContainer = this.$refs.deContentContainer
|
||||
this.$nextTick(() => {
|
||||
if (height < 75) {
|
||||
let min = 75
|
||||
if (this.element.component === 'de-number-range') {
|
||||
min = 105
|
||||
}
|
||||
if (height < min) {
|
||||
// console.log(titleWidth)
|
||||
this.mainClass = 'condition-main-line'
|
||||
deContentContainer && (deContentContainer.style.inset = '0 0 0 ' + (titleWidth + 15) + 'px')
|
||||
@ -121,6 +125,8 @@ export default {
|
||||
.condition-title-absolute {
|
||||
inset: 0px 0px;
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
.span-container {
|
||||
|
Loading…
Reference in New Issue
Block a user