2023-03-03 15:54:28 +00:00
|
|
|
<script setup>
|
|
|
|
import { computed } from 'vue';
|
|
|
|
|
|
|
|
const props = defineProps({
|
2023-10-31 14:38:43 +00:00
|
|
|
path: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
w: {
|
|
|
|
type: String,
|
|
|
|
default: 'w-6',
|
|
|
|
},
|
|
|
|
h: {
|
|
|
|
type: String,
|
|
|
|
default: 'h-6',
|
|
|
|
},
|
|
|
|
size: {
|
|
|
|
type: [String, Number],
|
|
|
|
default: 16,
|
|
|
|
},
|
|
|
|
});
|
2023-03-03 15:54:28 +00:00
|
|
|
|
2023-10-31 14:38:43 +00:00
|
|
|
const spanClass = computed(() => `inline-flex justify-center items-center ${props.w} ${props.h}`);
|
2023-03-03 15:54:28 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-31 14:38:43 +00:00
|
|
|
<span :class="spanClass">
|
|
|
|
<svg viewBox="0 0 24 24" :width="size" :height="size" class="inline-block">
|
|
|
|
<path fill="currentColor" :d="path" />
|
|
|
|
</svg>
|
|
|
|
</span>
|
2023-03-03 15:54:28 +00:00
|
|
|
</template>
|