feat(Steps): use relation mixin (#4387)

This commit is contained in:
neverland
2019-09-06 15:34:11 +08:00
committed by GitHub
parent 42d408dc2c
commit 33652b1e84
2 changed files with 21 additions and 32 deletions
+3 -6
View File
@@ -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])}>