摘要: 使用计算属性 <div id="flow" :style="{ height: scrollerHeight }"></div> computed: { // 滚动区高度 scrollerHeight: function () { return this.nodeList.length * 30 + 阅读全文
posted @ 2023-02-13 20:24 sinceForever 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 背景如下 左侧菜单无限添加子级菜单后,菜单宽度需要被改变,且右侧页面同时被往右侧推。而不是只改变菜单宽度,右侧页面被遮挡。 错误:只改变菜单宽度,则会压住右侧内容 正确:添加多层菜单,菜单无限变宽,但是右侧也同步被推后。 下面是我的代码:有不懂的地方可以留言问我 variables.scss $si 阅读全文
posted @ 2023-02-13 20:22 sinceForever 阅读(1230) 评论(0) 推荐(0) 编辑