当前位置: 首页 > news >正文

变更element步骤条样式添加①②③.....

原本样式:

变更后样式:

页面代码:

<el-steps :active="active" finish-status="success" simple style="margin-top: 20px"><el-step><template #icon><span class="font">①</span></template><template #title><span>主要信息 (<b class="bred">必填</b>)</span></template></el-step><el-step><template #icon><span class="font">②</span></template><template #title><span>次要信息(<b class="bblue">非必填</b>)</span></template></el-step><el-step><template #icon><span class="font">③</span></template><template #title><span>哈哈信息(<b class="bblue">非必填</b>)</span></template></el-step></el-steps><div v-show="active===0">主要信息</div> <div v-show="active===1">次要信息</div> <div v-show="active===2">哈哈信息</div> 
<el-button type="primary" @click="next">下一步</el-button>

定义变量:

data() {return {active: 0,}
}

定义方法:(我这个只能走两步,想走多步自己按需设置)

 next() {console.log(this.active);if (this.active++ >= 2) {this.active = 2;}},

css代码:

.font {font-size: 15px;
}


http://www.mrgr.cn/news/37525.html

相关文章:

  • 甘肃手工花卷:面食艺术的魅力绽放
  • 【含文档】基于Springboot+Vue的高校心理健康评测与服务系统(含源码+数据库+lw)
  • 企业微信离职后客户怎么移交?这一功能十分重要!
  • 大数据技术栈简要介绍
  • 通用运维基础
  • C++日期类实现
  • CDGA|数据治理:策略与价值的深度融合
  • 51单片机系列-按键检测原理
  • LDRA Testbed(TBrun)软件集成测试(部件测试)_操作指南
  • springboot引入netty
  • CentOS Linux教程(8)--使用tar压缩解压文件
  • 论文解析_客户分组对商业银行个人信用评分模型的提升作用研究,作者张亚京-中国人民银行征信中心博士后工作站
  • StopWath,apache commons lang3 包下的一个任务执行时间监视器的使用
  • 照片压缩方法分享,掌握这些小技巧轻松压缩
  • 浙大数据结构:06-图3 六度空间
  • 技术疑问:为什么在现在的spring代码当中几乎没有看到Applicationcontext了
  • 极狐GitLab 17.4 重点功能解读【九】
  • 【新进展】护理临床智能决策系统:大语言模型与本地知识库的融合与应用
  • 【AI战略思考5】工欲善其事,必先利其器。我的利器是什么?
  • 华为 HCIP-Datacom H12-821 题库 (28)