vue3 子元件 ref ts型別定義

敲敲碰碰發表於2024-03-15
template:
<FollowupLog ref="followupLog" />
script:
import FollowupLog from "./FollowupLog.vue"
const followupLog = ref<InstanceType<typeof FollowupLog> | null>(null)

相關文章