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,41 +1,42 @@
<template>
<div @click="handleClick()" class="is-clickable">
<div
@click="handleClick()"
class="is-clickable"
>
<template v-if="count > 0">
<span class="dot-primary">
{{ count }}
</span>
</template>
<template v-else>
<span class="dot-primary">
+
</span>
<span class="dot-primary"> + </span>
</template>
</div>
</template>
<script>
export default {
props: ['row', 'countField', 'modalConfig'],
props: ["row", "countField", "modalConfig"],
computed: {
count() {
return this.row[this.countField] || 0;
}
},
},
methods: {
handleClick() {
if (!this.modalConfig) return;
let config = this.$copy(this.modalConfig);
this.$emit('open', {
name: 'dataevent',
this.$emit("open", {
name: "dataevent",
data: {
modal: config
}
modal: config,
},
});
}
}
}
</script>
},
},
};
</script>