From 57e0d1d1bbadf3ed8d55fd8a8d8b5fd016329418 Mon Sep 17 00:00:00 2001
From: kooriookami <38392315+kooriookami@users.noreply.github.com>
Date: Tue, 11 Jan 2022 10:29:25 +0800
Subject: [PATCH] fix(style): [el-dropdown] fix doc style (#5266)
* fix: update style
* style: update
* feat: update test
---
docs/en-US/component/dropdown.md | 2 +
docs/examples/dropdown/triggering-element.vue | 54 ++++++++++---------
.../dropdown/__tests__/dropdown.spec.ts | 2 +
.../dropdown/src/dropdown-item-impl.vue | 2 +-
packages/theme-chalk/src/dropdown.scss | 31 +++++------
5 files changed, 46 insertions(+), 45 deletions(-)
diff --git a/docs/en-US/component/dropdown.md b/docs/en-US/component/dropdown.md
index 0053c56e16..14b7377d64 100644
--- a/docs/en-US/component/dropdown.md
+++ b/docs/en-US/component/dropdown.md
@@ -18,6 +18,8 @@ Toggleable menu for displaying lists of links and actions.
.el-dropdown-link {
cursor: pointer;
color: var(--el-color-primary);
+ display: flex;
+ align-items: center;
}
}
diff --git a/docs/examples/dropdown/triggering-element.vue b/docs/examples/dropdown/triggering-element.vue
index a8bc9bef3a..ac6543842d 100644
--- a/docs/examples/dropdown/triggering-element.vue
+++ b/docs/examples/dropdown/triggering-element.vue
@@ -1,30 +1,32 @@
-
-
- Dropdown List
-
-
-
- Action 1
- Action 2
- Action 3
- Action 4
- Action 5
-
-
-
-
- Dropdown List
-
-
- Action 1
- Action 2
- Action 3
- Action 4
- Action 5
-
-
-
+
+
+
+ Dropdown List
+
+
+
+ Action 1
+ Action 2
+ Action 3
+ Action 4
+ Action 5
+
+
+
+
+ Dropdown List
+
+
+ Action 1
+ Action 2
+ Action 3
+ Action 4
+ Action 5
+
+
+
+