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

优秀企业网站赏析西点培训前十名学校

优秀企业网站赏析,西点培训前十名学校,专业的医疗网站建设,昆明网站建设创意步骤条功能 原型图如下图所示: dcloud插件市场中是有现成的组件的: steps步骤条插件地址:https://ext.dcloud.net.cn/plugin?id34 使用方法 script中引入 import uniSteps from /components/uni-steps/uni-steps.vue export default {c…

步骤条功能

原型图如下图所示:
在这里插入图片描述
dcloud插件市场中是有现成的组件的:

steps步骤条插件地址:https://ext.dcloud.net.cn/plugin?id=34

在这里插入图片描述

使用方法

script中引入

import uniSteps from '@/components/uni-steps/uni-steps.vue'
export default {components: {uniSteps}
}

template中使用

<uni-steps :options="[{title: '事件一'}, {title: '事件二'}, {title: '事件三'}, {title: '事件四'}]" :active="1"></uni-steps>

在这里插入图片描述
针对组件有部分改动,效果图如下:

在这里插入图片描述
组件代码如下:

<template><view class="uni-steps" style="margin-top:20upx;"><view :class="[direction==='column'?'uni-steps__column':'uni-steps__row']"><view :class="[direction==='column'?'uni-steps__column-container':'uni-steps__row-container']"><view :class="[direction==='column'?'uni-steps__column-line-item':'uni-steps__row-line-item']" v-for="(item,index) in options":key="index" @click="toStep(item)"><view :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--before':'uni-steps__row-line--before']":style="{backgroundColor:index<=active&&index!==0?activeColor:index===0?'transparent':deactiveColor}"></view><view :class="[direction==='column'?'uni-steps__column-check':'uni-steps__row-check']" v-if="index === active"><uni-icons :color="activeColor" type="checkbox-filled" size="30"></uni-icons></view><view :class="[direction==='column'?'uni-steps__column-circle':'uni-steps__row-circle']" v-else>{{index + 1}}</view><view :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--after':'uni-steps__row-line--after']":style="{backgroundColor:index<active&&index!==options.length-1?activeColor:index===options.length-1?'transparent':deactiveColor}"></view></view></view><view :class="[direction==='column'?'uni-steps__column-text-container':'uni-steps__row-text-container']" style="margin-top:20upx;"><view v-for="(item,index) in options" :key="index" :class="[direction==='column'?'uni-steps__column-text':'uni-steps__row-text']"><text :style="{color:index<=active?activeColor:deactiveColor}" :class="[direction==='column'?'uni-steps__column-title':'uni-steps__row-title']">{{item.title}}</text><text :style="{color:index<=active?activeColor:deactiveColor}" :class="[direction==='column'?'uni-steps__column-desc':'uni-steps__row-desc']">{{item.desc}}</text></view></view></view></view>
</template><script>import uniIcons from '../uni-icons/uni-icons.vue'export default {name: 'UniSteps',components: {uniIcons},props: {direction: {// 排列方向 row columntype: String,default: 'row'},activeColor: {// 激活状态颜色type: String,default: '#1aad19'},deactiveColor: {// 未激活状态颜色type: String,default: '#999999'},active: {// 当前步骤type: Number,default: 0},options: {type: Array,default () {return []}} // 数据},data() {return {}},methods:{toStep(item){this.$emit('selectStep',item);}}}
</script><style lang="scss" scoped>.uni-steps {/* #ifndef APP-NVUE */display: flex;width: 100%;/* #endif *//* #ifdef APP-NVUE */flex: 1;/* #endif */flex-direction: column;}.uni-steps__row {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: column;}.uni-steps__column {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: row-reverse;}.uni-steps__row-text-container {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: row;}.uni-steps__column-text-container {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: column;flex: 1;}.uni-steps__row-text {/* #ifndef APP-NVUE */display: inline-flex;/* #endif */flex: 1;flex-direction: column;}.uni-steps__column-text {padding: 12upx 0upx;border-bottom-style: solid;border-bottom-width: 2upx;border-bottom-color: $uni-border-color;/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: column;}.uni-steps__row-title {font-size: $uni-font-size-base;line-height: 32upx;text-align: center;}.uni-steps__column-title {font-size: $uni-font-size-base;text-align: left;line-height: 36upx;}.uni-steps__row-desc {font-size: 24upx;line-height: 28upx;text-align: center;}.uni-steps__column-desc {font-size: $uni-font-size-sm;text-align: left;line-height: 36upx;}.uni-steps__row-container {height:60upx;border:1px soild red;/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: row;}.uni-steps__column-container {/* #ifndef APP-NVUE */display: inline-flex;/* #endif */width: 60upx;flex-direction: column;}.uni-steps__row-line-item {/* #ifndef APP-NVUE */display: inline-flex;/* #endif */flex-direction: row;flex: 1;height: 60upx;line-height: 60upx;align-items: center;justify-content: center;}.uni-steps__column-line-item {/* #ifndef APP-NVUE */display: flex;/* #endif */flex-direction: column;flex: 1;align-items: center;justify-content: center;}.uni-steps__row-line {flex: 1;height: 2upx;background-color: $uni-text-color-grey;}.uni-steps__column-line {width: 2upx;background-color: $uni-text-color-grey;}.uni-steps__row-line--after {transform: translateX(1px);}.uni-steps__column-line--after {flex: 1;transform: translate(0px, 1px);}.uni-steps__row-line--before {transform: translateX(-1px);}.uni-steps__column-line--before {height: 12upx;transform: translate(0px, -1px);}.uni-steps__row-circle {border:1px solid #999999;background:transparent;width:60upx;height:60upx;border-radius: 50%;text-align: center;line-height: 54upx;}.uni-steps__column-circle {width: 10upx;height: 10upx;border-radius: 200upx;background-color: $uni-text-color-grey;margin: 8upx 0upx 10upx 0upx;}.uni-steps__row-check {margin: 0upx 12upx;}.uni-steps__column-check {height: 28upx;line-height: 28upx;margin: 4upx 0upx;}
</style>

组件的使用如下:

import uniSteps from '@/components/uni-steps/uni-steps.vue'
export default {components: {uniSteps},data(){return{activeIndex:-1,stepOptions:[{title: '基本信息',index:0}, {title: '门店信息',index:1}, {title: '门店图片',index:2}, {title: '等待审核',index:3}],}},methods:{selectStep(item){console.log(item);}}
http://www.lbrq.cn/news/2557963.html

相关文章:

  • 网站建设有哪些软件有哪些内容马鞍山seo
  • 西宁网站建设百度一下打开网页
  • 网站设计目的徐州百度运营中心
  • 建设网站服务商网上有卖网站链接的吗
  • 做带支付功能的网站58网络推广
  • 网站升级页面连接设置百度seo推广首选帝搜软件
  • 长春网站分析无排名优化
  • 个人视频制作公司网站优化技巧
  • 聊天网站制作教程成都网站建设方案托管
  • 做网站好还是做商城好关键词批量调词 软件
  • b2b模式的典型电商平台代表关键词诊断优化全部关键词
  • 酒店设计网站建设方案百度网盘手机版
  • 国外 网页框架搭建的网站域名批量注册查询
  • div css网站重构第一版视频教程女教师遭网课入侵视频大全
  • 哪个网站上门做护肤app优化推广
  • 湛江网站建设制作价格百度登录账号首页
  • app官网网站建设成都seo优化排名公司
  • 开贴纸网站要怎么做的痘痘怎么去除效果好
  • 建设局优化 保证排名
  • 微信网站建站平台中国纪检监察报
  • 电子商务网站建设与管理 教案百度搜索推广收费标准
  • 网站备案 幕布宁波seo公司网站推广
  • 四平网站制作宣传推广方案怎么写
  • 常德建设网站公司写软文的app
  • 惠州市做网站的公司软文平台
  • 做物流的网站有哪些内容seo优化服务公司
  • 贵州润铁祥建设工程有限公司网站深圳网络推广服务公司
  • web网站建设报价加强网络暴力治理
  • 营销型网站建设哪好搜素引擎优化
  • wordpress 数据库seo网络营销推广公司深圳
  • Cesium性能优化
  • 梯度下降的基本原理
  • 2025.8.1
  • 网络编程-加密算法
  • 软件性能优化:善用80-20法则,精准突破瓶颈
  • 【科普】怎么理解Modbus、TCP、UDP