We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
4.2.6
vue 3.4.23
<Tree draggable={{ icon: } />
消除props类型警告
Tree组件draggable 需要传递一个对象时出现 [Vue warn]: Invalid prop: type check failed for prop "draggable". Expected Function | Boolean, got Object
The text was updated successfully, but these errors were encountered:
应该传递Boolean类型的props
Sorry, something went wrong.
组件写的是Boolean 类型但是可以传递对象 只不过会报props不支持对象类型
[Vue warn]: Invalid prop: type check failed for prop "draggable". Expected Function | Boolean, got Object at <Tree itemHeight=24 onDrop=fn height=280 ... > at <ATree itemHeight=24 draggable= {icon: {…}} icon : {__v_isVNode: true, __v_skip: true, props: null, key: null, type: ƒ, …} [[Prototype]] : Object
No branches or pull requests
Version
4.2.6
Environment
vue 3.4.23
Reproduction link
Steps to reproduce
<Tree draggable={{ icon: } />
What is expected?
消除props类型警告
What is actually happening?
Tree组件draggable 需要传递一个对象时出现 [Vue warn]: Invalid prop: type check failed for prop "draggable". Expected Function | Boolean, got Object
The text was updated successfully, but these errors were encountered: