<template>
<div>
<div>
<div class="box" v-for="(item, index) in numList" :key="index">
<span class="text">{{ leftList[index] }}</span>
<div class="schedule"><el-progress :percentage="50" v-show="leftList[index]==0||leftList[index]==180" :show-text="false"></el-progress></div>
<div class="machine">{{ "A" + item }}</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
numList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
leftList: [
215, 35, 143, 0, 112, 15, 312, 234, 180, 148, 95, 90, 80, 85, 94, 178,
],
};
},
methods: {},
};
</script>
<style scoped>
.box {
width: 6%;
height: 100px;
margin-right: 1px;
border: 1px #ccc solid;
display: inline-block;
position: relative;
background-color: #00b050;
cursor: pointer;
}
.box:hover {
background-color: #00b000;
}
.machine {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
.text {
font-size: 22px;
font-weight: bold;
margin-left: 5px;
margin-top: 5px;
}
.schedule {
}
</style>
elementul用进度条组件,放在代码里如何调整上下位置呢,这旁边的为都会掉下来
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
3条回答 默认 最新
- 众生皆苦唯有我甜 2022-04-15 16:13关注
.box 添加 overflow: hidden;
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 树莓派与pix飞控通信
- ¥15 自动转发微信群信息到另外一个微信群
- ¥15 outlook无法配置成功
- ¥30 这是哪个作者做的宝宝起名网站
- ¥60 版本过低apk如何修改可以兼容新的安卓系统
- ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
- ¥50 有数据,怎么建立模型求影响全要素生产率的因素
- ¥50 有数据,怎么用matlab求全要素生产率
- ¥15 TI的insta-spin例程
- ¥15 完成下列问题完成下列问题