<template>
  <div>
    <JJR v-if="isShow" @changeItem="changeItem" />
    <CASE v-if="!isShow" @changeItem="changeItem" :dataItem="dataItem" />
  </div>
</template>

<script setup>
import JJR from './jjr.vue'
import CASE from './case.vue'
import { ref } from 'vue';
const isShow = ref(true);
const dataItem = ref({});
const changeItem = (val) =>{
  isShow.value = val ? false :true;
  if(val) dataItem.value = val;
}
</script>

<style lang="scss" scoped>

</style>