This commit is contained in:
Viet An
2026-07-02 09:07:59 +07:00
parent 1fc8532ed8
commit e91f0d22c4
52 changed files with 131 additions and 159 deletions

View File

@@ -1,6 +1,4 @@
<script setup>
const { $buildFileUrl, $copyToClipboard } = useNuxtApp();
const props = defineProps({
className: String,
image: Object,
@@ -8,14 +6,12 @@ const props = defineProps({
downloadImage: Function,
openDeleteImageConfirm: Function,
});
const url = $buildFileUrl(props.image.file__file);
</script>
<template>
<div :class="['buttons has-addons', className]">
<button
class="button is-small is-white"
@click="$copyToClipboard(url)"
@click="$copyToClipboard($buildFileUrl(props.image.file__file))"
title="Sao chép link"
>
<span class="icon">