新增组件
This commit is contained in:
31
app/components/content/ReadMore.vue
Normal file
31
app/components/content/ReadMore.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<UPage>
|
||||
<NuxtLink v-if="to" :to="to">
|
||||
<UAlert :icon :title :color="color" :variant="variant" :description="to"
|
||||
class="mt-2 mb-3 text-black dark:text-white" :ui="{
|
||||
icon: iconSize
|
||||
}">
|
||||
<slot />
|
||||
</UAlert>
|
||||
</NuxtLink>
|
||||
</UPage>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
const {
|
||||
variant = 'subtle',
|
||||
title,
|
||||
icon = 'lucide:bookmark',
|
||||
} = defineProps<{
|
||||
color?: string;
|
||||
description?: string;
|
||||
title?: string;
|
||||
to?: string;
|
||||
icon?: string;
|
||||
iconSize?: string;
|
||||
variant?: string;
|
||||
|
||||
}>();
|
||||
|
||||
</script>
|
Reference in New Issue
Block a user