解决方式:
this.$refs.table.doLayout();
activated() {
// table是表格的ref属性值
if (this.$refs.table && this.$refs.table.doLayout) {
this.$refs.table.doLayout();
}
}
文章讲述了在Vue应用中,如何在特定条件(如表格激活时)通过`this.$refs.table.doLayout()`方法调整表格布局,强调了DOM操作和Vue组件间的交互。
解决方式:
this.$refs.table.doLayout();
activated() {
// table是表格的ref属性值
if (this.$refs.table && this.$refs.table.doLayout) {
this.$refs.table.doLayout();
}
}
309

被折叠的 条评论
为什么被折叠?