1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

38 lines
652 B
JavaScript

import { createNamespace } from '../utils';
import { GREEN } from '../utils/color';
const [createComponent, bem] = createNamespace('steps');
export default createComponent({
props: {
active: Number,
inactiveIcon: String,
direction: {
type: String,
default: 'horizontal'
},
activeColor: {
type: String,
default: GREEN
},
activeIcon: {
type: String,
default: 'checked'
}
},
data() {
return {
steps: []
};
},
render(h) {
return (
<div class={bem([this.direction])}>
<div class={bem('items')}>{this.slots()}</div>
</div>
);
}
});