16 lines
459 B
Vue
16 lines
459 B
Vue
<template>
|
|
<a class="mr-3" @click="$emit('edit')">
|
|
<SvgIcon v-bind="{ name: 'pen1.svg', type: 'dark', size: 16 }"></SvgIcon>
|
|
</a>
|
|
<a @click="remove()" v-if="attrs.onRemove">
|
|
<SvgIcon v-bind="{ name: 'bin1.svg', type: 'dark', size: 16 }"></SvgIcon>
|
|
</a>
|
|
</template>
|
|
<script setup>
|
|
import { useAttrs } from "vue";
|
|
const attrs = useAttrs();
|
|
const emit = defineEmits(["edit", "remove"]);
|
|
const remove = function () {
|
|
emit("remove");
|
|
};
|
|
</script> |