screenFront/src/views/MicroExhibition/component/StepItem.vue
2023-12-06 15:18:31 +08:00

72 lines
1.5 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">{{ 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>