|
|
@ -4,8 +4,8 @@ import { computed, ref } from 'vue' |
|
|
|
// 定义 props 接收数据 |
|
|
|
const props = defineProps({ |
|
|
|
data: { |
|
|
|
type: Array, |
|
|
|
required: true, |
|
|
|
type: Array as () => string[], |
|
|
|
required: false, |
|
|
|
default: () => [] as string[], // Proper default value with type |
|
|
|
}, |
|
|
|
}) |
|
|
|