docs: update component CSS variable names (#8857)

This commit is contained in:
neverland
2021-06-14 10:23:47 +08:00
committed by GitHub
parent 34a3fe8787
commit 8e3833acc8
122 changed files with 1755 additions and 1755 deletions
+15 -15
View File
@@ -169,20 +169,20 @@ Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Search
| left-icon | Custom left icon |
| right-icon | Custom right icon |
### Less Variables
### CSS Variables
How to use: [Custom Theme](#/en-US/theme).
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
| Name | Default Value | Description |
| -------------------------------- | ------------------ | ----------- |
| @search-padding | `10px @padding-sm` | - |
| @search-background-color | `@white` | - |
| @search-content-background-color | `@gray-1` | - |
| @search-input-height | `34px` | - |
| @search-label-padding | `0 5px` | - |
| @search-label-color | `@text-color` | - |
| @search-label-font-size | `@font-size-md` | - |
| @search-left-icon-color | `@gray-6` | - |
| @search-action-padding | `0 @padding-xs` | - |
| @search-action-text-color | `@text-color` | - |
| @search-action-font-size | `@font-size-md` | - |
| Name | Default Value | Description |
| ------------------------------------- | ------------------ | ----------- |
| --van-search-padding | `10px @padding-sm` | - |
| --van-search-background-color | `@white` | - |
| --van-search-content-background-color | `@gray-1` | - |
| --van-search-input-height | `34px` | - |
| --van-search-label-padding | `0 5px` | - |
| --van-search-label-color | `@text-color` | - |
| --van-search-label-font-size | `@font-size-md` | - |
| --van-search-left-icon-color | `@gray-6` | - |
| --van-search-action-padding | `0 @padding-xs` | - |
| --van-search-action-text-color | `@text-color` | - |
| --van-search-action-font-size | `@font-size-md` | - |
+14 -14
View File
@@ -183,21 +183,21 @@ export default {
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 |
| -------------------------------- | ------------------ | ---- |
| @search-padding | `10px @padding-sm` | - |
| @search-background-color | `@white` | - |
| @search-content-background-color | `@gray-1` | - |
| @search-input-height | `34px` | - |
| @search-label-padding | `0 5px` | - |
| @search-label-color | `@text-color` | - |
| @search-label-font-size | `@font-size-md` | - |
| @search-left-icon-color | `@gray-6` | - |
| @search-action-padding | `0 @padding-xs` | - |
| @search-action-text-color | `@text-color` | - |
| @search-action-font-size | `@font-size-md` | - |
| 名称 | 默认值 | 描述 |
| ------------------------------------- | ------------------ | ---- |
| --van-search-padding | `10px @padding-sm` | - |
| --van-search-background-color | `@white` | - |
| --van-search-content-background-color | `@gray-1` | - |
| --van-search-input-height | `34px` | - |
| --van-search-label-padding | `0 5px` | - |
| --van-search-label-color | `@text-color` | - |
| --van-search-label-font-size | `@font-size-md` | - |
| --van-search-left-icon-color | `@gray-6` | - |
| --van-search-action-padding | `0 @padding-xs` | - |
| --van-search-action-text-color | `@text-color` | - |
| --van-search-action-font-size | `@font-size-md` | - |
## 常见问题