vue+ts 通过 ref 获取子组件实例

  1. 第一种:自定义类型
  • 通过 defineExpose 暴露子组件中的属性或方法
  • 使用

你可能感兴趣的:(typeScript,vue.js,typescript,vue3.x,ref)