Przeglądaj źródła

feat(vscode): 添加带 definePage 的 unibest 脚本代码片段

feige996 7 miesięcy temu
rodzic
commit
25367384c6
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      .vscode/vue3.code-snippets

+ 13 - 0
.vscode/vue3.code-snippets

@@ -52,6 +52,19 @@
       "</script>\n"
     ],
   },
+  "Print unibest script with definePage": {
+    "scope": "vue",
+    "prefix": "scdp",
+    "body": [
+      "<script lang=\"ts\" setup>",
+      "definePage({",
+      "  style: {",
+      "    navigationBarTitleText: '$1',",
+      "  },",
+      "})",
+      "</script>\n"
+    ],
+  },
   "Print unibest template": {
     "scope": "vue",
     "prefix": "te",