1.今天在用vue3时,遇到了一个警告:
Extraneous non-props attributes (class) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
问题的原因是因为传递了没有解析定义的属性,一般情况下是class。
经过检查果然是class没有定义
收工
1.今天在用vue3时,遇到了一个警告:
Extraneous non-props attributes (class) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
问题的原因是因为传递了没有解析定义的属性,一般情况下是class。
经过检查果然是class没有定义
收工