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

@@ -2,19 +2,23 @@
const props = defineProps({
variant: Object,
});
const showModal = ref(null);
</script>
<template>
<a
@click="
showModal = {
component: 'imports/EditProduct',
title: 'Cập nhật sản phẩm',
width: '90%',
height: '400px',
vbind: { variant: props.variant },
}
$emit('clickevent', {
name: 'dataevent',
data: {
modal: {
title: 'Cập nhật sản phẩm',
width: '90%',
height: '400px',
component: 'imports/EditProduct',
vbind: { variant: props.variant },
},
},
})
"
>
<span class="icon">
@@ -24,9 +28,4 @@ const showModal = ref(null);
/>
</span>
</a>
<Modal
v-if="showModal"
v-bind="showModal"
@close="showModal = null"
/>
</template>