0
0
Fork 0

fix: columns style

This commit is contained in:
Alex Moreno 2024-07-16 14:03:14 +02:00
parent bfa61d9bea
commit 3cd185360b
6 changed files with 24 additions and 32 deletions

View File

@ -351,7 +351,7 @@ defineExpose({
/>
</template>
<template #header-cell="{ col }">
<QTh v-if="col.visible ?? true" auto-width>
<QTh v-if="col.visible ?? true" :class="[col.columnClass]">
<div
class="column self-start q-ml-xs ellipsis"
:class="`text-${col?.align ?? 'left'}`"
@ -376,6 +376,7 @@ defineExpose({
:data-key="$attrs['data-key']"
v-model="params[columnName(col)]"
:search-url="searchUrl"
class="full-width"
/>
</div>
</QTh>
@ -400,7 +401,7 @@ defineExpose({
<QTd
auto-width
class="no-margin q-px-xs"
:class="[getColAlign(col), col.class, col.columnField?.class]"
:class="[getColAlign(col), col.columnClass]"
v-if="col.visible ?? true"
>
<slot :name="`column-${col.name}`" :col="col" :row="row">

View File

@ -233,13 +233,7 @@ input::-webkit-inner-spin-button {
}
.q-table {
thead,
tbody {
th {
.q-select {
max-width: 120px;
}
}
th,
td {
padding: 1px 10px 1px 10px;
max-width: 100px;
@ -252,8 +246,10 @@ input::-webkit-inner-spin-button {
white-space: nowrap;
text-overflow: ellipsis;
}
.shrink {
max-width: 75px;
}
.expand {
max-width: 400px;
}
}
}

View File

@ -44,7 +44,7 @@ const columns = computed(() => [
fields: ['id', 'name'],
},
},
class: 'expand',
columnClass: 'expand',
},
{
align: 'left',

View File

@ -42,9 +42,7 @@ const columns = computed(() => [
name: 'name',
isTitle: true,
create: true,
columnField: {
class: 'expand',
},
columnClass: 'expand',
},
{
align: 'left',
@ -52,9 +50,7 @@ const columns = computed(() => [
label: t('customer.extendedList.tableVisibleColumns.socialName'),
isTitle: true,
create: true,
columnField: {
class: 'expand',
},
columnClass: 'expand',
},
{
align: 'left',
@ -136,9 +132,7 @@ const columns = computed(() => [
columnFilter: {
inWhere: true,
},
columnField: {
class: 'expand',
},
columnClass: 'expand',
},
{
align: 'left',

View File

@ -32,7 +32,7 @@ const columns = computed(() => [
optionLabel: 'socialName',
},
},
class: 'expand',
columnClass: 'expand',
},
{
align: 'left',

View File

@ -45,6 +45,7 @@ const columns = computed(() => [
inWhere: true,
alias: 't',
},
columnClass: 'shrink',
},
{
align: 'left',
@ -57,7 +58,7 @@ const columns = computed(() => [
fields: ['id', 'name'],
},
},
class: 'expand',
columnClass: 'expand',
},
{
name: 'isConfirmed',