请教一个问题,关于父组件如何调用子组件 render 函数中的方法 #6668
yinton
started this conversation in
General Discussions
Replies: 1 comment
-
可以这样使用,但是不推荐。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
子组件
export default defineComponent({
render() {
const validate = () => {}
}
})
父组件如何调用里面的validate方法?绑定一个ref,xx.value.validate() 是不行的
Beta Was this translation helpful? Give feedback.
All reactions