pad-app/uni_modules/liu-step-bar
王琛 f72d87783e ipad静态开始 2023-07-03 17:49:29 +08:00
..
components/liu-step-bar ipad静态开始 2023-07-03 17:49:29 +08:00
static ipad静态开始 2023-07-03 17:49:29 +08:00
changelog.md ipad静态开始 2023-07-03 17:49:29 +08:00
package.json ipad静态开始 2023-07-03 17:49:29 +08:00
readme.md ipad静态开始 2023-07-03 17:49:29 +08:00

readme.md

liu-step-bar适用于uni-app项目的步骤条组件

本组件目前兼容微信小程序、H5

本组件支持自定义步骤内容、步骤回显、点击

如使用过程中有问题或有一些好的建议欢迎qq联系2364518038

使用方式uni_modules版本

<liu-step-bar :step="step" :stepList="stepList" @clickStep="clickStep"></liu-step-bar>
export default {
	data() {
		return {
			step: 1, //当前步骤
			stepList: [{
				name: '第一步',
				id: 1
			}, {
				name: '第二步',
				id: 2
			}, {
				name: '第三步',
				id: 3
			}], //步骤列表
		};
	},
	methods: {
		//点击步骤
		clickStep(e){
			this.step = e.id
			console.log('============:', e)
		}
	}
}

属性说明

名称 类型 默认值 描述
step Number 1 当前步骤
stepList Array [] 步骤信息
checkedImg String checkedImg 已完成的图片路径
unCheckedImg String unCheckedImg 未完成的图片路径
checkedColor String #287BF8 已完成的字体颜色
unCheckedColor String #333333 未完成的字体颜色
checkedLine String #287BF8 已完成的线条颜色
unCheckedLine String #bebebe 未完成的线条颜色