chore: install prettier

This commit is contained in:
Viet An
2026-05-04 15:22:27 +07:00
parent 93d29ca7d8
commit bd58e2b847
267 changed files with 22950 additions and 13581 deletions

View File

@@ -1,11 +1,21 @@
<template>
<a v-if="row.note" @click="showNote()">
<SvgIcon v-bind="{name: 'edit2.svg', type: 'findata', size: 20}"></SvgIcon>
<a
v-if="row.note"
@click="showNote()"
>
<SvgIcon v-bind="{ name: 'edit2.svg', type: 'findata', size: 20 }"></SvgIcon>
</a>
<a v-else @click="showNote()">
<a
v-else
@click="showNote()"
>
<span class="tooltip">
<span class="dot-twitter">+</span>
<span class="tooltiptext to-left" style="min-width: max-content;">{{ label }}</span>
<span
class="tooltiptext to-left"
style="min-width: max-content"
>{{ label }}</span
>
</span>
</a>
</template>
@@ -16,18 +26,27 @@ export default {
const store = useStore();
return { store };
},
props: ['row', 'pagename'],
props: ["row", "pagename"],
data() {
return {
label: this.store.lang==='en'? 'Note' : 'Ghi chú'
}
label: this.store.lang === "en" ? "Note" : "Ghi chú",
};
},
methods: {
showNote() {
this.$emit('clickevent', {name: 'dataevent',
data: {modal: {title: this.label, height: '330px', width: '700px', component: 'common/Note',
vbind:{row: this.row, pagename: this.pagename}}}})
}
}
}
</script>
this.$emit("clickevent", {
name: "dataevent",
data: {
modal: {
title: this.label,
height: "330px",
width: "700px",
component: "common/Note",
vbind: { row: this.row, pagename: this.pagename },
},
},
});
},
},
};
</script>