This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
-
VS Code + Vue - Official (previously Volar) and disable Vetur
-
Use vue-tsc for performing the same type checking from the command line, or for generating d.ts files for SFCs.
npx shadcn-vue@latest add button
<script setup lang="ts">
import { Button } from '@/components/ui/button'
</script>
<template>
<div>
<Button>Click me</Button>
</div>
</template>
参考: https://www.npmjs.com/package/code-inspector-plugin
The default combination keys for Mac are Option + Shift; for Windows, it's Alt + Shift, and the browser console will output related combination key prompts