123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <!-- eslint-disable vue/multi-word-component-names -->
- <template>
- <div class="mini-board" :class="`mini-board_${type}`">
- <template v-if="layout === 'val-top'">
- <slot name="value">
- <div class="mini-board__value" :class="`mini-board__value_${type}`">
- {{ value }}
- </div>
- </slot>
- <slot name="label">
- <div class="mini-board__label" :class="`mini-board__label_${type}`">
- {{ label }}
- </div>
- </slot>
- </template>
- <template v-if="layout === 'label-top'">
- <slot name="label">
- <div class="mini-board__label" :class="`mini-board__label_${type}`">
- {{ label }}
- </div>
- </slot>
- <slot name="value">
- <div class="mini-board__value" :class="`mini-board__value_${type}`">
- {{ value }}
- </div>
- </slot>
- </template>
- </div>
- </template>
- <script lang="ts" setup>
- withDefaults(
- defineProps<{
- label: string;
- value?: string;
- // 告示牌布局,类型为:'val-top' | 'label-top'
- layout: string;
- // 告示牌类型,类型为:'A' | 'B' | 'C' | 'D' | 'E' | 'F'
- type?: string;
- }>(),
- {
- value: '/',
- type: 'A',
- layout: 'val-top',
- }
- );
- defineEmits(['click']);
- </script>
- <style lang="less" scoped>
- @import '@/design/vent/color.less';
- .mini-board {
- height: 50px;
- line-height: 25px;
- width: 130px;
- padding: 0 5px 0 5px;
- // box-sizing: border-box;
- text-align: center;
- background-size: 100% 100%;
- position: relative;
- }
- .mini-board_A {
- width: 120px;
- height: 60px;
- background-image: url('@/assets/images/company/area3.png');
- background-size: 100% 100%;
- }
- .mini-board_B {
- width: 131px;
- height: 64px;
- background-image: url('@/assets/images/vent/value-bg.png');
- background-size: 100% auto;
- background-position: center bottom;
- background-repeat: no-repeat;
- }
- .mini-board_C {
- width: 121px;
- height: 69px;
- background-image: url('@/assets/images/vent/vent-param-bg.png');
- }
- .mini-board_D {
- width: 105px;
- height: 58px;
- background-image: url('@/assets/images/vent/home/mini-board-1.png');
- background-position: center bottom;
- background-repeat: no-repeat;
- }
- .mini-board_E {
- width: 30%;
- height: 200px;
- padding: 20px 5px;
- background-image: url('/@/assets/images/home-container/configurable/board_bg_1.png');
- background-position: center bottom;
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- .mini-board_F {
- width: 140px;
- height: 70px;
- background-image: url('/@/assets/images/home-container/configurable/firehome/miehuo.png');
- background-size: 100% 80%;
- background-position: center bottom;
- background-repeat: no-repeat;
- }
- .mini-board_G {
- width: 98px;
- height: 70px;
- background-image: url('@/assets/images/vent/value-bg-2.png');
- background-size: 100% auto;
- background-position: center bottom;
- background-repeat: no-repeat;
- }
- .mini-board__value_A {
- color: @vent-gas-primary-text;
- font-size: 20px;
- font-weight: bold;
- height: 30px;
- line-height: 30px;
- }
- // .mini-board__label_A {
- // }
- .mini-board__value_B {
- color: @vent-gas-primary-text;
- font-size: 20px;
- font-weight: bold;
- height: 40px;
- line-height: 40px;
- }
- .mini-board__label_B {
- line-height: 24px;
- height: 24px;
- }
- .mini-board__value_C {
- color: @vent-gas-primary-text;
- height: 40px;
- line-height: 40px;
- font-size: 20px;
- font-weight: bold;
- }
- // .mini-board__label_C {
- // }
- .mini-board__value_D {
- font-size: 20px;
- font-weight: bold;
- height: 40px;
- line-height: 40px;
- }
- .mini-board__label_D {
- line-height: 17px;
- height: 17px;
- }
- .mini-board__value_E {
- font-size: 20px;
- font-weight: bold;
- line-height: 76px;
- }
- .mini-board__label_E {
- line-height: 17px;
- height: 80px;
- padding-top: 60px;
- background-repeat: no-repeat;
- background-position: center top;
- }
- .mini-board__value_F {
- font-size: 20px;
- font-weight: bold;
- color: @vent-gas-primary-text;
- }
- .mini-board__label_F {
- line-height: 50px;
- }
- .mini-board__value_G {
- color: @vent-gas-primary-text;
- font-size: 20px;
- font-weight: bold;
- height: 42px;
- line-height: 42px;
- }
- .mini-board__label_G {
- line-height: 20px;
- height: 20px;
- }
- .mini-board_E:nth-child(1) {
- .mini-board__label_E {
- background-image: url(/@/assets/images/home-container/configurable/dusthome/hycd.png);
- }
- }
- .mini-board_E:nth-child(2) {
- .mini-board__label_E {
- background-image: url(/@/assets/images/home-container/configurable/dusthome/dyfl.png);
- }
- }
- .mini-board_E:nth-child(3) {
- .mini-board__label_E {
- background-image: url(/@/assets/images/home-container/configurable/dusthome/jdjl.png);
- }
- }
- </style>
|