diff --git a/src/components/slider/slider.vue b/src/components/slider/slider.vue index be9f082..a25edc3 100644 --- a/src/components/slider/slider.vue +++ b/src/components/slider/slider.vue @@ -184,6 +184,7 @@ } }); this.updateValue(val); + this.$emit('on-input', this.value); } }, methods: { diff --git a/test/routers/slider.vue b/test/routers/slider.vue index 2f89af8..770e9c2 100644 --- a/test/routers/slider.vue +++ b/test/routers/slider.vue @@ -1,19 +1,19 @@ - - - - - - - - - - - - + {{ value }} + + + + + + + + 附近的首付款是东方红看就是 + + iView + - +
附近的首付款是东方红看就是