iview/test/routers/tag.vue

27 lines
431 B
Vue
Raw Normal View History

2016-10-28 17:35:28 +08:00
<style>
body{
padding: 50px;
}
</style>
2016-09-21 18:44:07 +08:00
<template>
2016-10-28 17:35:28 +08:00
<Slider :value="10" :tip-format="format">
</Slider>
2016-09-21 18:44:07 +08:00
</template>
<script>
2016-10-28 17:35:28 +08:00
import { Slider } from 'iview';
2016-09-21 18:44:07 +08:00
export default {
2016-10-28 17:35:28 +08:00
components: { Slider },
data () {
return {
}
},
2016-09-21 18:44:07 +08:00
methods: {
2016-10-28 17:35:28 +08:00
format (val) {
return `进度:${val}%`
}
2016-09-21 18:44:07 +08:00
}
}
</script>