Привязка стиля:
<div :style="{height: scrollerHeight}"></div>
Вычисляемые свойства:
computed: {
scrollerHeight: function() {
return (document.body.clientHeight - 20) + 'px' // 自定义高度需求
},
}
Привязка стиля:
<div :style="{height: scrollerHeight}"></div>
Вычисляемые свойства:
computed: {
scrollerHeight: function() {
return (document.body.clientHeight - 20) + 'px' // 自定义高度需求
},
}