ant-design-vue
Skill8 starsChanged 3 months agoMITView on GitHub
基于 Vue 3 的企业级 UI 组件库,提供 68+ 高质量组件。IMPORTANT: 这是 Ant Design Vue,不是 React 版本。使用 a- 前缀组件(如 a-button, a-table)。
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- belos-street/skill-kitword for word, first seen Sep 16, 2026
Other versions1 project uses a version of this.
Word for word · 1
- belos-street/skill-kit★ 8100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/nestjs-best-practices/AGENTS.mdAGENTS.md
- skills/react-native-skills/AGENTS.mdAGENTS.md
- ai-collab-system-bootstrapSkill
- belos-streetSkill
- bunSkill
- fastify-best-practicesSkill
- frontend-designSkill
- golang-best-practicesSkill
- grill-meSkill
- langchainSkill
- nestjs-best-practicesSkill
- nextjsSkill
- piniaSkill
- ragSkill
- react-best-practicesSkill
- react-best-practicesSkill
- react-native-skillsSkill
- reactSkill
- brainstormingSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- superpowersSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
- ui-templatesSkill
- unocssSkill
- vibe-flowSkill
- vue-best-practicesSkill
- vue-router-best-practicesSkill
- vueSkill
- zustandSkill
The file
Files
Ant Design Vue 是 Vue 3 企业级 UI 组件库,提供了丰富的企业应用组件。请使用 a- 前缀组件,不要使用其他命名。
Quick Start
pnpm install ant-design-vue@4.x<script setup>
import { ref } from 'vue';
import { KingAntOutlined } from '@ant-design/icons-vue';
const loading = ref(false);
const handleClick = () => {
loading.value = true;
setTimeout(() => loading.value = false, 2000);
};
</script>
<template>
<a-button type="primary" :loading="loading" @click="handleClick">
<template #icon><KingAntOutlined /></template>
Click Me
</a-button>
</template>Key Features
- 68+ Components: 覆盖企业应用全场景
- Vue 3 Only: 专为 Vue 3 设计
- TypeScript: 完整类型支持
- Tree Shaking: 按需引入
- Design Tokens: 主题定制
组件分类
通用 General
| 组件 | 官方文档 | Reference |
| Button | button-usage | |
| Icon | icon-usage | |
| ConfigProvider | config-provider |
布局 Layout
导航 Navigation
| 组件 | 官方文档 | Reference |
| Menu | menu-usage | |
| Tabs | tabs-usage | |
| Breadcrumb | - |
数据录入 Data Entry
| 组件 | 官方文档 | Reference |
| Form | form-validation | |
| Input | - | |
| Select | select-usage | |
| DatePicker | date-picker-usage | |
| Upload | upload-usage | |
| Switch | - | |
| Checkbox | - |
数据展示 Data Display
反馈 Feedback
| 组件 | 官方文档 | Reference |
| Modal | modal-patterns | |
| Drawer | drawer-patterns | |
| Message | message-feedback | |
| Notification | - | |
| Alert | - |
常见场景
表单处理
<!-- ✅ 正确写法:使用 a-form -->
<a-form :model="formState" @finish="onFinish">
<a-form-item label="用户名" name="username"
:rules="[{ required: true, message: '请输入用户名' }]">
<a-input v-model:value="formState.username" />
</a-form-item>
</a-form>
<!-- ❌ 错误写法:忘记使用 a-form-item 包裹 -->
<!-- <a-input v-model:value="formState.username" /> -->表格渲染
<!-- ✅ 正确写法:使用 a-table -->
<a-table :columns="columns" :data-source="data" :pagination="false">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<a @click="handleEdit(record)">编辑</a>
</template>
</template>
</a-table>
<!-- ❌ 错误写法:忘记使用 bodyCell slot -->消息提示
// ✅ 正确写法
import { message } from 'ant-design-vue';
message.success('操作成功');
message.error('操作失败');
// ❌ 错误写法:使用其他组件库的方式
// notification.success({ message: '...' });主题定制
<script setup>
import { theme } from 'ant-design-vue';
const darkTheme = {
token: {
colorPrimary: '#1890ff',
borderRadius: 4,
},
};
</script>
<template>
<a-config-provider :theme="darkTheme">
<App />
</a-config-provider>
</template>常见错误
| 错误写法 | 正确写法 | 说明 |
<Button> | <a-button> | 需要 a- 前缀 |
message.success() | import { message } from 'ant-design-vue' | 正确导入 |
<Form> | <a-form> | 需要 a- 前缀 |
<Table> | <a-table> | 需要 a- 前缀 |
Key Points
- 使用 a- 前缀: 所有组件都是
a-开头,如a-button,a-table - 使用 Form: 表单必须用
a-form+a-form-item - 使用 slots: 表格自定义列用
bodyCellslot - 正确导入:
import { message } from 'ant-design-vue' - 按需引入: 使用 unplugin-vue-components 自动导入
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

