import { defineComponent, ref, watch } from 'vue'; import styles from '../index.module.less'; import { NImage } from 'naive-ui'; import radiusIcon from '../images/radiusIcon.png'; export default defineComponent({ emits: ['checkNavBar'], props: ['item'], name: 'layoutSilder', setup(props, { emit }) { const openNavBar = (item: any) => { emit('checkNavBar', item); }; const myItem = ref(props.item); watch( () => props.item, val => { myItem.value = val; }, { deep: true } ); return () => ( <>
{myItem.value.name}
{myItem.value.isActive ? (