parent
cbd3591c96
commit
6e572d4428
4 changed files with 20 additions and 2 deletions
|
@ -44,6 +44,8 @@ function clearTimer() {
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
start () {
|
start () {
|
||||||
|
if (timer) return;
|
||||||
|
|
||||||
let percent = 0;
|
let percent = 0;
|
||||||
|
|
||||||
update({
|
update({
|
||||||
|
|
|
@ -192,6 +192,9 @@
|
||||||
padding: @btn-padding-large;
|
padding: @btn-padding-large;
|
||||||
transition: all @transition-time @ease-in-out;
|
transition: all @transition-time @ease-in-out;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&:hover{
|
&:hover{
|
||||||
background: @border-color-split;
|
background: @border-color-split;
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '一周前',
|
text: '最近三个月',
|
||||||
value () {
|
value () {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
|
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
|
||||||
|
|
|
@ -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: 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>
|
<i-col :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 3</div></i-col>
|
||||||
</Row>
|
</Row>
|
||||||
|
<i-button @click="start">Start</i-button>
|
||||||
|
<i-button @click="finish">Finish</i-button>
|
||||||
|
<i-button @click="error">Error</i-button>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
methods: {
|
||||||
|
start () {
|
||||||
|
this.$Loading.start();
|
||||||
|
},
|
||||||
|
finish () {
|
||||||
|
this.$Loading.finish();
|
||||||
|
},
|
||||||
|
error () {
|
||||||
|
this.$Loading.error();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue