From e84d5c32faa1c5d7b648be395b120813702513e4 Mon Sep 17 00:00:00 2001 From: smallwei <1634566606@qq.com> Date: Thu, 19 Jul 2018 21:03:04 +0800 Subject: [PATCH] doc(atree): update 2.0.0-beta --- doc/atree.md | 24 ++++++++++++++++++++++++ examples/atree.html | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 doc/atree.md diff --git a/doc/atree.md b/doc/atree.md new file mode 100644 index 00000000..00d2304f --- /dev/null +++ b/doc/atree.md @@ -0,0 +1,24 @@ +# atree2.0.0属性含义 +* spreadAll 设置checkbox全部选中 +* check勾选风格,不写没有勾选框 +* props 设置key属性别名 + - addBtnLabel:新增按钮标题 + - deleteBtnLabel:删除按钮标题 + - name:树显示的标题 + - id:主键对应的字段名 + - children:子类对应的字段名 + - checkbox:选中对应的字段名 + - spread:是否展开对应的字段名 +* change选中回调函数 + - val:选中的对象数组 +* click点击标题回调函数 + - item:当前点击的对象 +* addClick:新增回调函数 + - item:当前父节点的对象 + - elem:当前节点的dom对象 + - done:添加到dom节点的方法 +* deleteClick:删除回调函数 + - item:当前父节点的对象 + - elem:当前节点的dom对象 + - done:删除dom节点的方法 + \ No newline at end of file diff --git a/examples/atree.html b/examples/atree.html index 817c46c9..85d8a542 100644 --- a/examples/atree.html +++ b/examples/atree.html @@ -68,7 +68,7 @@ console.groupEnd() }, deleteClick:function(item,elem,done){ - console.group('delete event') + console.group('delete event') console.log('Object') console.log(item); console.log('dom')