方法:
$emit
使用:
父组件:
methods: { hidden () { this.isLogin = false } } }
子组件:
this.$emit('hidden')
本文共 195 字,大约阅读时间需要 1 分钟。
方法:
$emit
使用:
父组件:
methods: { hidden () { this.isLogin = false } } }
子组件:
this.$emit('hidden')
转载于:https://www.cnblogs.com/qijiamin/p/10616798.html