Merge pull request #63 from cshaptx4869/patch-32

feat(snippet):  增加vue文件代码片段
This commit is contained in:
Ray Hao 2024-03-25 16:06:55 +08:00 committed by GitHub
commit c6421f0e43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 61 additions and 0 deletions

23
.vscode/vue3.0.code-snippets vendored Normal file
View File

@ -0,0 +1,23 @@
{
"Vue3.0快速生成模板": {
"scope": "vue",
"prefix": "Vue3.0",
"body": [
"<template>",
" <div>${1:test}</div>",
"</template>",
"",
"<script lang=\"ts\">",
"export default {",
" setup() {",
" return {};",
" },",
"};",
"</script>",
"",
"<style lang=\"scss\" scoped></style>",
""
],
"description": "Vue3.0"
}
}

17
.vscode/vue3.2.code-snippets vendored Normal file
View File

@ -0,0 +1,17 @@
{
"Vue3.2+快速生成模板": {
"scope": "vue",
"prefix": "Vue3.2+",
"body": [
"<script setup lang=\"ts\"></script>",
"",
"<template>",
" <div>${1:test}</div>",
"</template>",
"",
"<style lang=\"scss\" scoped></style>",
""
],
"description": "Vue3.2+"
}
}

21
.vscode/vue3.3.code-snippets vendored Normal file
View File

@ -0,0 +1,21 @@
{
"Vue3.3+defineOptions快速生成模板": {
"scope": "vue",
"prefix": "Vue3.3+",
"body": [
"<script setup lang=\"ts\">",
"defineOptions({",
" name: \"\",",
"});",
"</script>",
"",
"<template>",
" <div>${1:test}</div>",
"</template>",
"",
"<style lang=\"scss\" scoped></style>",
""
],
"description": "Vue3.3+defineOptions快速生成模板"
}
}