update Steps
This commit is contained in:
parent
0460a1e811
commit
d4cd421cc2
3 changed files with 157 additions and 82 deletions
|
@ -16,6 +16,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import Emitter from '../../mixins/emitter';
|
||||
import { oneOf } from '../../utils/assist';
|
||||
|
||||
const prefixCls = 'ivu-steps';
|
||||
|
@ -23,6 +24,7 @@
|
|||
|
||||
export default {
|
||||
name: 'Step',
|
||||
mixins: [ Emitter ],
|
||||
props: {
|
||||
status: {
|
||||
validator (value) {
|
||||
|
@ -49,9 +51,6 @@
|
|||
currentStatus: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this.currentStatus = this.status;
|
||||
},
|
||||
computed: {
|
||||
wrapClasses () {
|
||||
return [
|
||||
|
@ -97,6 +96,15 @@
|
|||
this.$parent.setNextError();
|
||||
}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.currentStatus = this.status;
|
||||
},
|
||||
mounted () {
|
||||
this.dispatch('Steps', 'append');
|
||||
},
|
||||
beforeDestroy () {
|
||||
this.dispatch('Steps', 'remove');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue