docs: display all less variables (#7604)

This commit is contained in:
neverland
2020-11-22 16:02:46 +08:00
committed by GitHub
parent 0b2b3a91b5
commit 862adcd8eb
126 changed files with 2330 additions and 14 deletions
+29
View File
@@ -197,3 +197,32 @@ export default {
| --------------------- | ------------------ |
| default | Custom content |
| description `v2.10.4` | Custom description |
### Less Variables
How to use: [Custom Theme](#/en-US/theme).
| Name | Default Value | Description |
| -------------------------------------- | ------------------- | ----------- |
| @action-sheet-max-height | `80%` | - |
| @action-sheet-header-height | `48px` | - |
| @action-sheet-header-font-size | `@font-size-lg` | - |
| @action-sheet-description-color | `@gray-6` | - |
| @action-sheet-description-font-size | `@font-size-md` | - |
| @action-sheet-description-line-height | `@line-height-md` | - |
| @action-sheet-item-background | `@white` | - |
| @action-sheet-item-font-size | `@font-size-lg` | - |
| @action-sheet-item-line-height | `@line-height-lg` | - |
| @action-sheet-item-text-color | `@text-color` | - |
| @action-sheet-item-disabled-text-color | `@gray-5` | - |
| @action-sheet-subname-color | `@gray-6` | - |
| @action-sheet-subname-font-size | `@font-size-sm` | - |
| @action-sheet-subname-line-height | `@line-height-sm` | - |
| @action-sheet-close-icon-size | `22px` | - |
| @action-sheet-close-icon-color | `@gray-5` | - |
| @action-sheet-close-icon-active-color | `@gray-6` | - |
| @action-sheet-close-icon-padding | `0 @padding-md` | - |
| @action-sheet-cancel-text-color | `@gray-7` | - |
| @action-sheet-cancel-padding-top | `@padding-xs` | - |
| @action-sheet-cancel-padding-color | `@background-color` | - |
| @action-sheet-loading-icon-size | `22px` | - |
+29
View File
@@ -206,6 +206,35 @@ export default {
| default | 自定义面板的展示内容 |
| description `v2.10.4` | 自定义描述文案 |
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
| 名称 | 默认值 | 描述 |
| -------------------------------------- | ------------------- | ---- |
| @action-sheet-max-height | `80%` | - |
| @action-sheet-header-height | `48px` | - |
| @action-sheet-header-font-size | `@font-size-lg` | - |
| @action-sheet-description-color | `@gray-6` | - |
| @action-sheet-description-font-size | `@font-size-md` | - |
| @action-sheet-description-line-height | `@line-height-md` | - |
| @action-sheet-item-background | `@white` | - |
| @action-sheet-item-font-size | `@font-size-lg` | - |
| @action-sheet-item-line-height | `@line-height-lg` | - |
| @action-sheet-item-text-color | `@text-color` | - |
| @action-sheet-item-disabled-text-color | `@gray-5` | - |
| @action-sheet-subname-color | `@gray-6` | - |
| @action-sheet-subname-font-size | `@font-size-sm` | - |
| @action-sheet-subname-line-height | `@line-height-sm` | - |
| @action-sheet-close-icon-size | `22px` | - |
| @action-sheet-close-icon-color | `@gray-5` | - |
| @action-sheet-close-icon-active-color | `@gray-6` | - |
| @action-sheet-close-icon-padding | `0 @padding-md` | - |
| @action-sheet-cancel-text-color | `@gray-7` | - |
| @action-sheet-cancel-padding-top | `@padding-xs` | - |
| @action-sheet-cancel-padding-color | `@background-color` | - |
| @action-sheet-loading-icon-size | `22px` | - |
## 常见问题
### 引入时提示 dependencies not found