This commit is contained in:
Putoo
2026-06-16 18:30:53 +08:00
parent 5d4b5c989a
commit 5cd6151b96
14 changed files with 413 additions and 57 deletions

View File

@@ -0,0 +1,21 @@
<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>

View File

@@ -17,7 +17,10 @@
const props = defineProps({
// 字段名、类型、默认值
isShow: Boolean,
isShow: {
type: Boolean,
default: false
},
title: String
})
const visible = ref(props.isShow)