vue2.6.14
npx skills add https://github.com/fengxiaodong28/vue2.6.14-skills --skill vue2.6.14
Agent 安装分布
Skill 文档
Vue 2.6.14 Options API & Best Practices
Vue 2.6.14 development guide focusing on the Options API with Object.defineProperty-based reactivity, component patterns, and Vue 2 ecosystem integration (Vue Router 3.x, Vuex 3.x).
Reactivity System
Can’t detect property addition on objects â See reactivity/
Can’t detect array index assignment â See reactivity/
Can’t detect array length changes â See reactivity/
Frozen objects can’t be made reactive â See reactivity/
Adding reactive properties with Vue.set â See reactivity/
Deleting reactive properties with Vue.delete â See reactivity/
Vue.observable() for minimal state â See reactivity/
Global API
Vue.config global options â See global-api/
Vue.nextTick for DOM updates â See global-api/
Creating custom directives â See global-api/
Global component registration â See global-api/
Plugin development â See global-api/
Global mixins (use with caution) â See global-api/
Lifecycle
Vue 2 specific lifecycle hooks â See lifecycle/
Never use arrow functions in lifecycle hooks â See lifecycle/
Stateful methods shared across component instances â See lifecycle/
Async component error handling (Vue 2.6.0+) â See lifecycle/
Component Options
Props validation with custom validators â See component-options/
Default values for object and array props â See component-options/
Typing complex props with interfaces â See component-options/
Props down, events up pattern â See component-options/
Using .sync modifier (Vue 2.3+) â See component-options/
Event bus for sibling communication â See component-options/
Provide/Inject reactivity limitations â See component-options/
Functional components (stateless) â See component-options/
Custom v-model with model option â See component-options/
inheritAttrs for attribute inheritance â See component-options/
Programmatic slot access ($slots/$scopedSlots) â See component-options/
Transparent wrappers ($attrs/$listeners) â See component-options/
Default and named slots â See component-options/
Scoped slots with slot props â See component-options/
Deep and immediate watch options â See component-options/
Directives
v-model modifiers (.lazy, .number, .trim) â See directives/
Event modifiers for v-on â See directives/
Binding modifiers for v-bind â See directives/
v-html security considerations â See directives/
v-show vs v-if comparison â See directives/
v-for with v-if priority issue â See directives/
Missing :key on v-for â See directives/
v-once for static content optimization â See directives/
v-cloak for hiding uncompiled templates â See directives/
v-pre for skipping compilation â See directives/
key, ref, slot, is special attributes â See directives/
Instance API
Template refs with $refs â See instance-api/
Custom events with $emit â See instance-api/
Force re-rendering with $forceUpdate â See instance-api/
$data, $props, $el instance properties â See instance-api/
$options, $parent, $root, $children, $isServer â See instance-api/
Built-in Components
transition component for enter/leave animations â See components/
keep-alive component for caching â See components/
transition-group for list transitions â See components/
Render Functions
Render functions and createElement â See render-functions/
TypeScript Integration
Using Vue.extend() for TypeScript â See types/
Type-safe computed properties â See types/
Type-safe event handlers â See types/
PropType for complex prop types â See types/
Shims for .vue files â See types/
TypeScript improvements in Vue 2.6 â See types/
Build Tooling
vue.config.js basic setup â See build-tooling/
Configuring Less preprocessor â See build-tooling/
Environment variables â See build-tooling/
vue-template-compiler version matching â See build-tooling/
Common build errors and solutions â See build-tooling/
Ecosystem Integration
Router setup and configuration â See ecosystem/
Dynamic routes with params â See ecosystem/
Navigation guards â See ecosystem/
Lazy loading routes â See ecosystem/
Store setup and modules â See ecosystem/
State, getters, mutations, actions â See ecosystem/
Vuex reactivity gotchas â See ecosystem/
@vue/composition-api (Vue 2)
Composition API plugin setup â See ecosystem/
Ref vs Reactive for reactive state â See ecosystem/
Creating reusable logic with composables â See ecosystem/
Using Vuex with Composition API â See ecosystem/
vue-class-component (Vue 2)
Class-based component definition â See ecosystem/
Using mixins with class components â See ecosystem/
Composition API vs Class Component â See ecosystem/
Vue 2 vs Vue 3 Differences
Key syntax differences â See comparison/
Filters removed in Vue 3 â See comparison/
$listeners and $attrs changes â See comparison/