changes
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<template>
|
||||
<span :style="{ color: color }">{{ text }}</span>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
text: { type: String, required: true },
|
||||
color: { type: String, default: "#000" },
|
||||
});
|
||||
</script>
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<span :style="color ? `color:${color}` : ''">{{ $dayjs(date).format("L") }}</span>
|
||||
</template>
|
||||
<script setup>
|
||||
const { $dayjs } = useNuxtApp();
|
||||
const props = defineProps({
|
||||
date: String,
|
||||
color: String,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span>{{ $dayjs(date).format("L") }}</span>
|
||||
</template>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<span :style="color ? `color:${color}` : ''">{{ value === 0 || value === null ? "-" : $numtoString(value) }}</span>
|
||||
</template>
|
||||
<script setup>
|
||||
const { $numtoString } = useNuxtApp();
|
||||
const { $empty, $numtoString } = useNuxtApp();
|
||||
const props = defineProps({
|
||||
value: Number,
|
||||
color: String,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span>{{ $empty(value) ? "-" : $numtoString(value) }}</span>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user