WebUI 1.0.0
WebUI 的版本号直接从 1.0.0 开始,目前而言无需激烈地重构了。 WebUI 使用 pnpm 管理构建流程,构建需要使用 `pnpm build` 。Kimi 说使用 `npm run build` 可能也行,等待测试了。
This commit is contained in:
24
webui/src/coms/ToolCard.vue
Normal file
24
webui/src/coms/ToolCard.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user