iview/local/routers/tag.vue

52 lines
1.1 KiB
Vue
Raw Normal View History

2016-09-21 18:44:07 +08:00
<template>
<div>
<Button @click="start">start</Button>
<Button @click="destroy">destroy</Button>
<Button @click="finish">finish</Button>
<Button @click="error">error</Button>
<Button @click="update">update</Button>
</div>
2016-09-21 18:44:07 +08:00
</template>
<script>
import { Tag, LoadingBar, Button } from 'iview';
2016-09-21 18:44:07 +08:00
export default {
components: {
Tag,
Button
2016-09-21 18:44:07 +08:00
},
props: {
},
data () {
return {
}
},
computed: {
},
methods: {
start () {
LoadingBar.start();
},
destroy () {
LoadingBar.destroy();
},
finish () {
LoadingBar.finish();
},
error () {
LoadingBar.error();
},
update () {
LoadingBar.update(50);
}
},
ready () {
LoadingBar.start();
setTimeout(function () {
LoadingBar.finish();
}, 2000)
2016-09-21 18:44:07 +08:00
}
}
</script>