From d6968c99baf68b89f590f50ec8c7852f8d668364 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Wed, 19 Dec 2018 21:14:15 +0100 Subject: [PATCH] Improved Dropdown component and fixed some js errors --- components/Dropdown.vue | 10 +++++-- components/LocaleSwitch.vue | 7 ++++- layouts/default.vue | 58 +++++++++++++++++++++++-------------- pages/login.vue | 4 ++- 4 files changed, 52 insertions(+), 27 deletions(-) diff --git a/components/Dropdown.vue b/components/Dropdown.vue index 363cbd6ad..f47c1cabb 100644 --- a/components/Dropdown.vue +++ b/components/Dropdown.vue @@ -4,7 +4,7 @@ :open-group="Math.random().toString()" :placement="placement" trigger="manual" - offset="10" + :offset="offset" >
- +
@@ -25,7 +28,8 @@ let mouseLeaveTimer = null export default { props: { - placement: { type: String, default: 'bottom-end' } + placement: { type: String, default: 'bottom-end' }, + offset: { type: [String, Number], default: '16' } }, data() { return { diff --git a/components/LocaleSwitch.vue b/components/LocaleSwitch.vue index a31679078..b449f97b7 100644 --- a/components/LocaleSwitch.vue +++ b/components/LocaleSwitch.vue @@ -1,7 +1,8 @@