和 props 一样,在 <script setup> 中必须使用 defineEmits API 来声明 emits ,它具备完整的推断并且在 <script setup> 中是直接可用的。更多细节请看文档。
確定! 回上一頁