Loading...
Loading...
Vue SFC implementation playbook for weapp-vite mini-program projects, including `<script setup lang="ts">`, JSON macros (`defineAppJson/definePageJson/defineComponentJson`), `usingComponents`, template directive compatibility, and SFC compile/runtime troubleshooting. Use when users ask about `.vue` authoring or refactoring in mini-programs (e.g. "v-model 在小程序里怎么写", "definePageJson 和 <json> 怎么选", "SFC 编译报错", "usingComponents 不生效").
npx skill4agent add sonofmagic/skills weapp-vite-vue-sfc-best-practices.vuedefinePageJsondefineComponentJsondefineAppJson<json>v-modelv-bind="object"usingComponentsweapp-vite-best-practiceswevu-best-practicesnative-to-weapp-vite-wevu-migrationusingComponentsvueCompilerOptions.lib<template>/<script>/<style><json><script setup lang="ts">wevusetup()awaitdefineAppJsondefinePageJsondefineComponentJsonv-modelxx.yx[i]v-modelv-bindawaitsetup()<json>usingComponentswevureferences/macro-config-checklist.mdreferences/template-compat-matrix.mdreferences/troubleshooting-playbook.md