拖旺项目:聊城公交辅助决策系统
zhaoxing
2022-04-28 76950affed3e62fbc4e322432f874a2a797c0ba7
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
<template>
 <div class="v-data-board-item" :style="{'background': index%2 ? '' : 'rgba(115,172,230,0.15)', height: height + 'px',}">
     <div style="width: 30px;" class="ml20">
         <div :class="`_icon-${rank > 2 ? 'more' : rank+1 }`">{{rank+1}}</div>
     </div>
     
     <div class="flex-1 _ws-te t-center">{{item.column1}}</div>
     <div 
         :class="lastWidth ? '_table-num' : 'mr20 _table-num'"
        :style="lastWidth ? `width: ${lastWidth}px` : ''"
    >{{item.column2}}</div>
 </div>
</template>
 
<script>
export default {
 name: 'vueName',
 props: {
     lastWidth: [Number, String],
     index: [Number, String],
     item: Object,
     rank: [Number, String],
     height: {
         type: Number,
         default: 28
     }
 },
 data () {
     console.log(this.lastWidth, 'lastWidth');
     
    return {
        msg:'Welcome to your vueName'
    }
 }
}
</script>
 
<style lang="less">
.v-data-board-item {
    display: flex;
    color: #fff;
    align-items: center;
    ._table-num {
        font-family: "Digital";
        text-align: center;
        font-size: 16px;
 
    }
}
 
</style>