From 8175b772c4b32d950401ec80e2e6959043b85069 Mon Sep 17 00:00:00 2001 From: Yakin Nikita Date: Sat, 28 Oct 2023 19:30:14 +0500 Subject: [PATCH] feat: `enum` of the sprite and its contents --- docs/content/1.index.md | 17 ++++++++++++++--- playground/pages/index.vue | 9 ++++++--- src/module.ts | 21 +++++++++++++++++++-- src/template.ts | 34 ++++++++++++++++++++++++++++++++++ src/utils.ts | 13 +++++++++++++ 5 files changed, 86 insertions(+), 8 deletions(-) diff --git a/docs/content/1.index.md b/docs/content/1.index.md index 7e34db16..29dbe271 100644 --- a/docs/content/1.index.md +++ b/docs/content/1.index.md @@ -62,7 +62,11 @@ export default defineNuxtConfig({ ::code-group -```html [Usage] +```vue [Usage] + + ``` @@ -83,6 +90,10 @@ export default defineNuxtConfig({ ## Named Sprite :SvgIcon{name="love/love"} + +## Enum Sprite + +:SvgIcon{name="love/hugs-and-kisses"} :SvgIcon{name="love/bee-mine"} :: :: @@ -125,4 +136,4 @@ Or locally: [MIT License](https://github.com/nuxt-community/svg-sprite-module/blob/master/LICENSE) -Copyright (c) Nuxt Community \ No newline at end of file +Copyright (c) Nuxt Community diff --git a/playground/pages/index.vue b/playground/pages/index.vue index 8439bbd3..8bc8bf8a 100644 --- a/playground/pages/index.vue +++ b/playground/pages/index.vue @@ -9,9 +9,9 @@
- - - + + +