会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
loading
Himmelbleu
管理
2023年4月14日
Vue3.2.x - Props 定义类型时报对象属性 unknown 错误
摘要: 如上图所示,prop 定义的类型不起作用,在模板中显示对象的属性为 unknown。下面是 prop 的类型定义: type IWorks = Partial<{ id: string; text: string; content: string; desc: string; date: strin
阅读全文
posted @ 2023-04-14 18:54 Himmelbleu
阅读(189)
评论(0)
推荐(0)
编辑