<template>
  <div class="dee-page no-padding">
    <businessTab
      ref="businessTab"
      style="height: 100%;background-color: #fff"
      :is-view="isView"
      :model-name="modelName"
      :type-name="typeName"
      :page-data="pageData"
      :page-name="pageName"
      :show-collect="true"
      :config="config"
      :table-options="tableOptions"
      v-bind="configDetails"
      :custom-events="customEvents"
      v-on="layHandler"
      @close-detail="$emit('close-detail')"
    />
  </div>
</template>

<script>
import { baselineCustomEvent } from './customEvents.js'
export default {
  name: 'DxBaselineDetail',
  displayName: '基线详情',
  modelRelationObjs: ['DxBaselineDetail'],
  props: {
    isView: {
      type: Boolean,
      default: false
    },
    config: {
      type: Object,
      default: () => {}
    },
    pageData: {
      type: Object,
      default: () => {}
    },
    tableOptions: {
      type: Object,
      default: () => {}
    },
    configDetails: {
      type: Object,
      default: () => {}
    },
    layHandler: {
      type: Object,
      default: () => {}
    },
    typeName: {
      type: [Number, String],
      default: () => ''
    },
    modelName: {
      type: [Number, String],
      default: () => 'DxBaselineDetail'
    },
    pageName: {
      type: [Number, String],
      default: () => ''
    }
  },
  data() {
    return {
      customEvents: null
    }
  },
  computed: {},
  watch: {},
  // 生命周期 - 创建完成(访问当前this实例)
  created() {},
  // 生命周期 - 挂载完成(访问DOM元素)
  mounted() {
    const PartEvents = baselineCustomEvent
    this.customEvents = new PartEvents(this)
  },
  methods: {
    load(val) {
      this.$refs['businessTab'].load(val)
    }
  }
}
</script>
<style lang="scss">
/* @import url(); 引入css类 */

</style>