传递未声明的props属性,TS有警告 #6056
Unanswered
zengyuanqiu
asked this question in
Help/Questions
Replies: 1 comment
-
这个我也遇到过,ts类型应该是尽可能 strict check 我觉得这里实现严格上来说没有什么对错的问题。你加个 另外 Vue 官方是反对 prop drilling 的,建议使用 provide inject |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当二次封装组件使用inheritAttrs时或者直接作用在根组件时,未声明的props属性TS会警告“xxx”上不存在“xxx”属性
Beta Was this translation helpful? Give feedback.
All reactions