<template>
<zk-auto-form :type="type" :widget="widget" ref="zkAutoForm" @afterLoad="afterLoad" :afterLoad="true"></zk-auto-form>
</template>
<script>
	import ala from '@/service/ala.js'
	export default {
		props: {
			widget: {}
		},
		data() {
			return {
				type:null
			}
		},
		created() {
			this.init()
		},
		methods: {
			async init() {
				this.type=ala.urlType(this.widget.route)
			},
			async afterLoad(data) {
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>