mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
Merge branch '2.x' into dev
This commit is contained in:
@@ -177,3 +177,22 @@ Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Dropdo
|
||||
| text | Text | _string_ |
|
||||
| value | Value | _number \| string_ |
|
||||
| icon | Left icon | _string_ |
|
||||
|
||||
### Less Variables
|
||||
|
||||
How to use: [Custom Theme](#/en-US/theme).
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| @dropdown-menu-height | `48px` | - |
|
||||
| @dropdown-menu-background-color | `@white` | - |
|
||||
| @dropdown-menu-box-shadow | `0 2px 12px fade(@gray-7, 12)` | - |
|
||||
| @dropdown-menu-title-font-size | `15px` | - |
|
||||
| @dropdown-menu-title-text-color | `@text-color` | - |
|
||||
| @dropdown-menu-title-active-text-color | `@red` | - |
|
||||
| @dropdown-menu-title-disabled-text-color | `@gray-6` | - |
|
||||
| @dropdown-menu-title-padding | `0 @padding-xs` | - |
|
||||
| @dropdown-menu-title-line-height | `@line-height-lg` | - |
|
||||
| @dropdown-menu-option-active-color | `@red` | - |
|
||||
| @dropdown-menu-content-max-height | `80%` | - |
|
||||
| @dropdown-item-z-index | `10` | - |
|
||||
|
@@ -185,3 +185,22 @@ export default {
|
||||
| text | 文字 | _string_ |
|
||||
| value | 标识符 | _number \| string_ |
|
||||
| icon | 左侧[图标名称](#/zh-CN/icon)或图片链接 | _string_ |
|
||||
|
||||
### 样式变量
|
||||
|
||||
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| @dropdown-menu-height | `48px` | - |
|
||||
| @dropdown-menu-background-color | `@white` | - |
|
||||
| @dropdown-menu-box-shadow | `0 2px 12px fade(@gray-7, 12)` | - |
|
||||
| @dropdown-menu-title-font-size | `15px` | - |
|
||||
| @dropdown-menu-title-text-color | `@text-color` | - |
|
||||
| @dropdown-menu-title-active-text-color | `@red` | - |
|
||||
| @dropdown-menu-title-disabled-text-color | `@gray-6` | - |
|
||||
| @dropdown-menu-title-padding | `0 @padding-xs` | - |
|
||||
| @dropdown-menu-title-line-height | `@line-height-lg` | - |
|
||||
| @dropdown-menu-option-active-color | `@red` | - |
|
||||
| @dropdown-menu-content-max-height | `80%` | - |
|
||||
| @dropdown-item-z-index | `10` | - |
|
||||
|
Reference in New Issue
Block a user