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);

View file

@ -31,7 +31,7 @@ import Radio from './components/radio';
// import Rate from './components/rate';
// import Slider from './components/slider';
// import Spin from './components/spin';
// import Steps from './components/steps';
import Steps from './components/steps';
// import Switch from './components/switch';
// import Table from './components/table';
// import Tabs from './components/tabs';
@ -96,8 +96,8 @@ const iview = {
// iSelect: Select,
// Slider,
// Spin,
// Step: Steps.Step,
// Steps,
Step: Steps.Step,
Steps,
// Switch,
// iTable: Table,
// Tabs: Tabs,