style: 修改页面配置和代码片段格式
- 将首页图标类型从 'wot' 改为 'uiLib' - 调整 Vue3 代码片段中 template 和 script 的顺序 - 格式化代码片段的缩进和换行
This commit is contained in:
parent
926d700b60
commit
69b7429909
24
.vscode/vue3.code-snippets
vendored
24
.vscode/vue3.code-snippets
vendored
@ -27,12 +27,12 @@
|
|||||||
" },",
|
" },",
|
||||||
"}",
|
"}",
|
||||||
"</route>\n",
|
"</route>\n",
|
||||||
"<template>",
|
|
||||||
" <view class=\"\">$2</view>",
|
|
||||||
"</template>\n",
|
|
||||||
"<script lang=\"ts\" setup>",
|
"<script lang=\"ts\" setup>",
|
||||||
"//$3",
|
"//$3",
|
||||||
"</script>\n",
|
"</script>\n",
|
||||||
|
"<template>",
|
||||||
|
" <view class=\"\">$2</view>",
|
||||||
|
"</template>\n",
|
||||||
"<style lang=\"scss\" scoped>",
|
"<style lang=\"scss\" scoped>",
|
||||||
"//$4",
|
"//$4",
|
||||||
"</style>\n",
|
"</style>\n",
|
||||||
@ -41,16 +41,28 @@
|
|||||||
"Print unibest style": {
|
"Print unibest style": {
|
||||||
"scope": "vue",
|
"scope": "vue",
|
||||||
"prefix": "st",
|
"prefix": "st",
|
||||||
"body": ["<style lang=\"scss\" scoped>", "//", "</style>\n"],
|
"body": [
|
||||||
|
"<style lang=\"scss\" scoped>",
|
||||||
|
"//",
|
||||||
|
"</style>\n"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"Print unibest script": {
|
"Print unibest script": {
|
||||||
"scope": "vue",
|
"scope": "vue",
|
||||||
"prefix": "sc",
|
"prefix": "sc",
|
||||||
"body": ["<script lang=\"ts\" setup>", "//$3", "</script>\n"],
|
"body": [
|
||||||
|
"<script lang=\"ts\" setup>",
|
||||||
|
"//$3",
|
||||||
|
"</script>\n"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"Print unibest template": {
|
"Print unibest template": {
|
||||||
"scope": "vue",
|
"scope": "vue",
|
||||||
"prefix": "te",
|
"prefix": "te",
|
||||||
"body": ["<template>", " <view class=\"\">$1</view>", "</template>\n"],
|
"body": [
|
||||||
|
"<template>",
|
||||||
|
" <view class=\"\">$1</view>",
|
||||||
|
"</template>\n"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
@ -30,7 +30,7 @@
|
|||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页",
|
"text": "首页",
|
||||||
"icon": "home",
|
"icon": "home",
|
||||||
"iconType": "wot"
|
"iconType": "uiLib"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"iconPath": "static/tabbar/example.png",
|
"iconPath": "static/tabbar/example.png",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user