mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-13 11:22:32 +02:00
fb280188e1
Resolves #294
15 lines
395 B
JavaScript
15 lines
395 B
JavaScript
const template = (svg, keyFileName) => `<script lang="ts">
|
|
import { defineComponent, inject } from "vue-demi";
|
|
import type { SVGAttributes } from "vue-demi";
|
|
import providerKey from "./${keyFileName}";
|
|
export default defineComponent<SVGAttributes>(() => {
|
|
const context = inject(providerKey);
|
|
return { context };
|
|
});
|
|
</script>
|
|
<template>
|
|
${svg}
|
|
</template>`;
|
|
|
|
module.exports = template;
|