This commit is contained in:
Viet An
2026-05-21 11:42:36 +07:00
parent 8f95fee8a7
commit 80f1e7275f
10 changed files with 158 additions and 59 deletions

View File

@@ -6,7 +6,7 @@
<SvgIcon v-bind="{ name: 'pen1.svg', type: 'dark', size: 16 }"></SvgIcon>
</a>
<a
@click="remove()"
@click="$emit('remove')"
v-if="attrs.onRemove"
>
<SvgIcon v-bind="{ name: 'bin1.svg', type: 'dark', size: 16 }"></SvgIcon>
@@ -16,7 +16,4 @@
import { useAttrs } from "vue";
const attrs = useAttrs();
const emit = defineEmits(["edit", "remove"]);
const remove = function () {
emit("remove");
};
</script>