New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bee-step

Package Overview
Dependencies
Maintainers
15
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-step

Step ui component for react

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
15
Created
Source

bee-step

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

Browser Support

IEChromeFirefoxOperaSafari
IE 9+ ✔Chrome 31.0+ ✔Firefox 31.0+ ✔Opera 30.0+ ✔Safari 7.0+ ✔

当任务复杂或具有子任务的系列一定的序列,我们可以将它分解成几个步骤,让事情变得更容易。

使用

使用单独的bee-step包

组件引入

先进行下载bee-step包

npm install --save bee-step

```js
import Step from 'bee-step';
const Steps = Step.Steps;
class Demo1 extends Component {
    render () {
        return (
            <Step.Steps current={1}>
	            <Step title="Finished" description="This is a description." />
	            <Step title="In Progress" description="This is a description." />
	            <Step title="Waiting" description="This is a description." />
	        </Step.Steps>
        )
    }
}

render(Demo1,document.getElementById('app'));

API

PropertyDescriptionTypeDefault
status自动设置当前step的状态(wait,process,finish,error)string-
titlestep的标题(string,ReactNode)-
descriptionstep的细节描述,可选的属性(string,ReactNode)-
icon设置当前step为icon,可选的属性string,ReactNode-

Step.Steps

PropertyDescriptionTypeDefault
current设置当前步骤,从0开始计数。可以使用步骤状态重写此状态。number0
status指定当前步骤的状态(danger,info,news,warning,sucess,process)stringprocess
size设置step bar的大小(default,samll)stringdefault
direction设置step bar的方向(horizontal,vertical)stringhorizontal

开发调试

$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-step
$ cd bee-step
$ npm install
$ npm run dev

Keywords

react

FAQs

Package last updated on 13 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts