Pular para o conteúdo
Kitbay
Skill

vue

MITAtualizado em 13 de nov. de 202651.383Estrelas no GitHub

A copy, kept in the AIRI repository, of Anthony Fu's Vue skill, generated from the Vue documentation.

O que a skill ensina

A copy, kept in the AIRI repository, of Anthony Fu's Vue skill, generated from the Vue documentation. It steers the agent towards Vue 3.5 with TypeScript, script setup and the Composition API, preferring shallowRef where deep reactivity is not needed and avoiding destructured reactive props. Three reference files cover the script setup macros such as defineProps, defineEmits and defineModel, the reactivity and lifecycle APIs including watchers and effect scopes, and built-in components and directives such as Transition, Teleport, Suspense, KeepAlive and v-memo. A quick reference gives a full single-file component example and the main imports grouped by purpose.

O que faz

  • Write Vue 3 single-file components with script setup
  • Use defineProps, defineEmits and defineModel
  • Choose between ref and shallowRef
  • Use Transition, Teleport and Suspense