# undraw-ui **Repository Path**: undraw/undraw-ui ## Basic Information - **Project Name**: undraw-ui - **Description**: vue评论组件,🔥基于vue3的UI组件,主要功能有评论,聊天,搜索,锚点。你的⭐️Star ,是作者开发的动力! - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://readpage.github.io/undraw-ui/ - **GVP Project**: No ## Statistics - **Stars**: 464 - **Forks**: 59 - **Created**: 2022-04-09 - **Last Updated**: 2025-06-09 ## Categories & Tags **Categories**: vue-extensions **Tags**: Vue, TypeScript ## README

Undraw UI - A Vue.js 3 UI library

Featured|HelloGitHub ## 🔥功能 **折叠、评论、锚点、搜索** 1. 折叠 ![](https://s2.loli.net/2022/04/28/frd5h8bulF7SZK6.png) 2. 评论 ![](https://s2.loli.net/2022/04/28/HtGWBxsJ5LljDEU.png)

暗黑主题

![img](https://gitee.com/undraw/undraw-ui/raw/master/public/docs/comment-dark.png) 3. 搜索(input关键词动态滚动) ![](https://s2.loli.net/2022/06/22/juvX79t6OPcaWZs.png) 4. 锚点 ![](https://s2.loli.net/2022/04/30/r2XbGviK8FqUoRQ.png) ## 入门 请遵循[https://readpage.github.io/undraw-ui/](https://readpage.github.io/undraw-ui/)上的文档! ## 地址 - [gitee⚡️](https://gitee.com/undraw/undraw-ui) - [github📌](https://github.com/readpage/undraw-ui) ## 安装 使用`npm`安装 element-plus可以选择需要版本 ```sh npm i element-plus@2.6.0 undraw-ui@1.2.7 ``` ## 导入 ### 按需导入(推荐) 您需要使用额外的插件来导入要使用的组件。 首先你需要安装 unplugin-vue-components 两款插件。 ```sh npm install -D unplugin-vue-components ``` 然后修改 vite.config.ts 或 vue.config.js 的配置。 ```ts import Components from 'unplugin-vue-components/vite' import { UndrawUiResolver } from 'undraw-ui/es/resolvers' export default { plugins: [ Components({ resolvers: [UndrawUiResolver] }), ], } ``` ### 全局注册(不推荐)-选择按需导入忽略 如果你对打包后的文件大小不是很在乎,那么使用完整导入会更方便。 ```ts import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import UndrawUi from 'undraw-ui' import 'undraw-ui/dist/style.css' const app = createApp(App) app.use(ElementPlus) app.use(UndrawUi) app.mount('#app') ``` ## 使用 ### fold 折叠组件 ```vue ``` ### 评论组件 [增强功能地址](https://readpage.github.io/undraw-ui/components/comment.html) [基础使用-vite模板地址](https://gitee.com/undraw/undraw-ui-demo/tree/master/Vue) [组件后端相关实例](https://gitee.com/undraw/undraw-ui-demo/tree/master/Java) ## 开发交流 QQ群:[undraw(682265529)](https://jq.qq.com/?_wv=1027&k=NsgARkfw)