作用:获取引用,
如果添加在普通的dom上,就可以获取dom对象
如果添加在组件上,就可以获取子组件
<addor-edit :id="id" ref="deptDialog" />
console.log(this.$refs.deptDialog)
如果添加在普通的dom上,就可以获取dom对象
如果添加在组件上,就可以获取子组件
<addor-edit :id="id" ref="deptDialog" />
console.log(this.$refs.deptDialog)