support Steps

fixed npm run dev error with  cann't find module vue-template-compiler
update test demo style
:
This commit is contained in:
huixisheng 2017-03-01 21:10:43 +08:00
parent a804d60885
commit bd596e7add
8 changed files with 32 additions and 40 deletions

View file

@ -21,11 +21,11 @@
export default {
props: {
status: {
validator (value) {
return oneOf(value, ['wait', 'process', 'finish', 'error']);
}
},
// status: {
// validator (value) {
// return oneOf(value, ['wait', 'process', 'finish', 'error']);
// }
// },
title: {
type: String,
default: ''
@ -42,7 +42,8 @@
prefixCls: prefixCls,
stepNumber: '',
nextError: false,
total: 1
total: 1,
status: ''
};
},
computed: {

View file

@ -43,7 +43,7 @@
];
}
},
ready () {
mounted () {
this.updateChildProps(true);
this.setNextError();
this.updateCurrent(true);