WIP поправил mock и отображение данных из него в таблице

This commit is contained in:
DwCay
2022-10-25 18:49:19 +03:00
parent 8e1887484c
commit da5da8f3b5
13 changed files with 603 additions and 281 deletions

View File

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