This commit is contained in:
Xuan Loi
2026-01-09 17:25:23 +07:00
commit ae1ea57130
315 changed files with 57694 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<template>
<span :style="style">{{row[column]}}</span>
</template>
<script setup>
import { useStore } from '~/stores/index'
const store = useStore()
const emit = defineEmits(["clickevent"])
const props = defineProps({
row: Object,
field: String,
column: String,
param: String
})
const params = store[props.param]
const found = params.find(v=>props.row[props.field]===v.id)
const style = found? `color:${found.color}` : undefined
</script>