Commit 78f16ed43a9cf319d3bbd88d4219f498b24f853d
Committed by
GitHub

1 parent
ae02246a
修复<Silder> BUG
修复<Silder> 显示数字输入框时, 清空输入框会导致组件失效
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/slider/slider.vue
@@ -379,7 +379,7 @@ | @@ -379,7 +379,7 @@ | ||
379 | }, | 379 | }, |
380 | 380 | ||
381 | handleInputChange (val) { | 381 | handleInputChange (val) { |
382 | - this.currentValue = [val, this.currentValue[1]]; | 382 | + this.currentValue = [val || this.min, this.currentValue[1]]; |
383 | this.emitChange(); | 383 | this.emitChange(); |
384 | }, | 384 | }, |
385 | 385 |