forked from ElemeFE/element-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSteps.tsx
49 lines (47 loc) · 2.24 KB
/
Steps.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import * as React from 'react'
import { Steps } from 'element-react'
import { Steps as StepsNext } from 'element-react/next'
class Component extends React.Component<{}, {}> {
render() {
return (
<div>
<Steps className="className" style={{ width: 100 }}>
<Steps.Step className="className" style={{ width: 100 }} />
</Steps>
<Steps finishStatus="finish" processStatus="finish">
<Steps.Step status="finish" />
</Steps>
<Steps finishStatus="error" processStatus="error">
<Steps.Step status="error" />
</Steps>
<Steps finishStatus="success" processStatus="success">
<Steps.Step status="success" />
</Steps>
<Steps direction="horizontal" finishStatus="process" processStatus="process">
<Steps.Step description={(<div>啥</div>)} status="process" direction="horizontal" />
</Steps>
<Steps space={100} active={1} direction="vertical" finishStatus="wait" processStatus="wait">
<Steps.Step title="步骤 1" description="啥" status="wait" direction="vertical" style={{ padding: '10px' }} lineStyle={{ padding: '10px' }} stepNumber={2} />
</Steps>
<StepsNext className="className" style={{ width: 100 }}>
<StepsNext.Step className="className" style={{ width: 100 }} />
</StepsNext>
<StepsNext finishStatus="finish" processStatus="finish">
<StepsNext.Step status="finish" />
</StepsNext>
<StepsNext finishStatus="error" processStatus="error">
<StepsNext.Step status="error" />
</StepsNext>
<StepsNext finishStatus="success" processStatus="success">
<StepsNext.Step status="success" />
</StepsNext>
<StepsNext direction="horizontal" finishStatus="process" processStatus="process">
<StepsNext.Step description={(<div>啥</div>)} status="process" direction="horizontal" />
</StepsNext>
<StepsNext space={100} active={1} direction="vertical" finishStatus="wait" processStatus="wait">
<StepsNext.Step title="步骤 1" description="啥" status="wait" direction="vertical" style={{ padding: '10px' }} lineStyle={{ padding: '10px' }} stepNumber={2} />
</StepsNext>
</div>
)
}
}