vue3 史诗级更新

子组件可以用 const { foo = 'hello' } = defineProps<{ foo?: string }>()...
vue3 史诗级更新
vue3 史诗级更新

const { foo = 'hello' } = defineProps<{ foo?: string }>()
来源: V2EX - 技术查看原文