自定义组件模式下
a页面调用了组件 components1.
组件components1调用了组件 components2
-------分割线-------
1、a页面调用components1组件的test方法: this.$refs.Box.test();
2、components1组件的test方法中又调用components2组件的test1方法: this.$refs.Box.test1();
问题:
a页面能正常调用components1组件的tes方法, 但是components1组件中不能调用components2组件的test2方法
要怎么解决这个问题
0 个回复