<template>
  <keep-alive include="SyncRuleHome">
    <sync-rule-home @changeOperation="changeOperation" v-if="!operationType"/>
    <sync-rule-edit :current-op-obj="currentOpObj" @changeOperation="changeOperation" v-else/>
  </keep-alive>
</template>

<script>



import {useClickRouterToHome} from "@/unit/use-method/usePagination";

import SyncRuleHome from "@/view/other/c-views/data-handle/zsk/sync-rule/SyncRuleHome.vue";
import SyncRuleEdit from "@/view/other/c-views/data-handle/zsk/sync-rule/SyncRuleEdit.vue";

export default {
  name: "SyncRule",
  components: {SyncRuleEdit, SyncRuleHome},
  setup() {
    const {changeOperation,operationType,currentOpObj} = useClickRouterToHome()
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped lang="scss">
.fade-leave-active,.fade-enter-active{
  transition: 1s all;
}
.fade-leave-to,.fade-enter-from{
  opacity: 0;
  transform: translateX(30px);
}
</style>
