vue2父组件调用slot插槽中组件内部的方法

默认插槽:
this.$slots.default[0].context.showUser();
posted @ 2024-12-24 16:54  芝麻小仙女  阅读(42)  评论(0)    收藏  举报