WIP поправил mock и отображение данных из него в таблице
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<template lang="pug">
|
||||
.flex.box-border.px-4.items-center.gap-x-2.w-full(:style="{ minWidth : width + 'px' }")
|
||||
.dot.w-2.h-2
|
||||
span.text-sm(:style="{ color : color }") {{value}}
|
||||
.dot.w-2.h-2(:style="{ backgroundColor : settings.settings.find((el) => el.priority == value).color }")
|
||||
span.text-sm(:style="{ color : settings.settings.find((el) => el.priority == value).color }") {{settings.settings.find((el) => el.priority == value).text}}
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { column } from "@/pages/clients/utils/tableConfig";
|
||||
export default {
|
||||
name: "TableCellBodyPriority",
|
||||
props: {
|
||||
value: String,
|
||||
width: Number,
|
||||
color: {
|
||||
default: "#9294A7",
|
||||
},
|
||||
props: ["value", "width"],
|
||||
data() {
|
||||
return {
|
||||
settings: column.find((el) => el.name === "priority"),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user