feat(DropdownMenu): add @dropdown-menu-box-shadow var

This commit is contained in:
chenjiahan
2020-07-31 20:09:57 +08:00
parent 69ac602bc2
commit 6d0c54e8f4
5 changed files with 39 additions and 10 deletions
+11 -3
View File
@@ -48,8 +48,16 @@ export default {
<van-dropdown-menu>
<van-dropdown-item v-model="value" :options="option" />
<van-dropdown-item title="Title" ref="item">
<van-switch-cell v-model="switch1" title="Title" />
<van-switch-cell v-model="switch2" title="Title" />
<van-cell center title="Title">
<template #right-icon>
<van-switch v-model="switch1" size="24" active-color="#ee0a24" />
</template>
</van-cell>
<van-cell center title="Title">
<template #right-icon>
<van-switch v-model="switch2" size="24" active-color="#ee0a24" />
</template>
</van-cell>
<div style="padding: 5px 16px;">
<van-button type="danger" block round @click="onConfirm">
Confirm
@@ -86,7 +94,7 @@ export default {
Use `active-color` prop to custom active color of the title and options
```html
<van-dropdown-menu active-color="#ee0a24">
<van-dropdown-menu active-color="#1989fa">
<van-dropdown-item v-model="value1" :options="option1" />
<van-dropdown-item v-model="value2" :options="option2" />
</van-dropdown-menu>