AT-UI / at-ui

A fresh and flat UI-Kit specially for desktop application, made with ♥ by Vue.js 2.0 (DEPRECATED)
https://at.aotu.io
MIT License
2.34k stars 231 forks source link

at-table 组件渲染完成后当容器发生变化会报出警告错误 #149

Open stepday opened 5 years ago

stepday commented 5 years ago

found in

--->

```
turboxp53 commented 5 years ago

两种方式: 1)handleResize()中的逻辑全部注释掉 !!强烈推荐这种,移除监听window对象resize事件效果更好 2)修改源码 const $td = this.$refs.body && this.$refs.body.querySelectorAll('tr')[0].querySelectorAll('td') if($td){ // code }

turboxp53 commented 5 years ago

原来是源码中的销毁注册事件的名称写错了 beforeDestory =》beforeDestroy 不过还是建议移除监听window对象resize事件效果更好,你们尝试下就晓得了