安装
环境要求
- Node.js >= 20
- Vue >= 3.5
- pnpm (推荐) / npm / yarn
安装 Aether UI
bash
pnpm add @aether/ui安装图标包 (可选)
bash
pnpm add @aether/icons字体 (推荐)
Aether UI 使用系统默认字体栈,无需额外安装。如果你需要特定的中文字体:
bash
pnpm add vfonts然后在入口文件引入:
ts
import 'vfonts/FiraCode.css'
import 'vfonts/Inter.css'引入方式
全局引入
ts
import { createApp } from 'vue'
import AetherUI from '@aether/ui'
import App from './App.vue'
const app = createApp(App)
app.use(AetherUI)
app.mount('#app')按需引入 (推荐)
vue
<script setup lang="ts">
import { AButton, AConfigProvider } from '@aether/ui'
</script>Tree-shaking 会自动移除未使用的组件,无需额外配置。