From dfa4879d57d2b748cbeea1ecf4947fdb4cf26ffa Mon Sep 17 00:00:00 2001 From: johnniang Date: Thu, 11 Apr 2019 18:15:24 +0800 Subject: [PATCH] Extract category select tree with CategorySelectTree component --- src/views/post/CategoryList.vue | 81 ++++++++++++------- .../post/components/CategorySelectTree.vue | 59 ++++++++++++++ 2 files changed, 109 insertions(+), 31 deletions(-) create mode 100644 src/views/post/components/CategorySelectTree.vue diff --git a/src/views/post/CategoryList.vue b/src/views/post/CategoryList.vue index bca99c0d..26996e03 100644 --- a/src/views/post/CategoryList.vue +++ b/src/views/post/CategoryList.vue @@ -7,31 +7,43 @@ :md="10" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }"> + :style="{ 'padding-bottom': '12px' }" + > - + - + - - + /> - - + + - 保存 + 保存 @@ -42,14 +54,31 @@ :md="14" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }"> + :style="{ 'padding-bottom': '12px' }" + > - - + + {{ text }} - - 编辑 + + 编辑 + +