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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
| <template>
| <div
| style="width: 100%;height: 100%"
| class="bs-design-wrap"
| >
| <dv-border-box-5
| :id="'dataV' + code"
| :key="updateKey"
| :color="color"
| :background-color="colorType === 'single' ? backgroundColor : `url(#${borderBgId})`"
| :reverse="reverse"
| />
| </div>
| </template>
| <script>
| import { dataVMixins } from 'data-room-ui/js/mixins/dataVMixins'
| import DvBorderBox5 from '@jiaminghi/data-view/lib/components/borderBox5/src/main.vue'
| import '@jiaminghi/data-view/lib/components/borderBox5/src/main.css'
| export default {
| name: 'Border5',
| components: {
| DvBorderBox5
| },
| mixins: [dataVMixins],
| computed: {
| reverse () {
| return this.config.customize.reverse
| }
| },
| watch: {},
| mounted () {},
| methods: {}
| }
| </script>
|
| <style lang="scss" scoped>
| .bs-design-wrap {
| position: relative;
| width: 100%;
| height: 100%;
| background-color: transparent;
| border-radius: 4px;
| box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
| box-sizing: border-box;
| }
|
| .title-box {
| height: 40px;
| padding: 10px 10px 0 0;
| box-sizing: border-box;
|
| .title {
| font-size: 14px;
| color: #333;
| font-weight: bold;
| border-left: 3px solid var(--bs-el-color-primary);
| padding-left: 16px;
| }
|
| .target-value {
| overflow-y: auto;
| height: 60px;
| font-weight: bold;
| width: 100%;
| font-size: 20px;
| color: #333;
| padding: 16px 0 0 22px;
| box-sizing: border-box;
| }
| }
|
| .el-icon-warning {
| color: #ffd600;
| }
|
| .title-hover {
| &:hover {
| cursor: move;
| }
| }
|
| /*滚动条样式*/
| ::v-deep ::-webkit-scrollbar {
| width: 4px;
| border-radius: 4px;
| height: 4px;
| }
|
| ::v-deep ::-webkit-scrollbar-thumb {
| background: #dddddd !important;
| border-radius: 10px;
| }
| </style>
|
|