GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - qingclass/steps: steps.js是基于原生JavaScript的组件,可用于展示步骤条、时间轴等。 1.0 双边显示:http://www.fxss5201.cn/project/plugin/steps/1.0/ 2.0 内容排序:http://www.fxss5201.cn/project/plugin/steps/2.0/

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
1.0
1.0
 
 
2.0
2.0
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
iconfont.js
iconfont.js
 
 
timg.jpg
timg.jpg
 
 
xiaohong.jpg
xiaohong.jpg
 
 
xiaoming.jpg
xiaoming.jpg
 
 

Repository files navigation

steps

介绍

1.0 文件夹和 2.0 文件夹非升级关系,两者仅是着重点方向不一致,1.0 主打双边显示,2.0 主打内容排序,一般功能的话两者均可满足。

steps.js是基于原生JavaScript的组件,可用于展示步骤条、时间轴等,功能支持:

  1. 自适应
  2. 支持横向和纵向显示,并且横向还支持居中显示
  3. 支持自定义间距
  4. 主轴线上下左右单方向及多方向分布(1.0) / 线、标题、描述、自定义等可自由排序(2.0)
  5. 支持数字和圆点及自定义图标,也可以使用图片
  6. 如果标题和详情还不足以满足您的需求,你还可以插入自定义的html代码
  7. 如果样式不满意,可以加入自定义的父类class,然后根据css的权重重新定义样式

demo地址:

  • 1.0 双边显示
  • 2.0 内容排序

浏览器支持情况

https://caniuse.com/#search=flex, 由于布局中主要使用的是flex布局,所以支持IE10以上以及现代主流浏览器。 建议使用前先在你所要用的浏览器上查看demo。

资源

首先需要引入样式文件steps.css:

<link rel="stylesheet" href="steps.css">

接下来引入steps.js:

<script src="steps.js"></script>

使用

在使用的时候,需要一个容器,例如:

<div id="steps1"></div>

然后在 JavaScript 中进行初始化:

var steps1 = steps({
    el: "#steps1",
    data: [
        { title: "步骤1", description: "111" },
        { title: "步骤2", description: "222" },
        { title: "步骤3", description: "desc步骤3步骤3" }
    ],
    active: 1
});

参数

  • 1.0 双边显示
  • 2.0 内容排序

About

steps.js是基于原生JavaScript的组件,可用于展示步骤条、时间轴等。 1.0 双边显示:http://www.fxss5201.cn/project/plugin/steps/1.0/ 2.0 内容排序:http://www.fxss5201.cn/project/plugin/steps/2.0/

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.