input-number auto adjust min max value

This commit is contained in:
baiyaaaaa
2017-01-12 01:52:57 +08:00
committed by 杨奕
parent bbd779c26f
commit accebb772b
2 changed files with 16 additions and 21 deletions

View File

@@ -249,7 +249,7 @@ describe('InputNumber', () => {
const inputNumber = vm.$refs.inputNumber;
vm.value = 100;
vm.$nextTick(_ => {
expect(inputNumber.currentValue).to.be.equal(5);
expect(inputNumber.currentValue).to.be.equal(10);
vm.value = 4;
vm.$nextTick(_ => {