feat(Steps): use relation mixin (#4387)
This commit is contained in:
+3
-6
@@ -1,9 +1,12 @@
|
||||
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: {
|
||||
@@ -24,12 +27,6 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
steps: []
|
||||
};
|
||||
},
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div class={bem([this.direction])}>
|
||||
|
||||
Reference in New Issue
Block a user