class=
"wrap-dialog-box">
"通知" :visible.sync="dialogVisible" center width="80%" class="dialog-box-center">
class=
"carousel-wrap-box">
carousel
:autoplay="false"
trigger="click"
:height="carouselHeight"
indicator-position="outside"
>
for="item in testImgList" :key="item">
"
text-align: center;width: 100%;height: 100%;">
![]()
"
item" class=
"image-item" />
"footer" class="dialog-footer">
"dialogVisible = false">取 消
"primary" @click="dialogVisible = false">关闭
// store/modules/pageHight.js
export default {
state: {
contentBoxHeight: (window.innerHeight - 80), // 动态计算右侧内容总高度
},
mutations: {
setContentBoxHeight(state, pageHight) {
state.contentBoxHeight = pageHight;
}
},
}
// home文件全局处理下右边的布局高度 右侧最外层div 给上 ref
mounted() {
window.addEventListener('resize', () => {
if (this.$refs.rightBox && this.$refs.rightBox.clientHeight) {
this.setContentBoxHeight(this.$refs.rightBox.clientHeight)
}
})
if (this.$refs.rightBox.clientHeight) {
this.setContentBoxHeight(this.$refs.rightBox.clientHeight);
}
},
methods: {
...mapMutations({
"setContentBoxHeight": "setContentBoxHeight"
}),
}