2016-12-09 15:42:22 +08:00
|
|
|
<style>
|
|
|
|
.ivu-col div.aaaaa{
|
|
|
|
height: 100px;
|
|
|
|
line-height: 100px;
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 153, 229, .9);
|
|
|
|
}
|
|
|
|
.ivu-col:nth-child(odd) div.aaaaa{
|
|
|
|
background: rgba(0, 153, 229, .7);
|
2016-09-09 14:29:19 +08:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<template>
|
2016-12-09 15:42:22 +08:00
|
|
|
<Row>
|
|
|
|
<i-col :xs="2" :sm="4" :md="6" :lg="8"><div class="aaaaa">Col 1</div></i-col>
|
|
|
|
<i-col :xs="20" :sm="16" :md="12" :lg="8"><div class="aaaaa">Col 2</div></i-col>
|
|
|
|
<i-col :xs="2" :sm="4" :md="6" :lg="8"><div class="aaaaa">Col 3</div></i-col>
|
|
|
|
</Row>
|
2016-09-09 14:29:19 +08:00
|
|
|
<br><br>
|
2016-12-09 15:42:22 +08:00
|
|
|
<Row>
|
|
|
|
<i-col :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 1</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>
|
|
|
|
</Row>
|
2016-12-19 09:05:31 +08:00
|
|
|
<i-button @click="start">Start</i-button>
|
|
|
|
<i-button @click="finish">Finish</i-button>
|
|
|
|
<i-button @click="error">Error</i-button>
|
2016-09-09 14:29:19 +08:00
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
2016-12-19 09:05:31 +08:00
|
|
|
methods: {
|
|
|
|
start () {
|
|
|
|
this.$Loading.start();
|
|
|
|
},
|
|
|
|
finish () {
|
|
|
|
this.$Loading.finish();
|
|
|
|
},
|
|
|
|
error () {
|
|
|
|
this.$Loading.error();
|
|
|
|
}
|
|
|
|
}
|
2016-09-09 14:29:19 +08:00
|
|
|
}
|
2016-11-09 18:23:17 +08:00
|
|
|
</script>
|