77 lines
1.8 KiB
Vue
77 lines
1.8 KiB
Vue
<!--
|
||
* @Author: hzz hzz
|
||
* @Date: 2023-12-06 08:05:31
|
||
* @LastEditors: hzz hzz
|
||
* @LastEditTime: 2023-12-06 08:28:40
|
||
* @FilePath: \screenFront\src\views\MicroExhibition\component\StepItem.vue
|
||
* @Description:
|
||
*
|
||
* Copyright (c) 2023 by ${hzz}, All Rights Reserved.
|
||
-->
|
||
<template>
|
||
<div class="stepContainer">
|
||
<div class="step-top" :style="{'font-size':lang!='简体中文'?'24px':'22px'}">{{ prop.data.name }}</div>
|
||
<div class="step-bottom">
|
||
<div class="step-total">{{t("default.总数")}}:{{ prop.data.total +' '+ t("default.台") }}</div>
|
||
<div class="step-online">{{t("default.在线")}}:{{ prop.data.online +' '+ t("default.台") }}</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang='ts'>
|
||
import {computed,ref } from 'vue'
|
||
import { getStoredLanguage, saveStoredLanguage } from "@/utils/languageStorage";
|
||
import { useI18n } from 'vue-i18n'
|
||
let lang = ref(getStoredLanguage());
|
||
let { t } = useI18n();
|
||
const prop = defineProps({
|
||
data: {
|
||
type: Object,
|
||
default: {
|
||
name: '裁剪',
|
||
total: 0,
|
||
online: 0,
|
||
}
|
||
}
|
||
})
|
||
</script>
|
||
|
||
<style scoped>
|
||
.stepContainer {
|
||
width: 170px;
|
||
height: 88px;
|
||
background: url('./../images/step_item.png') no-repeat;
|
||
background-size: 100% 100%;
|
||
font-family: "华文新魏", sans-serif;
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
font-size: 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.step-top {
|
||
width: 100%;
|
||
height: 36px;
|
||
text-align: center;
|
||
font-size: 28px;
|
||
color: #00FFFF;
|
||
padding-left: 20px;
|
||
}
|
||
.step-bottom {
|
||
width: 100%;
|
||
height: 51px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-around;
|
||
align-items: center;
|
||
padding-left: 20px;
|
||
}
|
||
.step-online {
|
||
color: #7CFfB2FE;
|
||
}
|
||
</style>
|