Przeglądaj źródła

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

- 将首页图标类型从 'wot' 改为 'uiLib'
- 调整 Vue3 代码片段中 template 和 script 的顺序
- 格式化代码片段的缩进和换行
feige996 10 miesięcy temu
rodzic
commit
69b7429909
2 zmienionych plików z 20 dodań i 8 usunięć
  1. 19 7
      .vscode/vue3.code-snippets
  2. 1 1
      src/pages.json

+ 19 - 7
.vscode/vue3.code-snippets

@@ -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"
+    ],
   },
   },
-}
+}

+ 1 - 1
src/pages.json

@@ -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",