您的位置:首页 > 游戏 > 手游 > 武汉网站建设询搜点网络_千图网免费素材图库背景图片设计_关键词排名优化易下拉技巧_网络营销章节测试答案

武汉网站建设询搜点网络_千图网免费素材图库背景图片设计_关键词排名优化易下拉技巧_网络营销章节测试答案

2025/5/18 7:53:16 来源:https://blog.csdn.net/qq_40390762/article/details/145751141  浏览:    关键词:武汉网站建设询搜点网络_千图网免费素材图库背景图片设计_关键词排名优化易下拉技巧_网络营销章节测试答案
武汉网站建设询搜点网络_千图网免费素材图库背景图片设计_关键词排名优化易下拉技巧_网络营销章节测试答案
<el-table-column :label="tabsDataFilters1.orgName" width="370" :fixed="tableFixed"><el-table-column type="index" label="序号" width="50" align="center" :fixed="tableFixed"></el-table-column><el-table-column prop="name" label="姓名" width="200" align="left" :fixed="tableFixed"></el-table-column><el-table-column prop="age" :formatter="formatAmount" label="小计" width="120" align="center" :fixed="tableFixed"></el-table-column>
</el-table-column>mounted进行监听,监听方法如下:observeClassChanges() {debuggerthis.$nextTick(() => {const bodyWrapper = this.$refs.table1.$el.querySelector('.el-table__body-wrapper');if (!bodyWrapper) return;// 创建 MutationObserver 监听 class 变化this.observer = new MutationObserver((mutationsList) => {for (const mutation of mutationsList) {if (mutation.attributeName === 'class') {this.removeScrollingClasses(bodyWrapper);}}});// 监听 `class` 变化this.observer.observe(bodyWrapper, {attributes: true,attributeFilter: ['class'],});// 初始移除 class,防止渲染时已有this.removeScrollingClasses(bodyWrapper);});
},
// 滚动中间行样式移除
removeScrollingClasses(bodyWrapper) {if (bodyWrapper.classList.contains('is-scrolling-middle')) {bodyWrapper.classList.remove('is-scrolling-middle');}if (bodyWrapper.classList.contains('is-scrolling-left')) {bodyWrapper.classList.remove('is-scrolling-left');}
},

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com