Initial commit

This commit is contained in:
Viet An
2026-04-06 13:47:10 +07:00
commit f423d9ab20
439 changed files with 97497 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<template>
<span :style="{ color: color }">{{ text }}</span>
</template>
<script setup>
const props = defineProps({
text: { type: String, required: true },
color: { type: String, default: "#000" }
})
</script>

View File

@@ -0,0 +1,10 @@
<template>
<span :style="color? `color:${color}` : ''">{{ date ? $dayjs(date).format('DD/MM/YYYY') : '-' }}</span>
</template>
<script setup>
const { $dayjs } = useNuxtApp()
const props = defineProps({
date: String,
color: String
})
</script>

View File

@@ -0,0 +1,10 @@
<template>
<span :style="color? `color:${color}` : ''">{{ value === 0 || value === null ? '-' : $numtoString(value) }}</span>
</template>
<script setup>
const { $numtoString } = useNuxtApp()
const props = defineProps({
value: Number,
color: String
})
</script>

View File

@@ -0,0 +1,10 @@
<template>
<span :style="color? `color:${color}` : ''">{{ $numtoString(value) }}</span>
</template>
<script setup>
const { $numtoString } = useNuxtApp()
const props = defineProps({
value: Number,
color: String
})
</script>