<template>
  <div>
    <aos-form v-if="showType === 'form'">
      <slot></slot>
    </aos-form>
    <aos-table v-else>
      <slot></slot>
    </aos-table>
  </div>
</template>
<script>
import AosForm from '../../aos-form';
import AosTable from '../../aos-table';
export default {
  name: 'AosTemplate',
  components: {AosForm, AosTable},
  props: {
    showType: {
      type: String,
      required: true,
      default: 'form'
    },
    // 业务编码
    busCode: {
      type: String,
      required: true
    },
    // 模板编码
    temCode: {
      type: String,
      required: true
    }
  },
  data() {
    return {

    };
  },
  created() {
    this.getTemplate();
  },
  methods: {
    getTemplate() {}
  }
};
</script>
