Files
NJUPT-Suan-API/webui/src/coms/ToolCard.vue
MangoFanFanw 14eadaab86 WebUI 1.0.0
WebUI 的版本号直接从 1.0.0 开始,目前而言无需激烈地重构了。
WebUI 使用 pnpm 管理构建流程,构建需要使用 `pnpm build` 。Kimi 说使用 `npm run build`
可能也行,等待测试了。
2026-04-21 13:37:38 +08:00

25 lines
471 B
Vue

<script setup lang="ts">
defineProps<{
type: 'Tool' | 'Resource' | 'Prompt'
name: string
description: string
}>()
</script>
<template>
<n-card>
<template #header>
<n-flex>
<n-tag type="primary">{{ type }}</n-tag>
<n-tag type="info">{{ name }}</n-tag>
<n-text strong>{{ description }}</n-text>
</n-flex>
</template>
<template #default>
<slot />
</template>
</n-card>
</template>
<style scoped></style>