Browse Source

refine: v3 code snippets

菲鸽 2 years ago
parent
commit
15baac5940
1 changed files with 5 additions and 2 deletions
  1. 5 2
      .vscode/vue3.code-snippets

+ 5 - 2
.vscode/vue3.code-snippets

@@ -21,7 +21,10 @@
     "body": [
     "body": [
       "<route lang=\"json5\" type=\"page\">",
       "<route lang=\"json5\" type=\"page\">",
       "{",
       "{",
-      "  style: { navigationBarTitleText: '$1' },",
+      "  layout: 'default',",
+      "  style: {",
+      "    navigationBarTitleText: '$1',"
+      "  },",
       "}",
       "}",
       "</route>\n",
       "</route>\n",
       "<template>",
       "<template>",
@@ -31,7 +34,7 @@
       "//$3",
       "//$3",
       "</script>\n",
       "</script>\n",
       "<style lang=\"scss\" scoped>",
       "<style lang=\"scss\" scoped>",
-      "//",
+      "//$4",
       "</style>\n",
       "</style>\n",
     ],
     ],
   },
   },