Merge pull request #47 from Leopoldthecoder/master

fix a slider bug
This commit is contained in:
cinwell.li 2016-09-09 15:18:14 +08:00 committed by GitHub
commit 35be693bbc
4 changed files with 15 additions and 5 deletions

View File

@ -1,8 +1,14 @@
## 更新日志
### 1.0.0-rc.3
*2016-09-09*
- 修复 Slider 存在输入框时,输入框与 Slider 的值不同步的问题
### 1.0.0-rc.2
*2016-09-07*
*2016-09-09*
- 修复 Upload 上传的问题,并增加上传成功和失败的钩子函数
- Button 组件增加 `nativeType` 属性,用于组件内 `<button>` 标签的原生 `type` 属性,默认值为 `button`

View File

@ -4,9 +4,9 @@
return {
value1: 0,
value2: 50,
value3: null,
value4: null,
value5: null
value3: 0,
value4: 0,
value5: 0
};
}
}

View File

@ -95,6 +95,10 @@
};
},
watch: {
value(val) {
this.currentValue = val;
},
currentValue(newVal, oldVal) {
if (!isNaN(newVal) && newVal <= this.max && newVal >= this.min) {
this.$emit('change', newVal);

View File

@ -85,7 +85,7 @@
watch: {
inputValue(val) {
this.$emit('input', val);
this.$emit('input', Number(val));
},
showTip(val) {