props 和emits 也可以使用TypeScript 語法來宣告,方法是向defineProps 或defineEmits 傳遞一個字面型別引數。 const props = defineProps<{ foo: string ...
確定! 回上一頁