mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
InputNumber: add placeholder attribute (#13275)
This commit is contained in:
parent
f98e797d48
commit
bdc9363635
@ -191,6 +191,8 @@ Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
|
||||
|controls-position | position of the control buttons | string | right | - |
|
||||
|name | same as `name` in native input | string | — | — |
|
||||
|label | label text | string | — | — |
|
||||
|placeholder | placeholder in input | string | - | - |
|
||||
|
||||
### Events
|
||||
|
||||
| Event Name | Description | Parameters |
|
||||
|
@ -192,6 +192,8 @@ Utilice el atributo `size` para establecer tamaños adicionales con `medium`, `s
|
||||
| controls-position | posición de los botones de control | string | right | - |
|
||||
| name | lo mismo que `name` en un input nativo | string | — | — |
|
||||
| label | texto de la etiqueta | string | — | — |
|
||||
| placeholder | placeholder in input | string | - | - |
|
||||
|
||||
### Eventos
|
||||
|
||||
| Nombre | Descripción | Parámetros |
|
||||
|
@ -189,6 +189,8 @@
|
||||
| controls-position | 控制按钮位置 | string | right | - |
|
||||
| name | 原生属性 | string | — | — |
|
||||
| label | 输入框关联的label文字 | string | — | — |
|
||||
| placeholder | 输入框默认 placeholder | string | - | - |
|
||||
|
||||
### Events
|
||||
| 事件名称 | 说明 | 回调参数 |
|
||||
|---------|--------|---------|
|
||||
|
@ -29,6 +29,7 @@
|
||||
<el-input
|
||||
ref="input"
|
||||
:value="currentInputValue"
|
||||
:placeholder="placeholder"
|
||||
:disabled="inputNumberDisabled"
|
||||
:size="inputNumberSize"
|
||||
:max="max"
|
||||
@ -91,6 +92,7 @@
|
||||
},
|
||||
name: String,
|
||||
label: String,
|
||||
placeholder: String,
|
||||
precision: {
|
||||
type: Number,
|
||||
validator(val) {
|
||||
|
Loading…
Reference in New Issue
Block a user