<template>
  <data-life-cycle-detail-home :current-op-obj="currentOpObj" @changeOperation="$emit('changeOperation')" @changeDetailOperation="changeDetailOperation" v-if="!detailOperationType"/>
  <data-life-cycle-detail-detail :current-obj="currentOpObj" :detail-current-op-obj="detailCurrentOpObj" @changeDetailOperation="changeDetailOperation" v-else/>
</template>

<script>
import DataLifeCycleDetailHome
  from "@/view/other/c-views/data-watch/data-sync-handle-watch/data-life-cycle/DataLifeCycleDetailHome.vue";
import DataLifeCycleDetailDetail
  from "@/view/other/c-views/data-watch/data-sync-handle-watch/data-life-cycle/DataLifeCycleDetailDetail.vue";
import {useDetailOrEdit} from "@/unit/use-method/usePagination";

export default {
  name: "DataLifeCycleDetail",
  components: {DataLifeCycleDetailDetail, DataLifeCycleDetailHome},
  props:{
    currentOpObj:{

    }
  },
  setup(props,{emit}){

    const {operationType:detailOperationType,currentOpObj:detailCurrentOpObj,changeOperation:changeDetailOperation} = useDetailOrEdit()
    return {
      detailOperationType,detailCurrentOpObj,changeDetailOperation
    }
  }
}
</script>

<style scoped lang="scss">

</style>
