docs(Field): improve input slot description (#8710)

This commit is contained in:
neverland 2021-05-16 15:48:30 +08:00 committed by GitHub
parent 940b711b8f
commit d9c3050542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,14 +317,14 @@ export default {
### Slots
| 名称 | 说明 |
| ---------- | ---------------------------------------------------------- |
| label | 自定义输入框左侧文本 |
| input | 自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效 |
| left-icon | 自定义输入框头部图标 |
| right-icon | 自定义输入框尾部图标 |
| button | 自定义输入框尾部按钮 |
| extra | 自定义输入框最右侧的额外内容 |
| 名称 | 说明 |
| --- | --- |
| label | 自定义输入框左侧文本 |
| input | 自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value` |
| left-icon | 自定义输入框头部图标 |
| right-icon | 自定义输入框尾部图标 |
| button | 自定义输入框尾部按钮 |
| extra | 自定义输入框最右侧的额外内容 |
### 样式变量