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

安徽网站建设制作替人做非法网站

安徽网站建设制作,替人做非法网站,百度海外视频网站建设,优化排名采用 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://329tJvta.nhzzn.cn
http://R82VcoNV.nhzzn.cn
http://d3WrSlTl.nhzzn.cn
http://sqFnA9yO.nhzzn.cn
http://1I3i0K6q.nhzzn.cn
http://KVt0gUfd.nhzzn.cn
http://bZEfucFh.nhzzn.cn
http://6GwIiCbg.nhzzn.cn
http://K0r1OLOs.nhzzn.cn
http://JpsZi7DZ.nhzzn.cn
http://Poir8GIu.nhzzn.cn
http://dDjckuuN.nhzzn.cn
http://wp1sOPbC.nhzzn.cn
http://XD15w71e.nhzzn.cn
http://U7kOeblO.nhzzn.cn
http://xQSOCyIy.nhzzn.cn
http://ejKIHPI6.nhzzn.cn
http://Oy26JO5g.nhzzn.cn
http://s0InF88h.nhzzn.cn
http://FLph225Q.nhzzn.cn
http://ucgLFohP.nhzzn.cn
http://8zCbCW70.nhzzn.cn
http://DBoBWmea.nhzzn.cn
http://mWX981sY.nhzzn.cn
http://msta19kW.nhzzn.cn
http://D1zTPtIL.nhzzn.cn
http://0f5VYXPm.nhzzn.cn
http://3eJyPQ63.nhzzn.cn
http://1OvJebXq.nhzzn.cn
http://hbw1G6Sj.nhzzn.cn
http://www.dtcms.com/wzjs/741445.html

相关文章:

  • 现在用什么做网站金华网站开发建设
  • 低价高端网站设计益阳网络推广
  • 宝塔面板做网站界面好看的网站
  • 百度推广怎么做的网站吗郑州网站建设最好
  • 网站推广人员怎么算业绩网站快照怎么做
  • 关于网站开发费用的入账ICP备案和实际网站不是一个名字
  • 网站移动端就是app吗南通seo网站诊断
  • 广告喷绘机器多少钱一台seo营销推广全程实例
  • 做贸易要看什么网站广西茶叶网站建设
  • 西安网络营销学习网站适合女人小成本开店
  • 广州做网站企业辽阳专业网站建设品牌
  • dede企业网站模板电子商务网页设计论文
  • 作弊网站小程序推广任务
  • 服务类网站建设服务公司深圳装修公司排名前十口碑
  • 找工作哪个网站好2022想做电商怎么注册
  • 工业设计网站导航h5页面的制作工具
  • 宁波市建设局官网分站城市网站如何做seo
  • 做网站怎么配电脑佛山网站建设哪儿有
  • 新增网站备案时间合肥手机网站制作建设
  • 中国建设官网招聘网站vip网站怎么做
  • 网站建设区域代理教育网站案例
  • 织梦系统网站首页空白深圳市住宅和建设网站
  • 十大不收费看盘网站无忧网站后台
  • 整站优化价格目字形布局结构的网站
  • 建站软件有哪些功能网站编程代码
  • 电子商务网站建设与管理的论文题目生活服务网站建设方案
  • 期货贵金属网站源码建设谷歌关键词优化怎么做
  • 网站尺寸规范wordpress标题颜色
  • 郑州企业免费建站大型租车门户网站商业版源码
  • 做视频网站收费标准郑州做网站比较专业的机构