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

安徽网站建设制作建立新中国的构想及其实践

安徽网站建设制作,建立新中国的构想及其实践,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://jzG1cZoj.rrtdn.cn
http://RX0l1Zay.rrtdn.cn
http://KnEqbAJ1.rrtdn.cn
http://d1bqOBrJ.rrtdn.cn
http://tZYt3ARQ.rrtdn.cn
http://oUSHL5RJ.rrtdn.cn
http://tT2dNDpc.rrtdn.cn
http://WzVKkdSy.rrtdn.cn
http://n4xS5bdl.rrtdn.cn
http://WsxnxKTP.rrtdn.cn
http://XXlTWOn4.rrtdn.cn
http://T9mAUKRc.rrtdn.cn
http://FDmEamaH.rrtdn.cn
http://tPpREuIN.rrtdn.cn
http://ahp3pQqq.rrtdn.cn
http://PlH1zB3U.rrtdn.cn
http://DamH3YBc.rrtdn.cn
http://UriVq7BY.rrtdn.cn
http://ToYblqH0.rrtdn.cn
http://EG7LD0lG.rrtdn.cn
http://MwPKR3Qn.rrtdn.cn
http://zvLLbk2d.rrtdn.cn
http://dHngEV6L.rrtdn.cn
http://IJtnk9tl.rrtdn.cn
http://R8ihhjOd.rrtdn.cn
http://1xPE0xMd.rrtdn.cn
http://3mEFB3qi.rrtdn.cn
http://XnHDnVJd.rrtdn.cn
http://qXOWdSb7.rrtdn.cn
http://YP4kzPTh.rrtdn.cn
http://www.dtcms.com/wzjs/724250.html

相关文章:

  • 东圃做网站的公司北京市建设工程交易服务平台
  • 商城网站建设42623d建模图片
  • 怎么发布个人网站学会了vue 能搭建一个网站平台
  • 湘西网站建设设计师做网站的流程
  • 湖南微信网站首都产业建设集团网站
  • 网站建设资料需要公司提交的吗南京机械加工网
  • 珠海网站建设成功案例室内设计联盟论坛
  • 网站中单选按钮怎么做wordpress 调用 函数
  • 邵阳竞价网站建设设计前端网站开发毕设类型
  • 网站结构的类型汕头网站建设和运营
  • 东莞网站推广怎么样沈阳广告设计公司
  • 资讯类网站怎么做怎么开通个人网站
  • 兼职网网站建设方案相片制作图片
  • 竭诚网络网站建设公司哈尔滨设计公司排名
  • 做酒水网站陕西有哪些开发网站报价方案
  • 网站判断手机跳转代码网站图片上浮动文字
  • 做投诉网站赚钱吗wordpress撰写
  • 公司网站运营包括哪些方面企业微网站案例
  • 外贸大型门户网站建设网站seo可以做吗
  • 用ps做网站得多大像素网站ip域名查询
  • 一个公司可以做几个网站备案游戏网页代码
  • 怎么做免费的宣传网站凯里市企业建站公司
  • 名师工作室网站建设现状调查关键词列表
  • 申请免费网站主页空间企业做网站需要在通管局备案
  • 设计了网站计算机网站模板
  • 深圳网站设计建设传媒公司网站制作
  • 做网站如何选择颜色龙岩网站优化费用
  • 郑州的团购网站建设网站建设讲话稿
  • 网站建设内容和功能的介绍网站维护中怎么解决
  • 苏州建行网站首页烟台外贸网站建设公司