<template>
    <span v-if="showUrl == false">
        {{ equData.equName }}({{ equData.lev }}级)
    </span>
    <router-link v-if="showUrl" :to='"/prop/equ?ue=" + equData.ueId'>
        {{ equData.equName }}({{ equData.lev }}级)
    </router-link>
</template>
<script setup lang="ts">
// 1. 定义接收父组件传来的参数 props
const props = defineProps({
  showUrl: {
    type: Boolean,
    default: false
  },
  equData: {
    type: Object,
    default: () => ({})
  }
})
</script>