mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Field: add left-icon slot (#1973)
This commit is contained in:
parent
d0b8595b50
commit
dd9d0e856b
@ -154,5 +154,6 @@ Use ref to get field instance and call instance methods
|
|||||||
| name | Description |
|
| name | Description |
|
||||||
|------|------|
|
|------|------|
|
||||||
| label | Custom label |
|
| label | Custom label |
|
||||||
| icon | Custom icon |
|
| left-icon | Custom left icon |
|
||||||
|
| icon | Custom right icon |
|
||||||
| button | Insert button |
|
| button | Insert button |
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
'min-height': type === 'textarea' && !autosize
|
'min-height': type === 'textarea' && !autosize
|
||||||
})"
|
})"
|
||||||
>
|
>
|
||||||
|
<slot name="left-icon" slot="icon" />
|
||||||
<slot name="label" slot="title" />
|
<slot name="label" slot="title" />
|
||||||
<div :class="b('body')">
|
<div :class="b('body')">
|
||||||
<textarea
|
<textarea
|
||||||
|
@ -156,5 +156,6 @@ Field 默认支持 Input 标签所有的原生事件,如 `focus`、`blur`、`k
|
|||||||
| 名称 | 说明 |
|
| 名称 | 说明 |
|
||||||
|------|------|
|
|------|------|
|
||||||
| label | 自定义输入框标签 |
|
| label | 自定义输入框标签 |
|
||||||
|
| left-icon | 自定义输入框头部图标 |
|
||||||
| icon | 自定义输入框尾部图标 |
|
| icon | 自定义输入框尾部图标 |
|
||||||
| button | 自定义输入框尾部按钮 |
|
| button | 自定义输入框尾部按钮 |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user