ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Tree组件Props draggable 类型警告错误

Open asuradaSong opened this issue 6 months ago • 3 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

vue 3.4.23

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<Tree draggable={{ icon: <HolderOutlined /> } />

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

asuradaSong avatar Apr 23 '25 06:04 asuradaSong