From 0b08fa58cd6b28badccfe10206f2be065b8227f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hrom=C3=A1dka?= Date: Fri, 23 Aug 2024 14:05:32 +0200 Subject: [PATCH 1/2] Added Suspense vue-html snippet --- README.md | 1 + snippets/vue/vue-template.code-snippets | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 41a3fe8..56689b1 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ These snippets were made to speed up Vue 3 development. With it you can write bo | `vtrans-group` | Transition group component | | `vrlink` | Router link | | `vrlink-param` | Router link with param | +| `vsuspense` | Suspense wrapper with fallback content | ### Script diff --git a/snippets/vue/vue-template.code-snippets b/snippets/vue/vue-template.code-snippets index 5d83e11..9fa6f22 100644 --- a/snippets/vue/vue-template.code-snippets +++ b/snippets/vue/vue-template.code-snippets @@ -89,4 +89,15 @@ ], "description": "vue router link with param" }, + "Vue Suspense Wrapper": { + "prefix": "vsuspense", + "body": [ + "", + " ", + "" + ], + "description": "Vue 3 Suspense component with fallback template" + } } From 187923e2b1e4a1f63ad5e88aced28f5424dac9b4 Mon Sep 17 00:00:00 2001 From: Vasily Kuzin Date: Mon, 26 Aug 2024 14:37:03 +0500 Subject: [PATCH 2/2] Fix formatting --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 56689b1..dd6e4bb 100644 --- a/README.md +++ b/README.md @@ -44,23 +44,23 @@ These snippets were made to speed up Vue 3 development. With it you can write bo ### Template -| Snippet | Purpose | -| -------------- | --------------------------------- | -| `vfor` | `v-for` statement | -| `vmodel` | `v-model` directive | -| `von` | `v-on` click handler | -| `vel-props` | Component element with `props` | -| `vslot-named` | Named slot | -| `vimg` | Image source binding | -| `vstyle` | Inline style binding | -| `vstyle-obj` | Inline style binding with objects | -| `vclass` | Class binding | -| `vclass-ter` | Ternary class binding | -| `vtrans` | Transition component | -| `vtrans-group` | Transition group component | -| `vrlink` | Router link | -| `vrlink-param` | Router link with param | -| `vsuspense` | Suspense wrapper with fallback content | +| Snippet | Purpose | +| -------------- | -------------------------------------- | +| `vfor` | `v-for` statement | +| `vmodel` | `v-model` directive | +| `von` | `v-on` click handler | +| `vel-props` | Component element with `props` | +| `vslot-named` | Named slot | +| `vimg` | Image source binding | +| `vstyle` | Inline style binding | +| `vstyle-obj` | Inline style binding with objects | +| `vclass` | Class binding | +| `vclass-ter` | Ternary class binding | +| `vtrans` | Transition component | +| `vtrans-group` | Transition group component | +| `vrlink` | Router link | +| `vrlink-param` | Router link with param | +| `vsuspense` | Suspense wrapper with fallback content | ### Script