1 Unstar Star 14 Fork 6

申法宽 / layui-stepsJavaScriptMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
申法宽 authored readme
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

layui-steps

项目介绍

layui 的步骤条 steps

简单实现, 可自由发挥

使用

<div id="steps"></div>
    layui.config({
        base: 'extends/'
    });

    layui.use('steps', function () {
        var steps = layui.steps;

        var data = [
            {'title': "第一步", "desc": "2018-07-01 10:24:42"},
            {'title': "第二步", "desc": "2018-07-01 10:44:42"},
            {'title': "第三步", "desc": "2018-07-01 10:44:42"},
            {'title': "第四步", "desc": "2018-07-01 10:44:42"}
            ];

        steps.make(data, '#steps', 2);
    });

说明

steps.make(data, ele, current);
// data 数据
// ele 容器
// current 当前到了第几步

参与贡献

  1. Fork 本项目
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

Comments ( 4 )

Sign in for post a comment

JavaScript
1
https://gitee.com/sfk/layui-steps.git
git@gitee.com:sfk/layui-steps.git
sfk
layui-steps
layui-steps
v2

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542