Переглянути джерело

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

feige996 7 місяців тому
батько
коміт
25367384c6
1 змінених файлів з 13 додано та 0 видалено
  1. 13 0
      .vscode/vue3.code-snippets

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

@@ -52,6 +52,19 @@
       "</script>\n"
       "</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": {
   "Print unibest template": {
     "scope": "vue",
     "scope": "vue",
     "prefix": "te",
     "prefix": "te",