From 6cfdca61a87afdfc9cf1918839003b01af243a72 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 19 Aug 2015 13:50:26 +0800 Subject: [PATCH] Only leave onCheck, remove onSelect from antd API --- components/tree/demo/checkbox.md | 6 ++---- components/tree/index.md | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/components/tree/demo/checkbox.md b/components/tree/demo/checkbox.md index 7f611f768f..7c699550b3 100644 --- a/components/tree/demo/checkbox.md +++ b/components/tree/demo/checkbox.md @@ -9,15 +9,13 @@ ````jsx var Tree = antd.Tree; var TreeNode = Tree.TreeNode; + function handleCheck(info) { console.log('check: ', info); } -function handleSelect(info) { - console.log('select: ', info); -} React.render( - + leaf diff --git a/components/tree/index.md b/components/tree/index.md index b157fbaae4..e5b2453f84 100644 --- a/components/tree/index.md +++ b/components/tree/index.md @@ -22,7 +22,6 @@ |defaultCheckedKeys | 默认选中复选框的树节点 | String[] | [] | |defaultSelectedKeys | 默认选中的树节点 | String[] | [] | |onCheck | 点击树节点或复选框触发 | function(e:{checked:bool,node,checkedKeys,event}) | - | -|onSelect | 点击树节点触发 | function(e:{selected:bool,node,checkedKeys,event}) | - | ### TreeNode props