style: 修改页面配置和代码片段格式

- 将首页图标类型从 'wot' 改为 'uiLib'
- 调整 Vue3 代码片段中 template 和 script 的顺序
- 格式化代码片段的缩进和换行
This commit is contained in:
feige996 2025-06-22 10:04:44 +08:00
parent 926d700b60
commit 69b7429909
2 changed files with 20 additions and 8 deletions

View File

@ -27,12 +27,12 @@
" },",
"}",
"</route>\n",
"<template>",
" <view class=\"\">$2</view>",
"</template>\n",
"<script lang=\"ts\" setup>",
"//$3",
"</script>\n",
"<template>",
" <view class=\"\">$2</view>",
"</template>\n",
"<style lang=\"scss\" scoped>",
"//$4",
"</style>\n",
@ -41,16 +41,28 @@
"Print unibest style": {
"scope": "vue",
"prefix": "st",
"body": ["<style lang=\"scss\" scoped>", "//", "</style>\n"],
"body": [
"<style lang=\"scss\" scoped>",
"//",
"</style>\n"
],
},
"Print unibest script": {
"scope": "vue",
"prefix": "sc",
"body": ["<script lang=\"ts\" setup>", "//$3", "</script>\n"],
"body": [
"<script lang=\"ts\" setup>",
"//$3",
"</script>\n"
],
},
"Print unibest template": {
"scope": "vue",
"prefix": "te",
"body": ["<template>", " <view class=\"\">$1</view>", "</template>\n"],
"body": [
"<template>",
" <view class=\"\">$1</view>",
"</template>\n"
],
},
}
}

View File

@ -30,7 +30,7 @@
"pagePath": "pages/index/index",
"text": "首页",
"icon": "home",
"iconType": "wot"
"iconType": "uiLib"
},
{
"iconPath": "static/tabbar/example.png",