aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorNtkskwk <natsukawa247@outlook.com>2024-09-03 00:05:38 +0800
committerNtkskwk <natsukawa247@outlook.com>2024-09-03 00:05:38 +0800
commitd77828d97ee98792e50a034f905cd3894807d5ff (patch)
treec155d41ca7db7ae858a6eef19cff28b670bc79ea
parent1605bd66ab97a206e4698954d47b10d87b09ec2d (diff)
downloadHydroRoll-d77828d97ee98792e50a034f905cd3894807d5ff.tar.gz
HydroRoll-d77828d97ee98792e50a034f905cd3894807d5ff.zip
feat: add Vue code snippets for faster development
-rw-r--r--.vscode/extensions.json3
-rw-r--r--.vscode/vue3.0.code-snippets22
-rw-r--r--.vscode/vue3.2.code-snippets17
-rw-r--r--.vscode/vue3.3.code-snippets20
4 files changed, 61 insertions, 1 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index c3e98bc..658ca8a 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -5,6 +5,7 @@
"dbaeumer.vscode-eslint",
"golang.go",
"sumneko.lua",
- "lextudio.iis"
+ "lextudio.iis",
+ "vue.volar"
]
} \ No newline at end of file
diff --git a/.vscode/vue3.0.code-snippets b/.vscode/vue3.0.code-snippets
new file mode 100644
index 0000000..bb43589
--- /dev/null
+++ b/.vscode/vue3.0.code-snippets
@@ -0,0 +1,22 @@
+{
+ "Vue3.0快速生成模板": {
+ "scope": "vue",
+ "prefix": "Vue3.0",
+ "body": [
+ "<template>",
+ "\t<div>test</div>",
+ "</template>\n",
+ "<script lang='ts'>",
+ "export default {",
+ "\tsetup() {",
+ "\t\treturn {}",
+ "\t}",
+ "}",
+ "</script>\n",
+ "<style lang='scss' scoped>\n",
+ "</style>",
+ "$2"
+ ],
+ "description": "Vue3.0"
+ }
+}
diff --git a/.vscode/vue3.2.code-snippets b/.vscode/vue3.2.code-snippets
new file mode 100644
index 0000000..2cebb46
--- /dev/null
+++ b/.vscode/vue3.2.code-snippets
@@ -0,0 +1,17 @@
+{
+ "Vue3.2+快速生成模板": {
+ "scope": "vue",
+ "prefix": "Vue3.2+",
+ "body": [
+ "<script setup lang='ts'>",
+ "</script>\n",
+ "<template>",
+ "\t<div>test</div>",
+ "</template>\n",
+ "<style lang='scss' scoped>\n",
+ "</style>",
+ "$2"
+ ],
+ "description": "Vue3.2+"
+ }
+}
diff --git a/.vscode/vue3.3.code-snippets b/.vscode/vue3.3.code-snippets
new file mode 100644
index 0000000..dc7a106
--- /dev/null
+++ b/.vscode/vue3.3.code-snippets
@@ -0,0 +1,20 @@
+{
+ "Vue3.3+defineOptions快速生成模板": {
+ "scope": "vue",
+ "prefix": "Vue3.3+",
+ "body": [
+ "<script setup lang='ts'>",
+ "defineOptions({",
+ "\tname: ''",
+ "})",
+ "</script>\n",
+ "<template>",
+ "\t<div>test</div>",
+ "</template>\n",
+ "<style lang='scss' scoped>\n",
+ "</style>",
+ "$2"
+ ],
+ "description": "Vue3.3+defineOptions快速生成模板"
+ }
+}