index.vue
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<template>
<div class="panel content_box">
<el-card class="panel_left">
<div slot="header" class="clearfix">
<span>工作箱</span>
</div>
<div>
工作箱内容
</div>
</el-card>
<el-card class="panel_right">
<div slot="header" class="clearfix">
<span>快捷入口</span>
</div>
<div class="enter_box">
<div class="box" v-for="(item, index) in list" :key="index" @click="handleSelect">{{ item }}</div>
</div>
</el-card>
</div>
</template>
<script>
export default {
data() {
return {
list: ["创建文章", "创建公告", "预约统计"],
};
},
methods: {
handleSelect() {},
}
};
</script>
<style rel="stylesheet/less" lang="less">
.panel {
@flex();
width:100%;
.panel_left {
width: 30%;
margin-right: @30px;
}
.panel_right {
width: 50%;
.enter_box{
@flex();
div{
width: 100px;
height: 100px;
@flex-center();
background-color: @tablebg;
margin-left:@30px;
cursor: pointer;
}
}
}
}
</style>