docs(DropdownMenu): add demo of active-color (#4331)

This commit is contained in:
neverland
2019-09-03 10:05:11 +08:00
committed by GitHub
parent ad4f76bdbd
commit 9d941272d5
4 changed files with 51 additions and 2 deletions
+11
View File
@@ -79,6 +79,17 @@ export default {
};
```
### 自定义选中态颜色
通过`active-color`属性可以自定义菜单标题和选项的选中态颜色
```html
<van-dropdown-menu active-color="#f44">
<van-dropdown-item v-model="value1" :options="option1" />
<van-dropdown-item v-model="value2" :options="option2" />
</van-dropdown-menu>
```
### 向上展开
将`direction`属性值设置为`up`,菜单即可向上展开