Merge pull request #2058 from SergioCrisostomo/add-readonly
Add readonly prop to input-number
This commit is contained in:
commit
9271ce9d42
1 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
|||
@blur="blur"
|
||||
@keydown.stop="keyDown"
|
||||
@change="change"
|
||||
:readonly="readonly"
|
||||
:name="name"
|
||||
:value="precisionValue">
|
||||
</div>
|
||||
|
@ -97,6 +98,10 @@
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
readonly: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
|
@ -183,7 +188,7 @@
|
|||
this.changeStep('down', e);
|
||||
},
|
||||
changeStep (type, e) {
|
||||
if (this.disabled) {
|
||||
if (this.disabled || this.readonly) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue