开箱即用的AI组件库(基于 Vue3 + ElementPlus)
- ✨ AI 组件:内置聊天机器人、思维链等场景化组件
- 🚀 零配置集成:基于 Element-Plus,开箱即用
- 📦 按需加载:提供 Tree Shaking 优化
# npm
npm install @artmate/chat
# pnpm(推荐)
pnpm install @artmate/chat
# yarn
yarn install @artmate/chat
- 按需引入
<script>
import { BubbleList, Sender } from '@artmate/chat'
const list = [
{
content: 'Hello, ArtChat!',
role: 'user',
},
]
</script>
<template>
<div>
<BubbleList :list="list" />
<Sender />
</div>
</template>
- 全局引入
// main.ts
import ArtChat from '@artmate/chat'
import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
app.use(ArtChat)
app.mount('#app')
- Fork 仓库
- 创建 Feature 分支
- 提交 Pull Request