const props = defineProps({
selectedData: <Record<string, string>>
});
在结束括号下有一条红线,表示
分析错误:意外标记.你是说
{'}'}
还是{'}'}
我对类型的定义有误吗?我不知道该怎么办.
const props = defineProps({
selectedData: <Record<string, string>>
});
在结束括号下有一条红线,表示
分析错误:意外标记.你是说
{'}'}
还是{'}'}
我对类型的定义有误吗?我不知道该怎么办.
如果您使用的是TypeScript,那么也可以使用纯类型注释声明props 和emits .
这意味着你可以使用:
const props = defineProps<{
selectedData: Record<string, string>;
}>();