fix: better column type naming
This commit is contained in:
parent
8784720c47
commit
0f3e617864
@ -66,7 +66,7 @@
|
||||
class="flex items-center space-x-2.5"
|
||||
:class="[column.size, column.align]"
|
||||
>
|
||||
<div v-if="column.type === 'user'">
|
||||
<div v-if="column.type === 'avatar'">
|
||||
<Avatar
|
||||
v-if="getValue(row[column.key]).label"
|
||||
class="flex items-center"
|
||||
@ -85,7 +85,7 @@
|
||||
shape="square"
|
||||
/>
|
||||
</div>
|
||||
<div v-else-if="column.type === 'status'">
|
||||
<div v-else-if="column.type === 'indicator'">
|
||||
<IndicatorIcon :color="getValue(row[column.key]).color" />
|
||||
</div>
|
||||
<div class="text-base text-gray-900 truncate">
|
||||
|
||||
@ -24,7 +24,7 @@ const columns = [
|
||||
{
|
||||
label: 'Full name',
|
||||
key: 'full_name',
|
||||
type: 'user',
|
||||
type: 'avatar',
|
||||
size: 'w-44',
|
||||
},
|
||||
{
|
||||
|
||||
@ -38,7 +38,7 @@ const columns = [
|
||||
{
|
||||
label: 'Name',
|
||||
key: 'lead_name',
|
||||
type: 'user',
|
||||
type: 'avatar',
|
||||
size: 'w-44',
|
||||
},
|
||||
{
|
||||
@ -49,7 +49,7 @@ const columns = [
|
||||
},
|
||||
{
|
||||
label: 'Status',
|
||||
key: 'status',
|
||||
key: 'indicator',
|
||||
type: 'status',
|
||||
size: 'w-44',
|
||||
},
|
||||
@ -68,7 +68,7 @@ const columns = [
|
||||
{
|
||||
label: 'Lead owner',
|
||||
key: 'lead_owner',
|
||||
type: 'user',
|
||||
type: 'avatar',
|
||||
size: 'w-44',
|
||||
},
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user