fixed #133
This commit is contained in:
梁灏 2016-12-19 09:05:31 +08:00
parent cbd3591c96
commit 6e572d4428
4 changed files with 20 additions and 2 deletions

View file

@ -44,6 +44,8 @@ function clearTimer() {
export default {
start () {
if (timer) return;
let percent = 0;
update({

View file

@ -192,6 +192,9 @@
padding: @btn-padding-large;
transition: all @transition-time @ease-in-out;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&:hover{
background: @border-color-split;

View file

@ -59,7 +59,7 @@
}
},
{
text: '一周前',
text: '最近三个月',
value () {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);

View file

@ -22,9 +22,22 @@
<i-col :xs="{ span: 11, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 2</div></i-col>
<i-col :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 3</div></i-col>
</Row>
<i-button @click="start">Start</i-button>
<i-button @click="finish">Finish</i-button>
<i-button @click="error">Error</i-button>
</template>
<script>
export default {
methods: {
start () {
this.$Loading.start();
},
finish () {
this.$Loading.finish();
},
error () {
this.$Loading.error();
}
}
}
</script>