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
+22 -22
View File
@@ -251,29 +251,29 @@ export default {
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 |
| ------------------------------------- | -------------------------- | ---- |
| @dialog-width | `320px` | - |
| @dialog-small-screen-width | `90%` | - |
| @dialog-font-size | `@font-size-lg` | - |
| @dialog-transition | `@animation-duration-base` | - |
| @dialog-border-radius | `16px` | - |
| @dialog-background-color | `@white` | - |
| @dialog-header-font-weight | `@font-weight-bold` | - |
| @dialog-header-line-height | `24px` | - |
| @dialog-header-padding-top | `26px` | - |
| @dialog-header-isolated-padding | `@padding-lg 0` | - |
| @dialog-message-padding | `@padding-lg` | - |
| @dialog-message-font-size | `@font-size-md` | - |
| @dialog-message-line-height | `@line-height-md` | - |
| @dialog-message-max-height | `60vh` | - |
| @dialog-has-title-message-text-color | `@gray-7` | - |
| @dialog-has-title-message-padding-top | `@padding-xs` | - |
| @dialog-button-height | `48px` | - |
| @dialog-round-button-height | `36px` | - |
| @dialog-confirm-button-text-color | `@red` | - |
| 名称 | 默认值 | 描述 |
| --- | --- | --- |
| --van-dialog-width | `320px` | - |
| --van-dialog-small-screen-width | `90%` | - |
| --van-dialog-font-size | `@font-size-lg` | - |
| --van-dialog-transition | `@animation-duration-base` | - |
| --van-dialog-border-radius | `16px` | - |
| --van-dialog-background-color | `@white` | - |
| --van-dialog-header-font-weight | `@font-weight-bold` | - |
| --van-dialog-header-line-height | `24px` | - |
| --van-dialog-header-padding-top | `26px` | - |
| --van-dialog-header-isolated-padding | `@padding-lg 0` | - |
| --van-dialog-message-padding | `@padding-lg` | - |
| --van-dialog-message-font-size | `@font-size-md` | - |
| --van-dialog-message-line-height | `@line-height-md` | - |
| --van-dialog-message-max-height | `60vh` | - |
| --van-dialog-has-title-message-text-color | `@gray-7` | - |
| --van-dialog-has-title-message-padding-top | `@padding-xs` | - |
| --van-dialog-button-height | `48px` | - |
| --van-dialog-round-button-height | `36px` | - |
| --van-dialog-confirm-button-text-color | `@red` | - |
## 常见问题