From c815744265e39a3f44a06f9a92db699f70896667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 27 Mar 2017 14:28:42 +0800 Subject: [PATCH] fixed #499 --- examples/routers/tree.vue | 40 ++++++++++++++++----------------- src/styles/components/tree.less | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/routers/tree.vue b/examples/routers/tree.vue index 37b93be0..44a3f9a7 100644 --- a/examples/routers/tree.vue +++ b/examples/routers/tree.vue @@ -38,26 +38,26 @@ ] }] }, -// { -// expand: true, -// title: 'parent 1', -// children: [{ -// title: 'parent 1-0', -// expand: true, -// children: [{ -// title: 'leaf' -// }, { -// title: 'leaf', -// }] -// }, { -// title: 'parent 1-1', -// expand: true, -// checked: true, -// children: [{ -// title: 'leaf', -// }] -// }] -// } + { + expand: true, + title: 'parent 1', + children: [{ + title: 'parent 1-0', + expand: true, + children: [{ + title: 'leaf' + }, { + title: 'leaf', + }] + }, { + title: 'parent 1-1', + expand: true, + checked: true, + children: [{ + title: 'leaf', + }] + }] + } ] } }, diff --git a/src/styles/components/tree.less b/src/styles/components/tree.less index ee392aa5..60a43632 100644 --- a/src/styles/components/tree.less +++ b/src/styles/components/tree.less @@ -4,7 +4,7 @@ ul{ list-style: none; margin: 0; - padding: 5px; + padding: 0; font-size: @font-size-small; li{ list-style: none;