vue-best-practices

vue-best-practices

热门

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.

106Star
3Fork
更新于 2026/3/1
请求的译文尚未完成,当前显示原始英文。
SKILL.md
只读
名称
vue-best-practices
描述

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.

Vue 3 best practices, common gotchas, and performance optimization.

Reactivity

Computed

Watchers

Components

Props & Emits

Templates

Template Refs

Forms & v-model

Events & Modifiers

Lifecycle

Slots

Provide/Inject

Attrs

Composables

Composition API

Directives

Transitions

Animation

KeepAlive

Async Components

Render Functions

Teleport

Suspense

TypeScript

SSR

Performance

SFC (Single File Components)

Plugins

App Configuration