This commit is contained in:
Putoo
2026-04-25 11:08:01 +08:00
parent 41958a79e4
commit 62d5562ca7
4 changed files with 24 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
<template>
<router-link :to="url" :class="_class" >
<slot></slot>
</router-link>
</template>
<script setup>
// 1. 定义接收父组件传来的参数 props
const props = defineProps({
// 字段名、类型、默认值
url: String,
_class:String,
})
</script>