From 3fbe13ae866c119b04425923e90edc4403119a98 Mon Sep 17 00:00:00 2001 From: qqabcv520 <605655316@qq.com> Date: Thu, 7 Jan 2021 11:24:33 +0800 Subject: [PATCH] docs: example of synchronous rc-tree (#28648) --- components/tree/demo/drag-debug.md | 6 +++--- components/tree/demo/draggable.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/tree/demo/drag-debug.md b/components/tree/demo/drag-debug.md index 2dcd115935..df36136063 100644 --- a/components/tree/demo/drag-debug.md +++ b/components/tree/demo/drag-debug.md @@ -57,9 +57,9 @@ class Demo extends React.Component { onDrop = info => { console.log(info); - const dropKey = info.node.props.eventKey; - const dragKey = info.dragNode.props.eventKey; - const dropPos = info.node.props.pos.split('-'); + const dropKey = info.node.key; + const dragKey = info.dragNode.key; + const dropPos = info.node.pos.split('-'); const dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]); const loop = (data, key, callback) => { diff --git a/components/tree/demo/draggable.md b/components/tree/demo/draggable.md index 675974b494..a764e8f791 100644 --- a/components/tree/demo/draggable.md +++ b/components/tree/demo/draggable.md @@ -60,9 +60,9 @@ class Demo extends React.Component { onDrop = info => { console.log(info); - const dropKey = info.node.props.eventKey; - const dragKey = info.dragNode.props.eventKey; - const dropPos = info.node.props.pos.split('-'); + const dropKey = info.node.key; + const dragKey = info.dragNode.key; + const dropPos = info.node.pos.split('-'); const dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]); const loop = (data, key, callback) => {