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

南宁网站开发软件培训学校网站建设

南宁网站开发软件,培训学校网站建设,WordPress实现扫码登录,wordpress调整上传文件采用 uniapp 实现的一款步进指示器组件,展示业务步骤进度等内容,对外提供“前进”、“后退”方法,让用户可高度自定义所需交互,适配 web、H5、微信小程序(其他平台小程序未测试过,可自行尝试) 可…

采用 uniapp 实现的一款步进指示器组件,展示业务步骤进度等内容,对外提供“前进”、“后退”方法,让用户可高度自定义所需交互,适配 web、H5、微信小程序(其他平台小程序未测试过,可自行尝试)

可到插件市场下载尝试: https://ext.dcloud.net.cn/plugin?id=22603

  • 使用示例

请添加图片描述

使用示例

分别演示vue2、vue3 setup示例

vue2 写法

<template><view><view class="font-class">示例一:</view><view><view style="background-color: #272822; padding: 10px; margin: 10px; border-radius: 6px; color: #fff;"><wo-step-indicator :default-step="1" :options="steps" ref="stepIndicator1" @change="onChangeStep"></wo-step-indicator></view><view style="padding: 10px 0; margin: 0 10px;"><view v-show="step === 1"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color: #299B48; color: #fff; display: flex; justify-content: center; align-items: center;">步骤一</view></view><view v-show="step === 2"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color:#FF5739; color: #fff; display: flex; justify-content: center; align-items: center;">步骤二</view></view><view v-show="step === 3"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color: #41A5E1; color: #fff; display: flex; justify-content: center; align-items: center;">步骤三</view></view><view v-show="step === 4"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color: #272822; color: #fff; display: flex; justify-content: center; align-items: center;">步骤四</view></view></view></view><view class="font-class">示例二:</view><view style="display: flex; gap: 10px;"><view class="step-class" style="margin-right: 0px;"><wo-step-indicator   ref="stepIndicator2" @change="onChangeStep"></wo-step-indicator></view><view style="margin: 10px 10px 10px 0; flex: 1;"><view v-show="step === 1"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color: #299B48; color: #fff; display: flex; justify-content: center; align-items: center;">步骤一</view></view><view v-show="step === 2"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color:#FF5739; color: #fff; display: flex; justify-content: center; align-items: center;">步骤二</view></view><view v-show="step === 3"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color: #41A5E1; color: #fff; display: flex; justify-content: center; align-items: center;">步骤三</view></view><view v-show="step === 4"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color: #272822; color: #fff; display: flex; justify-content: center; align-items: center;">步骤四</view></view></view></view><view class="font-class">自定义操作:</view><view style="display: flex; gap: 10px; padding-top: 10px;"><button @click="prevStep" :disabled="step <= 1">上一步</button><button @click="nextStep" :disabled="step >= steps.length">下一步</button><button v-show="step >= steps.length">完成</button></view></view>
</template><script>
export default {data() {return {steps: [{index: '1',name: 'Step 1',},{index: '2',name: 'Step 2',},{index: '3',name: 'Step 3',},{index: '4',name: 'Step 4',},],step: 1,stepIndicator1: null,stepIndicator2: null};},methods: {prevStep() {this.$refs.stepIndicator1.prev();this.$refs.stepIndicator2.prev();},nextStep() {this.$refs.stepIndicator1.next();this.$refs.stepIndicator2.next();},onChangeStep(data) {this.step = data.step;console.log('Current step:', data);}}
};
</script><style>
.font-class {font-size: 12px;padding: 10px 10px 0 10px;
}
.step-class {background-color: #272822;color: #fff;padding: 15px;margin: 10px;border-radius: 6px;
}
</style>

vue3 setup写法

<template><view><view class="font-class">示例一:</view><view><view style="background-color: #272822; padding: 10px; margin: 10px; border-radius: 6px; color: #fff;"><wo-step-indicator :default-step="1" :options="steps" ref="stepIndicator1"@change="onChangeStep"></wo-step-indicator></view><view style="padding: 10px 0; margin: 0 10px;"><view v-show="step === 1"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color: #299B48; color: #fff; display: flex; justify-content: center; align-items: center;">步骤一</view></view><view v-show="step === 2"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color:#FF5739; color: #fff; display: flex; justify-content: center; align-items: center;">步骤二</view></view><view v-show="step === 3"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color: #41A5E1; color: #fff; display: flex; justify-content: center; align-items: center;">步骤三</view></view><view v-show="step === 4"><viewstyle="height: 100px; width: 100%; border-radius: 6px; background-color: #272822; color: #fff; display: flex; justify-content: center; align-items: center;">步骤四</view></view></view></view><view class="font-class">示例二:</view><view style="display: flex; gap: 10px;"><view class="step-class" style="margin-right: 0px;"><wo-step-indicator ref="stepIndicator2" @change="onChangeStep"></wo-step-indicator></view><view style="margin: 10px 10px 10px 0; flex: 1;"><view v-show="step === 1"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color: #299B48; color: #fff; display: flex; justify-content: center; align-items: center;">步骤一</view></view><view v-show="step === 2"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color:#FF5739; color: #fff; display: flex; justify-content: center; align-items: center;">步骤二</view></view><view v-show="step === 3"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color: #41A5E1; color: #fff; display: flex; justify-content: center; align-items: center;">步骤三</view></view><view v-show="step === 4"><viewstyle="height: 200px; width: 100%; border-radius: 6px; background-color: #272822; color: #fff; display: flex; justify-content: center; align-items: center;">步骤四</view></view></view></view><view class="font-class">自定义操作:</view><view style="display: flex; gap: 10px; padding-top: 10px;"><button @click="prevStep" :disabled="step <= 1">上一步</button><button @click="nextStep" :disabled="step >= steps.length">下一步</button><button v-show="step >= steps.length">完成</button></view></view>
</template><script setup>
import { ref } from 'vue';const steps = ref([{ index: '1', name: 'Step 1' },{ index: '2', name: 'Step 2' },{ index: '3', name: 'Step 3' },{ index: '4', name: 'Step 4' },
]);const step = ref(1);
const stepIndicator1 = ref(null);
const stepIndicator2 = ref(null);const prevStep = () => {stepIndicator1.value.prev();stepIndicator2.value.prev();
};const nextStep = () => {stepIndicator1.value.next();stepIndicator2.value.next();
};const onChangeStep = (data) => {step.value = data.step;console.log('Current step:', data);
};
</script><style>
.font-class {font-size: 12px;padding: 10px 10px 0 10px;
}.step-class {background-color: #272822;color: #fff;padding: 15px;margin: 10px;border-radius: 6px;
}
</style>

文章转载自:

http://i0BJD3Ls.ndmbz.cn
http://wPuXoEo7.ndmbz.cn
http://cdnSJS5y.ndmbz.cn
http://8hRQG2Cd.ndmbz.cn
http://kBrmN50d.ndmbz.cn
http://FGbZtmNj.ndmbz.cn
http://LJ48l4eD.ndmbz.cn
http://GYV7UWK7.ndmbz.cn
http://M8e2Q9GK.ndmbz.cn
http://rG9wKw8z.ndmbz.cn
http://fI7n1kuH.ndmbz.cn
http://KGWqufoZ.ndmbz.cn
http://ItZgFUOH.ndmbz.cn
http://oZTmDiNA.ndmbz.cn
http://sJx5zvpz.ndmbz.cn
http://fIoYUyHk.ndmbz.cn
http://kzRSPO52.ndmbz.cn
http://krpiv3U3.ndmbz.cn
http://zYQLXprR.ndmbz.cn
http://ZL68W1Jr.ndmbz.cn
http://V59zFxd5.ndmbz.cn
http://1OAhKJc8.ndmbz.cn
http://nBeITgFm.ndmbz.cn
http://hjLkflcL.ndmbz.cn
http://6oWOArXV.ndmbz.cn
http://Irbyd2MC.ndmbz.cn
http://emB0xN90.ndmbz.cn
http://igXZCt1E.ndmbz.cn
http://1jojdmR4.ndmbz.cn
http://SrtZMGMu.ndmbz.cn
http://www.dtcms.com/wzjs/718956.html

相关文章:

  • 南通制作企业网站大型门户网站建设美丽
  • 深圳有实力的优化公司中山市企业网站seo营销工具
  • 网站维护外包方案图片抗锯齿网站
  • 有哪些做设计交易网站wordpress淘宝客单页模板下载
  • 兰州建设一个网站多少钱乐清建网站公司哪家好
  • 酒水招商网站大全关于网站制作的指标
  • 广东企业网站建设公司价格玩具网站模板
  • 京东网站设计代码天津大寺网站建设
  • 网站文档设置index.php自媒体发布平台
  • 网站设计登录界面怎么做贪玩原始传奇官方网站
  • 知识付费网站源码免费 开源 企业网站
  • 网站源码下载哪个网站好腾讯云云服务器官网
  • 邢台做移动网站的地方硬件开发工程师面试
  • 找网站公司制作网站广州哪个区封了
  • 苏州设置网站建设事业单位报名网站
  • 网站建设设计制作如何制作网站主页
  • 口碑好的大良网站建设家电维修 做网站还是搞公众号
  • 网站配色 蓝色哪个平台可以做推广
  • 设计网站免费大全衣服网站功能
  • 免费做网站手机免费查企业信息的平台
  • 室内设计网站模板图库素材网站
  • 东莞网站制作建设公司昆明网络推广方式有哪些
  • 佛山市平台购物网站制作公司metro网站模板
  • 企业营销型网站策划怎么做动漫原创视频网站
  • 网站留言系统 提交没反应营销型网站建设就找山东艾乎建站
  • 唐山做企业网站公司潍坊专业汽车贴膜
  • 建设网站用什么网络好了解网站建设管理
  • 河南做个人网站做食品网站有哪些东西
  • 网站建设论文百度云盘在线教育网站开发时长
  • 做类似于彩票的网站犯法吗wordpress国外全能主题推荐