Blame view

node_modules/element-ui/packages/steps/README.md 1.71 KB
2a09d1a4   liuqimichale   添加宜春 天水 宣化
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
  # element-steps
  > A element-steps component for Vue.js.
  
  ## Demo
  http://element-component.github.io/element-steps
  
  ## Installation
  ```shell
  npm i element-steps -D
  ```
  
  ## Usage
  ```javascript
  import Vue from 'vue'
  import ElStep from 'element-steps'
  import 'element-theme-chalk/dist/step.css'
  
  Vue.use(ElStep)
  ```
  
  or
  
  ```javascript
  import Vue from 'vue'
  import { ElSteps, ElStep } from 'element-steps'
  
  Vue.component('el-steps', ElSteps)
  Vue.component('el-step', ElStep)
  ```
  
  ### Steps Attributes
  
  | 参数      | 说明    | 类型      | 可选值       | 默认值   |
  |---------- |-------- |---------- |-------------  |-------- |
  | space | 每个 step 的间距,不填写将自适应间距 | Number | — | — |
  | direction | 显示方向 | string | vertical/horizontal | horizontal |
  | active | 设置当前激活步骤  | number | — | 0 |
  | process-status | 设置当前步骤的状态 | string | wait/process/finish/error/success | process |
  | finish-status | 设置结束步骤的状态 | string | wait/process/finish/error/success | finish |
  | align-center | 标题描述居中对齐 | boolean | - | false |
  
  ### Step Attributes
  | 参数      | 说明    | 类型      | 可选值       | 默认值   |
  |---------- |-------- |---------- |-------------  |-------- |
  | title | 标题 | string | — | — |
  | description | 描述性文字 | string | — | — |
  | icon | 图标 | Element Icon 提供的图标,如果要使用自定义图标可以通过 slot 方式写入 | string | — |
  
  ### Step Slot
  | name | 说明  |
  |----|----|
  | icon | 图标 |
  | title | 标题 |
  | description | 描述性文字 |
  
  
  ## Development
  ```shell
  make dev
  
  ## test
  make test
  
  ## build
  make build
  ```
  
  # License
  [MIT](https://opensource.org/licenses/MIT)