This commit is contained in:
Viet An
2026-06-05 09:30:16 +07:00
parent 3cfa103306
commit fdd52d7fad
23 changed files with 336 additions and 344 deletions

View File

@@ -2,30 +2,32 @@
const props = defineProps({
variant: Object,
});
const showModal = ref(null);
function displayModal() {
showModal.value = {
title: "Cập nhật sản phẩm",
width: "90%",
height: "400px",
component: "imports/EditProduct",
vbind: { variant: props.variant },
};
}
</script>
<template>
<a
@click="
$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 },
},
},
})
"
>
<a @click="displayModal">
<span class="icon">
<Icon
name="material-symbols:edit-outline-rounded"
:size="18"
/>
</span>
<Modal
v-if="showModal"
v-bind="showModal"
@close="showModal = null"
/>
</a>
</template>