方案一 子组件中: 定义方法,fnName() {…} 父组件中: setup() { let childRef = ref(null) return { childRef } } 调用:this.childRef.value.fnName() 方案二