摘要: // 子组件 const count = ref(1) const submit = () => { console.log(123213) } // 通过defineExpose把方法或值暴露出来 defineExpose({ submit,count }) // 父组件 利用ref绑定子组件,直 阅读全文
posted @ 2022-05-11 15:32 Life_countdown 阅读(1078) 评论(0) 推荐(0)