screenFront/src/views/Exhibition/SCISMA/components/StepItem.vue
2024-03-14 17:07:42 +08:00

77 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
* @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('./../../../../assets/img/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>