From 0494566e278f8ee03ece2fdf4640cf746f7ebe73 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Sat, 14 Apr 2018 16:42:38 +0800 Subject: [PATCH 01/21] dropdown - init --- docs/.vuepress/config.js | 17 +++++++- lib/default-theme/NavLinks.vue | 79 +++++++++++++++++++++++++++++----- 2 files changed, 84 insertions(+), 12 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 9cece56a58..25d03da61c 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -25,7 +25,22 @@ module.exports = { { text: 'Default Theme Config', link: '/default-theme-config/' - } + }, + { + text: 'Dropdown Test', + type: 'dropdown', + items: [ + { + text: 'item1', + link: '/dropdown-test/' + }, + { + text: 'item1', + link: '/dropdown-test/' + } + ], + link: '/dropdown-test/' + }, ], sidebar: { '/guide/': [ diff --git a/lib/default-theme/NavLinks.vue b/lib/default-theme/NavLinks.vue index ea108bdb8f..2782429727 100644 --- a/lib/default-theme/NavLinks.vue +++ b/lib/default-theme/NavLinks.vue @@ -1,11 +1,26 @@