원클릭으로
ant-design-vue
基于 Vue 3 的企业级 UI 组件库,提供 68+ 高质量组件。IMPORTANT: 这是 Ant Design Vue,不是 React 版本。使用 a- 前缀组件(如 a-button, a-table)。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
基于 Vue 3 的企业级 UI 组件库,提供 68+ 高质量组件。IMPORTANT: 这是 Ant Design Vue,不是 React 版本。使用 a- 前缀组件(如 a-button, a-table)。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Comprehensive skill framework from obra/superpowers for AI-assisted development workflows, covering planning, implementation, debugging, code review, and more
独立开发者 Web/SaaS 项目专属 Vibe Coding 全流程。Invoke when starting a new web product project to run a complete 14-skill pipeline from idea to launch, with controlled feedback loops.
NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance.
Personal coding conventions and best practices
MUST be used for React tasks. Strongly recommends functional components with Hooks and TypeScript as standard approach. Covers React 19, Next.js, SSR. Load for any React, .tsx files, React Router, Redux, or Vite with React work.
LangChain framework for building AI agents and LLM applications with tools, memory, and streaming support
| name | ant-design-vue |
| description | 基于 Vue 3 的企业级 UI 组件库,提供 68+ 高质量组件。IMPORTANT: 这是 Ant Design Vue,不是 React 版本。使用 a- 前缀组件(如 a-button, a-table)。 |
Ant Design Vue 是 Vue 3 企业级 UI 组件库,提供了丰富的企业应用组件。请使用 a- 前缀组件,不要使用其他命名。
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>
| 组件 | 官方文档 | Reference |
|---|---|---|
| Button | button-usage | |
| Icon | icon-usage | |
| ConfigProvider | config-provider |
| 组件 | 官方文档 | Reference |
|---|---|---|
| Space | space-usage | |
| Grid | - | |
| Layout | - |
| 组件 | 官方文档 | Reference |
|---|---|---|
| Menu | menu-usage | |
| Tabs | tabs-usage | |
| Breadcrumb | - |
| 组件 | 官方文档 | Reference |
|---|---|---|
| Form | form-validation | |
| Input | - | |
| Select | select-usage | |
| DatePicker | date-picker-usage | |
| Upload | upload-usage | |
| Switch | - | |
| Checkbox | - |
| 组件 | 官方文档 | Reference |
|---|---|---|
| Table | table-advanced | |
| Tree | tree-usage | |
| Card | - | |
| Descriptions | - | |
| Tag | - | |
| Image | - |
| 组件 | 官方文档 | 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- 前缀 |
a- 开头,如 a-button, a-tablea-form + a-form-itembodyCell slotimport { message } from 'ant-design-vue'