你忽略了一个小问题Vue props 给数组或者对象赋默认值的时候, 需要用函数const props = withDefaults( defineProps<{ fns: string[] }>(), { fns: () => ["hello"] }, )
你忽略了一个小问题
Vue props 给数组或者对象赋默认值的时候, 需要用函数