ts 使用vue3的defineProps时 props写法 const props = defineProps({ pic: { type: Array as () => Array<string>, //(string也可以是其他你自定义的接口) required: true, default: () => [] } });