mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
38 lines
604 B
JavaScript
38 lines
604 B
JavaScript
import { use } from '../utils';
|
|
import { GREEN } from '../utils/color';
|
|
|
|
const [sfc, bem] = use('steps');
|
|
|
|
export default sfc({
|
|
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>
|
|
);
|
|
}
|
|
});
|