Commit 35be693b authored by cinwell.li's avatar cinwell.li Committed by GitHub

Merge pull request #47 from Leopoldthecoder/master

fix a slider bug
parents 63db941e de94e0c0
## 更新日志
### 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`
......
......@@ -4,9 +4,9 @@
return {
value1: 0,
value2: 50,
value3: null,
value4: null,
value5: null
value3: 0,
value4: 0,
value5: 0
};
}
}
......
......@@ -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);
......
......@@ -85,7 +85,7 @@
watch: {
inputValue(val) {
this.$emit('input', val);
this.$emit('input', Number(val));
},
showTip(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment