From 9d941272d5852e0a7b89913002c7d1ad1f013892 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 3 Sep 2019 10:05:11 +0800 Subject: [PATCH] docs(DropdownMenu): add demo of active-color (#4331) --- src/dropdown-menu/README.md | 11 +++++++++++ src/dropdown-menu/README.zh-CN.md | 11 +++++++++++ src/dropdown-menu/demo/index.vue | 19 +++++++++++++++++-- .../test/__snapshots__/demo.spec.js.snap | 12 ++++++++++++ 4 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/dropdown-menu/README.md b/src/dropdown-menu/README.md index 38272055c..ebbfa3829 100644 --- a/src/dropdown-menu/README.md +++ b/src/dropdown-menu/README.md @@ -77,6 +77,17 @@ export default { }; ``` +### Custom Active Color + +Use `active-color` prop to custom active color of the title and options + +```html + + + + +``` + ### Expand Direction ```html diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md index 3eeb4c1db..96132181e 100644 --- a/src/dropdown-menu/README.zh-CN.md +++ b/src/dropdown-menu/README.zh-CN.md @@ -79,6 +79,17 @@ export default { }; ``` +### 自定义选中态颜色 + +通过`active-color`属性可以自定义菜单标题和选项的选中态颜色 + +```html + + + + +``` + ### 向上展开 将`direction`属性值设置为`up`,菜单即可向上展开 diff --git a/src/dropdown-menu/demo/index.vue b/src/dropdown-menu/demo/index.vue index 07daa46a5..0844f410c 100644 --- a/src/dropdown-menu/demo/index.vue +++ b/src/dropdown-menu/demo/index.vue @@ -42,6 +42,19 @@ + + + + + + + +
+
+
全部商品
+
默认排序
+ + +
+
全部商品