screenFront/src/views/MicroExhibition/component/StepItem.vue

72 lines
1.5 KiB
Vue
Raw Normal View History

2023-12-06 07:18:31 +00:00
<!--
* @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">{{ prop.data.name }}</div>
<div class="step-bottom">
<div class="step-total">总数{{ prop.data.total }}</div>
<div class="step-online">在线{{ prop.data.total }}</div>
</div>
</div>
</template>
<script setup lang='ts'>
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>