Merge pull request #4474 from dailyvuejs/2.0

polish: input-number
This commit is contained in:
Aresn 2018-09-10 10:28:03 +08:00 committed by GitHub
commit e67a18e3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,9 +80,9 @@
type: Number, type: Number,
default: 1 default: 1
}, },
activeChange:{ activeChange: {
type:Boolean, type: Boolean,
default:true default: true
}, },
value: { value: {
type: Number, type: Number,
@ -314,7 +314,6 @@
}, },
changeVal (val) { changeVal (val) {
val = Number(val); val = Number(val);
//this.setValue(val);
if (!isNaN(val)) { if (!isNaN(val)) {
const step = this.step; const step = this.step;