1.0.6 • Published 5 years ago

ac-step v1.0.6

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

步骤条

如何使用

npm install ac-step

代码演示

import React, { Component } from "react";
import AcStep from "ac-step";
import "ac-step/dist/index.css";

class Demo extends Component {
  render() {
    const data = [
      {
        key: 0,
        title: "第一步"
      },
      {
        key: 1,
        title: "第二步"
      },
      {
        key: 2,
        title: "第三步"
      },
      {
        key: 3,
        title: "第四步"
      }
    ];
    return (
      <Steps current={2} status="error">
        {data.map((item, index) => (
          <Steps.StepItem
            key={item.key}
            index={index}
            title={item.title}
          />
        ))}
      </Steps>
  );
  }
}

export default Demo;

API

AcSteps

参数说明类型默认值
className类名string-
current当前是的步骤的索引值number0
status当前步骤的状态,允许输入的值有:"wait", "process", "finish", "error"stringprocess
successType成功状态显示内容:"icon", "text"stringtext

AcSteps.StepItem

参数说明类型默认值
className类名string-
index索引值number-
title显示的内容any-

注意事项

暂无

更新日志

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago