111
This commit is contained in:
13
Web/src/components/Abar.vue
Normal file
13
Web/src/components/Abar.vue
Normal 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>
|
||||
Reference in New Issue
Block a user