一个现代化、轻量级的 Vue 3 组件库
- 🚀 现代化架构: 基于 Vue 3 + TypeScript + Vite 构建
- 📦 双模式构建: 同时支持 ESM (Tree-shaking) 和 UMD 格式
- 🎨 类型友好: 提供完整的 TypeScript 类型定义
- 🔧 按需引入: 支持 Resolver 自动按需加载
- � 工程化规范: 采用 Monorepo 架构,使用 Changesets 管理版本
- 🧪 质量保障: 完善的测试流程(单元测试 + 冒烟测试)
# 使用 pnpm
pnpm add @axis-ui/components
# 使用 npm
npm install @axis-ui/components
# 使用 yarn
yarn add @axis-ui/componentsimport { createApp } from 'vue'
import AxisUI from '@axis-ui/components'
import '@axis-ui/components/dist/style.css'
import App from './App.vue'
const app = createApp(App)
app.use(AxisUI)
app.mount('#app')借助 unplugin-vue-components 和 AxisUIResolver,您可以实现自动按需引入。
vite.config.ts
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import { AxisUIResolver } from '@axis-ui/components/resolver'
export default defineConfig({
plugins: [
Components({
resolvers: [AxisUIResolver()],
}),
],
})import { AxIcon } from '@axis-ui/components'
// 样式文件会自动按需加载(如果使用了 Resolver),否则需手动引入
// import '@axis-ui/components/dist/style.css' 当前已实现的组件:
- Button - 按钮组件
- Checkbox - 复选框组件
- Form - 表单组件
- Icon - 图标组件
- Input - 输入框组件
- Tree - 树形控件
- VirtualList - 虚拟列表
更多组件正在开发中...
欢迎提交 Issue 和 Pull Request!
- Fork 本仓库
- 创建你的特性分支 (
git checkout -b feature/AmazingFeature) - 提交你的改动 (
git commit -m 'feat: add some amazing feature') - 推送到分支 (
git push origin feature/AmazingFeature) - 开启一个 Pull Request
MIT © 韦贺文
感谢所有为这个项目做出贡献的开发者!