From c815744265e39a3f44a06f9a92db699f70896667 Mon Sep 17 00:00:00 2001 From: 梁灏 <admin@aresn.com> 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 37b93be..44a3f9a 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: '<span style="color: red">leaf</span>', -// }] -// }] -// } + { + 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: '<span style="color: red">leaf</span>', + }] + }] + } ] } }, diff --git a/src/styles/components/tree.less b/src/styles/components/tree.less index ee392aa..60a4363 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; -- libgit2 0.21.4