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
+17 -17
View File
@@ -133,22 +133,22 @@ Use `badge` prop to show badge in icon.
| ------- | -------------- |
| default | Button content |
### 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 |
| --------------------------------- | ------------------ | ----------- |
| @action-bar-background-color | `@white` | - |
| @action-bar-height | `50px` | - |
| @action-bar-icon-width | `48px` | - |
| @action-bar-icon-height | `100%` | - |
| @action-bar-icon-color | `@text-color` | - |
| @action-bar-icon-size | `18px` | - |
| @action-bar-icon-font-size | `@font-size-xs` | - |
| @action-bar-icon-active-color | `@active-color` | - |
| @action-bar-icon-text-color | `@gray-7` | - |
| @action-bar-icon-background-color | `@white` | - |
| @action-bar-button-height | `40px` | - |
| @action-bar-button-warning-color | `@gradient-orange` | - |
| @action-bar-button-danger-color | `@gradient-red` | - |
| Name | Default Value | Description |
| -------------------------------------- | ------------------ | ----------- |
| --van-action-bar-background-color | `@white` | - |
| --van-action-bar-height | `50px` | - |
| --van-action-bar-icon-width | `48px` | - |
| --van-action-bar-icon-height | `100%` | - |
| --van-action-bar-icon-color | `@text-color` | - |
| --van-action-bar-icon-size | `18px` | - |
| --van-action-bar-icon-font-size | `@font-size-xs` | - |
| --van-action-bar-icon-active-color | `@active-color` | - |
| --van-action-bar-icon-text-color | `@gray-7` | - |
| --van-action-bar-icon-background-color | `@white` | - |
| --van-action-bar-button-height | `40px` | - |
| --van-action-bar-button-warning-color | `@gradient-orange` | - |
| --van-action-bar-button-danger-color | `@gradient-red` | - |
+17 -17
View File
@@ -113,7 +113,7 @@ export default {
### ActionBarButton Props
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| --- | --- | --- | --- | --- |
| text | 按钮文字 | _string_ | - |
| type | 按钮类型,可选值为 `primary` `info` `warning` `danger` | _string_ | `default` |
| color | 按钮颜色,支持传入 `linear-gradient` 渐变色 | _string_ | - |
@@ -139,20 +139,20 @@ export default {
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 |
| --------------------------------- | ------------------ | ---- |
| @action-bar-background-color | `@white` | - |
| @action-bar-height | `50px` | - |
| @action-bar-icon-width | `48px` | - |
| @action-bar-icon-height | `100%` | - |
| @action-bar-icon-color | `@text-color` | - |
| @action-bar-icon-size | `18px` | - |
| @action-bar-icon-font-size | `@font-size-xs` | - |
| @action-bar-icon-active-color | `@active-color` | - |
| @action-bar-icon-text-color | `@gray-7` | - |
| @action-bar-icon-background-color | `@white` | - |
| @action-bar-button-height | `40px` | - |
| @action-bar-button-warning-color | `@gradient-orange` | - |
| @action-bar-button-danger-color | `@gradient-red` | - |
| 名称 | 默认值 | 描述 |
| -------------------------------------- | ------------------ | ---- |
| --van-action-bar-background-color | `@white` | - |
| --van-action-bar-height | `50px` | - |
| --van-action-bar-icon-width | `48px` | - |
| --van-action-bar-icon-height | `100%` | - |
| --van-action-bar-icon-color | `@text-color` | - |
| --van-action-bar-icon-size | `18px` | - |
| --van-action-bar-icon-font-size | `@font-size-xs` | - |
| --van-action-bar-icon-active-color | `@active-color` | - |
| --van-action-bar-icon-text-color | `@gray-7` | - |
| --van-action-bar-icon-background-color | `@white` | - |
| --van-action-bar-button-height | `40px` | - |
| --van-action-bar-button-warning-color | `@gradient-orange` | - |
| --van-action-bar-button-danger-color | `@gradient-red` | - |