Skip to content

Commit 8918f6f

Browse files
committed
更新文档、icon等信息
1 parent b55ef9a commit 8918f6f

File tree

7 files changed

+87
-11
lines changed

7 files changed

+87
-11
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
*.vsix
3+
DS_Store

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## [0.0.2] - 2022-01-27
4+
5+
### Changed
6+
7+
- 更新readme文档
8+
- 更新完善icon等设置
9+
10+
11+
312
## [0.0.1] - 2022-01-27
413

514
### Added

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
这是一个适配 Vue3 Api 的 snippets 插件
44

5+
**注意** :本插件不适用于 vue2
6+
57
# 特性
68

9+
目前支持的代码片段
10+
11+
| Prefix | Snippets content |
12+
| :------: | :----------------------------------------------------------: |
13+
| vue | <template></template><script setup lang="ts"></script><style></style> |
14+
| template | <template><div></div></template> |
15+
| scripte | <script setup lang="ts"></script> |
16+
| style | <style lang=""></style> |
17+
| css | <style scoped></style> |
18+
| scss | <style lang="scss"></style> |
19+
| Sass | <style lang="sass"></style> |
20+
| Less | <style lang="less"></style> |
21+
| | |
22+
723
**Enjoy!**

assets/log.png

12.3 KB
Loading

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22
"name": "vue3-snippets-for-vscode",
33
"displayName": "vue3-snippets-for-vscode",
44
"description": "a vue3 snippets for vscode",
5-
"version": "0.0.1",
5+
"version": "0.0.2",
66
"publisher": "wejectchan",
7+
"icon": "assets/log.png",
78
"keywords": [
89
"vue",
910
"snippets",
1011
"vue3"
1112
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/wejectchen/vue3-snippets-for-vscode"
16+
},
17+
"bugs": {
18+
"url": "https://github.com/wejectchen/vue3-snippets-for-vscode/issues",
19+
"email": "weject@gmail.com"
20+
},
21+
"license": "MIT",
1222
"engines": {
1323
"vscode": "^1.63.0"
1424
},

snippets/vue.code-snippets

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"vinit": {
3-
"prefix": ".vue",
3+
"prefix": "vueinit",
44
"body": [
55
"<template>",
66
"\t\t$0",
@@ -16,29 +16,69 @@
1616
],
1717
"description": "vue模版初始化(默认setup语法糖和ts)"
1818
},
19-
"templateLang": {
19+
"template": {
2020
"prefix": "template",
21-
"body": ["<template>", "\t<div$2>", "\t\t$0", "\t</div>", "</template>"],
21+
"body": [
22+
"<template>",
23+
"\t<div$2>",
24+
"\t\t$0",
25+
"\t</div>",
26+
"</template>"
27+
],
2228
"description": "template模版"
2329
},
2430
"script": {
2531
"prefix": "script",
26-
"body": ["<script>", "export default {", "\t$0", "}", "</script>"],
32+
"body": [
33+
"<script setup lang=\"ts\">",
34+
"\t$0",
35+
"</script>"
36+
],
2737
"description": "script模版"
2838
},
2939
"style": {
3040
"prefix": "style",
31-
"body": ["<style lang=\"$1\">", "\t$0", "</style>"],
41+
"body": [
42+
"<style lang=\"$0\" scoped>",
43+
"\t",
44+
"</style>"
45+
],
3246
"description": "style element with lang attribute"
3347
},
3448
"styleCss": {
3549
"prefix": "css",
36-
"body": ["<style>", "\t$0", "</style>"],
50+
"body": [
51+
"<style scoped>",
52+
"\t$0",
53+
"</style>"
54+
],
3755
"description": "css style"
3856
},
57+
"styleScss": {
58+
"prefix": "scss",
59+
"body": [
60+
"<style lang=\"scss\" scoped>",
61+
"\t$0",
62+
"</style>"
63+
],
64+
"description": "Scss style"
65+
},
3966
"styleSass": {
40-
"prefix": "style lang=\"scss\"",
41-
"body": ["<style lang=\"$1\">", "\t$0", "</style>"],
67+
"prefix": "sass",
68+
"body": [
69+
"<style lang=\"sass\" scoped>",
70+
"\t$0",
71+
"</style>"
72+
],
4273
"description": "Sass style"
43-
}
44-
}
74+
},
75+
"styleLess": {
76+
"prefix": "less",
77+
"body": [
78+
"<style lang=\"less\" scoped>",
79+
"\t$0",
80+
"</style>"
81+
],
82+
"description": "Less style"
83+
},
84+
}

0 commit comments

Comments
 (0)