wizard steps updated to vue
This commit is contained in:
		
							
								
								
									
										18
									
								
								resources/assets/js/views/wizard/company.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								resources/assets/js/views/wizard/company.js
									
									
									
									
										vendored
									
									
								
							| @@ -14,8 +14,10 @@ import Global from './../../mixins/global'; | ||||
|  | ||||
| import Form from './../../plugins/form'; | ||||
|  | ||||
| import {Step, Steps} from 'element-ui'; | ||||
|  | ||||
| // plugin setup | ||||
| Vue.use(DashboardPlugin); | ||||
| Vue.use(DashboardPlugin, Step, Steps); | ||||
|  | ||||
| const app = new Vue({ | ||||
|     el: '#app', | ||||
| @@ -24,9 +26,21 @@ const app = new Vue({ | ||||
|         Global | ||||
|     ], | ||||
|  | ||||
|     components: { | ||||
|         [Step.name]: Step, | ||||
|         [Steps.name]: Steps, | ||||
|     }, | ||||
|  | ||||
|     data: function () { | ||||
|         return { | ||||
|             form: new Form('company') | ||||
|             form: new Form('company'), | ||||
|             active: 0 | ||||
|         } | ||||
|     }, | ||||
|  | ||||
|     methods: { | ||||
|         next() { | ||||
|             if (this.active++ > 1) this.active = 0; | ||||
|         } | ||||
|     } | ||||
| }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user