Files
system/components/menu/MenuParam.vue
Xuan Loi ae1ea57130 changes
2026-01-09 17:25:23 +07:00

17 lines
473 B
Vue

<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>