yirongjin
2025-07-23 c2da0b81321e66e3c3706d6833ad4c92c62d0935
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
<template>
    <div class="screen1-plan-warnings">
        <div class="box">
            <div class="title">计划异常:</div>
            <div class="infos">
                <auto-scroll :step-speed="$config.base.screen.screen1.scrollSpeed" dir="horizontal">
                    <template v-for="(item,index) in data">
                        <div class="divider" v-if="index!==0">|</div>
                        <div class="info-text no-wrap">{{index+1}}、{{item}}</div>
                    </template>
                </auto-scroll>
            </div>
        </div>
    </div>
</template>
 
<script>
import AutoScroll from '@/components/AutoScroll.vue'
export default {
    name:'screen1PlanWarnings',
    components:{AutoScroll},
    props:{
        data:{
            type:Array,
            default:function(){
                return []
            }
        }
    }
}
</script>
 
<style lang="scss" scoped>
.screen1-plan-warnings{
    padding: 0 64px;
    height: 100%;
    .box{
        $titleWidth:242px;
        height: 100%;
        box-sizing: border-box;
        border: 4px solid #0a95c5;
        font-size: 50px;
        position: relative;
        padding-left: $titleWidth;
        &>.title{
            padding-left: 16px;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            display: flex;
            align-items: center;
            color: #fff;
        }
        &>.infos{
            display: flex;
            color: red;
            height: 100%;
            .info-text,.divider{
                display: flex;
                align-items: center;
            }
            .info-text{
                height: 100%;
            }
            .divider{
                padding: 0 60px;
            }
        }
    }
}
</style>