Unverified 提交 85b17235 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #657 from dataease/pr@dev@fix_number_ranger_filter_style

fix: 仪表板数字范围组件样式错误
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论