<template>
  <user-manage-home @changeOperation="changeOperation" v-if="!operationType" />
  <user-manage-edit :current-op-obj="currentOpObj" :operation-type="operationType" @changeOperation="changeOperation" v-else />
</template>

<script>
import {useClickRouterToHome} from "@/units/use-method/usePagination";
import UserManageHome from "@/views/main/c-views/system-manage/user-manage/UserManageHome.vue";
import UserManageEdit from "@/views/main/c-views/system-manage/user-manage/UserManageEdit.vue";
export default {
  name: "UserManage",
  components: {UserManageEdit, UserManageHome},
  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>