iconoir/bin/build/targets/vue/template.js
2023-10-29 00:33:17 +02:00

17 lines
378 B
JavaScript

const template = (svg) => `<script lang="ts">
import { defineComponent, inject } from "vue-demi";
import type { SVGAttributes } from "vue-demi";
import providerKey from "../providerKey";
export default defineComponent<SVGAttributes>(() => {
const context = inject(providerKey);
return { context };
});
</script>
<template>
${svg}
</template>`;
export default template;