2017-03-02 14:41:28 +08:00
|
|
|
<template>
|
|
|
|
<div>
|
2017-03-14 11:25:21 +08:00
|
|
|
<i-progress :percent="percent"></i-progress>
|
2017-03-02 14:41:28 +08:00
|
|
|
<Button-group size="large">
|
|
|
|
<Button icon="ios-plus-empty" @click.native="add"></Button>
|
|
|
|
<Button icon="ios-minus-empty" @click.native="minus"></Button>
|
|
|
|
</Button-group>
|
2017-03-14 11:25:21 +08:00
|
|
|
<i-progress :percent="25" :stroke-width="5"></i-progress>
|
|
|
|
<i-progress :percent="100">
|
2017-03-02 14:41:28 +08:00
|
|
|
<Icon type="checkmark-circled"></Icon>
|
|
|
|
<span>成功</span>
|
2017-03-14 11:25:21 +08:00
|
|
|
</i-progress>
|
2017-07-21 12:36:16 -05:00
|
|
|
<i-progress :percent="percent"></i-progress>
|
|
|
|
<div style="height: 150px">
|
|
|
|
<i-progress vertical :percent="percent" :stroke-width="20" hide-info></i-progress>
|
|
|
|
<i-progress vertical :percent="percent"></i-progress>
|
|
|
|
</div>
|
2017-03-02 14:41:28 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
percent: 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
add () {
|
|
|
|
if (this.percent >= 100) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
this.percent += 10;
|
|
|
|
},
|
|
|
|
minus () {
|
|
|
|
if (this.percent <= 0) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
this.percent -= 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|