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
| <template>
| <div class="menuBox">
| <div v-if="parentData == '房产'" class="cellMenu cellMenu1">房产</div>
| <div v-if="parentData == '土地'" class="cellMenu cellMenu2">土地</div>
| <div v-if="parentData == '无形类资产'" class="cellMenu cellMenu3">无形类资产</div>
| </div>
| </template>
|
| <script setup>
| import { ref, defineProps, defineEmits } from 'vue';
| defineProps({
| parentData: {
| type: String,
| default: null
| }
| });
| </script>
|
| <style lang="less">
| .menuBox {
| .cellMenu {
| width: 80px;
| height: 22px;
| opacity: 1;
| border-radius: 4px;
| text-align: center;
| }
|
| .cellMenu3 {
| border: 1px solid rgba(136, 114, 224, 1);
| color: rgba(139, 23, 255, 1);
| background: rgba(230, 232, 255, 1);
| }
|
| .cellMenu2 {
| color: rgba(219, 163, 33, 1);
| background: rgba(255, 247, 230, 1);
| border: 1px solid rgba(224, 188, 114, 1);
| }
|
| .cellMenu1 {
| border: 1px solid rgba(114, 224, 177, 1);
| color: rgba(36, 199, 123, 1);
| background: rgba(230, 255, 241, 1);
| }
| }
| </style>
|
|