CN-501 feat: 响应式方案实施
This commit is contained in:
@@ -72,6 +72,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
chartLoaded (chartList) {
|
||||
this.chartList = chartList
|
||||
this.anchorPoints = []
|
||||
let anchorPoints = []
|
||||
const panelDom = document.querySelector('#detailWrapper')
|
||||
@@ -103,8 +104,17 @@ export default {
|
||||
jumpToAnchor (anchor) {
|
||||
this.top = anchor.top
|
||||
document.querySelector('#detailWrapper').scrollTop = this.top
|
||||
},
|
||||
resize () {
|
||||
this.chartLoaded(this.chartList)
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
window.addEventListener('resize', this.$_.debounce(this.resize, 200))
|
||||
},
|
||||
beforeUnmount () {
|
||||
window.removeEventListener('resize', this.resize)
|
||||
},
|
||||
computed: {
|
||||
iconClass () {
|
||||
let className
|
||||
|
||||
Reference in New Issue
Block a user