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

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

export default {
  name: 'AppSpecialPeople',
  appName: '特殊人群',

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

  components: { Detail, Add },

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

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