<script setup lang="uts">
import { ref } from 'vue'
type Item = {
id : string,
name : string
}
const list = ref<Item[]>([ 空数组不报错
{
id: '1',
name: 'Item 1'
}
])
</script>
<script setup lang="uts">
import { ref } from 'vue'
type Item = {
id : string,
name : string
}
const list = ref<Item[]>([ 空数组不报错
{
id: '1',
name: 'Item 1'
}
])
</script>