<template>
  <div class="inline-16">
    <component :is="formComponent" @onSuccess="onSuccess"></component>
  </div>
</template>

<script>
export default {
  props:['formPath'],
  data () {
    return {
    }
  },
  computed:{
		formComponent(){
      return ()=>import(`@/Form/${this.formPath}/add.vue`)
		}
	},
  methods:{
    onSuccess () {
      this.$emit('onAddSuccess')
    }
  },
  mounted () {
    
  }
}

</script>
<style>
</style>