10 月252022 by weboobNo Comments 菜单指示页面联动Demo Vue3实践 核心思路:根据index,渲染菜单选中样式,以及content的scroll定位。两步实现:点击菜单时,通过scrollIntoView api 实现页面元素的平滑滚动。注册滚动事件,反向同步菜单选中样式 代码实现如下(仅供参考): <scri…Read More