子组件想要使用父组件的参数,最简单的方法是使用this.$parent
参考资料:
https://www.jianshu.com/p/20eb82bc53e7
https://www.cnblogs.com/panwudi/p/15784649.html