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
+25
View File
@@ -287,3 +287,28 @@ Use [ref](https://vuejs.org/v2/api/#ref) to get Field instance and call instance
| right-icon | Custom right icon |
| button | Insert button |
| extra `v2.8.2` | Custom content on the right |
### Less Variables
How to use: [Custom Theme](#/en-US/theme).
| Name | Default Value | Description |
| -------------------------------- | --------------- | ----------- |
| @field-label-width | `6.2em` | - |
| @field-label-color | `@gray-7` | - |
| @field-label-margin-right | `@padding-sm` | - |
| @field-input-text-color | `@text-color` | - |
| @field-input-error-text-color | `@red` | - |
| @field-input-disabled-text-color | `@gray-5` | - |
| @field-placeholder-text-color | `@gray-5` | - |
| @field-icon-size | `16px` | - |
| @field-clear-icon-size | `16px` | - |
| @field-clear-icon-color | `@gray-5` | - |
| @field-right-icon-color | `@gray-6` | - |
| @field-error-message-color | `@red` | - |
| @field-error-message-text-color | `12px` | - |
| @field-text-area-min-height | `60px` | - |
| @field-word-limit-color | `@gray-7` | - |
| @field-word-limit-font-size | `@font-size-sm` | - |
| @field-word-limit-line-height | `16px` | - |
| @field-disabled-text-color | `@gray-5` | - |
+25
View File
@@ -313,6 +313,31 @@ export default {
| button | 自定义输入框尾部按钮 |
| extra `v2.8.2` | 自定义输入框最右侧的额外内容 |
### 样式变量
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
| 名称 | 默认值 | 描述 |
| -------------------------------- | --------------- | ---- |
| @field-label-width | `6.2em` | - |
| @field-label-color | `@gray-7` | - |
| @field-label-margin-right | `@padding-sm` | - |
| @field-input-text-color | `@text-color` | - |
| @field-input-error-text-color | `@red` | - |
| @field-input-disabled-text-color | `@gray-5` | - |
| @field-placeholder-text-color | `@gray-5` | - |
| @field-icon-size | `16px` | - |
| @field-clear-icon-size | `16px` | - |
| @field-clear-icon-color | `@gray-5` | - |
| @field-right-icon-color | `@gray-6` | - |
| @field-error-message-color | `@red` | - |
| @field-error-message-text-color | `12px` | - |
| @field-text-area-min-height | `60px` | - |
| @field-word-limit-color | `@gray-7` | - |
| @field-word-limit-font-size | `@font-size-sm` | - |
| @field-word-limit-line-height | `16px` | - |
| @field-disabled-text-color | `@gray-5` | - |
## 常见问题
### 设置 type 为 number 后,为什么 input 标签的类型仍为 text?