mirror of https://github.com/ElemeFE/element
InputNumber: add placeholder attribute (#13275)
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 | - |
|
|controls-position | position of the control buttons | string | right | - |
|
||||||
|name | same as `name` in native input | string | — | — |
|
|name | same as `name` in native input | string | — | — |
|
||||||
|label | label text | string | — | — |
|
|label | label text | string | — | — |
|
||||||
|
|placeholder | placeholder in input | string | - | - |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
| Event Name | Description | Parameters |
|
| 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 | - |
|
| controls-position | posición de los botones de control | string | right | - |
|
||||||
| name | lo mismo que `name` en un input nativo | string | — | — |
|
| name | lo mismo que `name` en un input nativo | string | — | — |
|
||||||
| label | texto de la etiqueta | string | — | — |
|
| label | texto de la etiqueta | string | — | — |
|
||||||
|
| placeholder | placeholder in input | string | - | - |
|
||||||
|
|
||||||
### Eventos
|
### Eventos
|
||||||
|
|
||||||
| Nombre | Descripción | Parámetros |
|
| Nombre | Descripción | Parámetros |
|
||||||
|
|
|
@ -189,6 +189,8 @@
|
||||||
| controls-position | 控制按钮位置 | string | right | - |
|
| controls-position | 控制按钮位置 | string | right | - |
|
||||||
| name | 原生属性 | string | — | — |
|
| name | 原生属性 | string | — | — |
|
||||||
| label | 输入框关联的label文字 | string | — | — |
|
| label | 输入框关联的label文字 | string | — | — |
|
||||||
|
| placeholder | 输入框默认 placeholder | string | - | - |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
| 事件名称 | 说明 | 回调参数 |
|
| 事件名称 | 说明 | 回调参数 |
|
||||||
|---------|--------|---------|
|
|---------|--------|---------|
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
ref="input"
|
ref="input"
|
||||||
:value="currentInputValue"
|
:value="currentInputValue"
|
||||||
|
:placeholder="placeholder"
|
||||||
:disabled="inputNumberDisabled"
|
:disabled="inputNumberDisabled"
|
||||||
:size="inputNumberSize"
|
:size="inputNumberSize"
|
||||||
:max="max"
|
:max="max"
|
||||||
|
@ -91,6 +92,7 @@
|
||||||
},
|
},
|
||||||
name: String,
|
name: String,
|
||||||
label: String,
|
label: String,
|
||||||
|
placeholder: String,
|
||||||
precision: {
|
precision: {
|
||||||
type: Number,
|
type: Number,
|
||||||
validator(val) {
|
validator(val) {
|
||||||
|
|
Loading…
Reference in New Issue