Property '$el' does not exist on type 'Element | Element[] | Vue | Vue[]'.
Property '$el' does not exist on type 'Element'.
相关代码
let elem = this.$refs.nav.$el;
new PerfectScrollbar(elem);
请问怎么给$refs加类型?
Property '$el' does not exist on type 'Element | Element[] | Vue | Vue[]'.
Property '$el' does not exist on type 'Element'.
let elem = this.$refs.nav.$el;
new PerfectScrollbar(elem);
请问怎么给$refs加类型?
10 回答11.3k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决