forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
37 lines (33 loc) · 727 Bytes
/
index.js
File metadata and controls
37 lines (33 loc) · 727 Bytes
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
import { createNamespace } from '../utils';
import { GREEN } from '../utils/constant';
import { ParentMixin } from '../mixins/relation';
const [createComponent, bem] = createNamespace('steps');
export default createComponent({
mixins: [ParentMixin('vanSteps')],
props: {
inactiveIcon: String,
active: {
type: Number,
default: 0
},
direction: {
type: String,
default: 'horizontal'
},
activeColor: {
type: String,
default: GREEN
},
activeIcon: {
type: String,
default: 'checked'
}
},
render() {
return (
<div class={bem([this.direction])}>
<div class={bem('items')}>{this.slots()}</div>
</div>
);
}
});