<template>
  <div class="AppGridManagement">
    <component
        :is="component"
        @change="onChange"
        :params="params">
    </component>
  </div>
</template>

<script>
import Detail from './components/detail'

export default {
  name: 'AppGridManagement',
  appName: '网格管理',

  data() {
    return {
      component: 'Detail',
      params: {}
    }
  },

  components: { Detail },

  methods: {
    onChange(e) {
      this.params = e.params
      this.component = e.type
    }
  },
}
</script>

<style lang="scss" scoped>
uni-page-body{
  height: 100%;
}
.AppGridManagement{
  height: 100%;
}
</style>