i am using VUE.js 2
this is my DOM:
<aside :style="{height : height()}" class="col-sm-4 col-md-3 col-lg-3">...</aside>
<main class="col-sm-8 col-md-9 col-lg-9" ref="userPanelMainContents">...</main>
and this is my script:
export default {
data() {
return {}
},
methods: {
height () {
return this.$refs.userPanelMainContents ? this.$refs.userPanelMainContents.offsetHeight + 'px' : '0px'
}
}
}
i want to get userPanelMainContents height and asign it to aside tag. how can i do that ?!!!