当前位置:网站首页>自定义封装弹出框(带进度条)
自定义封装弹出框(带进度条)
2022-07-23 10:54:00 【Cc_Debugger】

<div class="window" v-show="progressShow" @click="progressShow = false">
<div class="modular-content">
<div class="progress">
<div class="progress-title">{
{ Progress.title }}</div>
<div class="progress-content">
<span>{
{ Progress.text }}</span>
<span>{
{ Progress.company }}</span>
</div>
<div class="tab-list" v-for="(item, index) in Progress.list" :key="index" >
<div class="left">{
{ item.title }}</div>
<div class="center">
<div class="center-top"></div>
<div class="center-bottom" :style="{ width: Progress.id != 2 ? item.num : toPercent(item.num, 400), }" ></div>
</div>
<div class="right">{
{ item.num }}</div>
</div>
</div>
</div>
</div>
methods: {
toPercent(num, total) {
return Math.round((num / total) * 10000) / 100.0 + "%";
},
}
.window {
position: fixed;
width: 100%;
height: 100%;
background: #0000005c;
top: 0;
z-index: 9999;
}
.modular-content {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.progress-content {
display: flex;
justify-content: space-between;
/* text-align: right; */
font-size: 20px;
margin-bottom: 10px;
}
.progress-title {
font-size: 24px;
font-weight: 500;
margin-bottom: 20px;
}
.progress {
width: 500px;
background: #142235;
color: #fff;
padding: 20px;
border-radius: 6px;
}
.progress .tab-list {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 20px;
margin-bottom: 10px;
}
.tab-list .center {
flex: 1;
margin: 0px 10px;
position: relative;
height: 15px;
}
.center-top {
background: #193369;
height: 100%;
width: 100%;
border-radius: 30px;
}
.center-bottom {
background: linear-gradient(to right, #016ce7, #62dbff);
border-radius: 30px;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.tab-list .left {
width: 50px;
}
.tab-list .right {
width: 70px;
text-align: right;
}
边栏推荐
- Application of ERP management system in equipment manufacturing enterprise management
- RTA一种广告精准投放的新玩法?
- 对C语言最基本的代码解释
- Unreal中通过FMonitoredProcess启动其他独立程序
- Start process of activity
- postgresql没有nvl的解决办法,postgresql查询所有的表
- Six ways of uniapp route jump
- Redis布隆过滤器
- 第二篇 如何设计一个RBAC权限系统
- Where can I download airserver? How to use tutorial
猜你喜欢

Find a specific number in an ordered array (binary search or half search)

动态规划-力扣

Cloud native observability tracking technology in the eyes of Baidu engineers
![[ctfhub] the data of JWT header and payload are transmitted in clear text. If sensitive information is contained in it, sensitive information will be leaked. Try to find the flag. Format is flag{}](/img/d0/133d628a304f5c6b5f0d514c9fe222.jpg)
[ctfhub] the data of JWT header and payload are transmitted in clear text. If sensitive information is contained in it, sensitive information will be leaked. Try to find the flag. Format is flag{}

C语言经典例题-贷款余额
![[CTFHub]JWT 的头部和有效载荷这两部分的数据是以明文形式传输的,如果其中包含了敏感信息的话,就会发生敏感信息泄露。试着找出FLAG。格式为 flag{}](/img/d0/133d628a304f5c6b5f0d514c9fe222.jpg)
[CTFHub]JWT 的头部和有效载荷这两部分的数据是以明文形式传输的,如果其中包含了敏感信息的话,就会发生敏感信息泄露。试着找出FLAG。格式为 flag{}

VSCode 更新后与tab相关快捷键无法使用

it 农民工的现状和历史

Clickhouse, let the query fly!!!

Simulation of synchronization performance of BOC modulation and demodulation based on MATLAB, output tracking curve and identification curve under different lead lag code distance
随机推荐
【Pygame实战】打扑克牌嘛?赢了输了?这款打牌游戏,竟让我废寝忘食。
BGP联邦实验
Part V Druid data source introduction
Six ways of uniapp route jump
Idea starts multiple projects at once
Simulation of BOC modulation signal acquisition based on MATLAB
[hiflow] regularly send Tencent cloud SMS sending group
Simulation of voltage source PWM rectifier with double closed loop vector control based on Simulink
Error | cannot read property '_ normalized‘ of undefined
C语言经典例题-switch case语句转换日期格式
BGP basic configuration
Solve the problem that kotlin writes the Android project compilation report execution failed for task ': app:kaptdebugkotlin'. Exception
PostgreSQL has no NVL solution. PostgreSQL queries all tables
【7.16】代码源 -【数组划分】【拆拆】【选数2】【最大公约数】
centos7 中彻底卸载mysql
深入理解CAS (自旋锁)
aws篇6 aws iot
Unreal中通过FMonitoredProcess启动其他独立程序
CBOC signal modulation and demodulation simulation based on MATLAB, output its correlation, power spectrum and frequency offset tracking
Liunx:浅析vim编辑器基本使用