by antfu
构建Vue.js应用需要理解响应式状态管理、组件组合和现代JavaScript模式。本技能提供关于Vue Composition API、组件设计和响应式原理的专家指导。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 vue 技能" 开始使用
=== vue 技能 === 作者: antfu 描述: 构建Vue.js应用需要理解响应式状态管理、组件组合和现代JavaScript模式。本技能提供关于Vue Composition API、组件设计和响应式原理的专家指导。 使用方法: 1. 调用技能: "使用 vue 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 vue 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
The skill is based on Vue 3.5+, generated at 2026-01-28.
Vue is a progressive JavaScript framework for building user interfaces. It builds on standard HTML, CSS, and JavaScript with intuitive API and world-class documentation. The Composition API with <script setup> and TypeScript is the recommended approach for building Vue applications.
| Topic | Description | Reference |
|---|---|---|
| Reactivity System | ref, reactive, computed, watch, and watchEffect | core-reactivity |
| Topic | Description | Reference |
|---|---|---|
| Props | Declare and validate component props with TypeScript | components-props |
| Events (Emits) | Emit custom events from components | components-emits |
| Slots | Pass template content to child components | components-slots |
| v-model | Two-way binding on custom components | components-v-model |
| Lifecycle Hooks | Run code at specific component lifecycle stages | components-lifecycle |
| Topic | Description | Reference |
|---|---|---|
| Script Setup | Composition API syntactic sugar for SFCs | features-script-setup |
| TypeScript | Type-safe Vue components with Composition API | features-typescript |
| Topic | Description | Reference |
|---|---|---|
| Composables | Encapsulate and reuse stateful logic | features-composables |
| Custom Directives | Low-level DOM manipulation directives | features-directives |
| Template Refs | Direct DOM and component instance access | features-template-refs |
| Topic | Description | Reference |
|---|---|---|
| Provide/Inject | Dependency injection across component tree | advanced-provide-inject |
| Async & Suspense | Top-level await pitfalls, async components, Suspense | advanced-async-suspense |
<script setup lang="ts"> for all componentsref() over reactive() for declaring statedefineModel() for v-model (3.4+)View Count
0
Download Count
0
Favorite Count
0
Quality Score
73