Steps

工作步骤插件

为兼容移动端,插件基于 Bootstrap 栅格系统。每个节点为一个 col-*,col-* 可由选项 colCss 指定。

示例:


JS:

var step = $("#steps").steps({
    steps: ["登记", "付款", "库存", "卖出登记", "核销"],
    current: 0,
    colCss: "col-md-1",
    offsetCss: ""
});

选项

名称 默认值 描述
steps ["Step1", "Step2", "Step3"] 数组。定义步骤节点。
current 0 当前节点。(索引值)
colCss col-md-1 节点 bootstrap 栅格样式。
offsetCss "" eg:offset-md-1。栅格系统偏移量。通常用于控件居中显示。

方法

名称 描述
current 设定当前节点。
eg: step.steps("current", 2); // 将步骤节点设置为第3个。