Commit dedf6563 authored by Jenny's avatar Jenny

feat: details update

parent 52634995
......@@ -8,7 +8,7 @@
:class="[element.type == 'NormalTabs' && element.option.tabs.sticky && pageScrollTop > Number(element.top) ? 'el-fixed': '']"
:style="{
width: `${parseInt(element.width * scale)}px`,
height: `${parseInt(element.height * scale)}px`,
height: `${element.type == 'HorizontalBar' && horizontalBarHeight ? horizontalBarHeight : parseInt(element.height * scale)}px`,
left: `${parseInt(element.left * scale)}px`,
top: `${parseInt(element.top * scale)}px`,
zIndex: `${element.type == 'NormalTabs' || element.type == 'DateTimePicker' ? 999999 : index + 1}`
......@@ -65,7 +65,8 @@
reportInfo: {},
detailId: "",
timename: null,
pageScrollTop: 0
pageScrollTop: 0,
horizontalBarHeight: 0
}
},
computed: {
......@@ -131,13 +132,17 @@
return item
})
}
})
})
uni.$on('handleUpdateHeight', (height) => {
that.horizontalBarHeight = height
})
},
onUnload() {
// 移除监听事件
uni.$off('handleLinkParams')
uni.$off('handleLinkComp')
uni.$off('handleDataZoomParams')
uni.$off('handleUpdateHeight')
clearInterval(this.timename)
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment