feat(snippet): ✨ 增加vue文件代码片段
This commit is contained in:
parent
023c585c95
commit
dd587d916e
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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+"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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快速生成模板"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue