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