先写父组件,再写子组件,父组件写在代码上面,子组件写在下面
1.参考1 https://www.cnblogs.com/hcxwd/p/7240490.html 2.参考2 https://blog.csdn.net/qq_37205708/article/details/98186045