From 7d222f7b68d340d479669c491f6afdb29564629a Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 27 May 2020 15:25:14 +0300 Subject: [PATCH] Demo cosmetics --- src/views/datatable/DataTableStyleDemo.vue | 38 ++++++++-------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/src/views/datatable/DataTableStyleDemo.vue b/src/views/datatable/DataTableStyleDemo.vue index 056c91d4e..c310bc438 100755 --- a/src/views/datatable/DataTableStyleDemo.vue +++ b/src/views/datatable/DataTableStyleDemo.vue @@ -12,7 +12,7 @@ @@ -31,7 +31,7 @@ <Column field="vin" header="Vin"></Column> <Column field="year" header="Year" bodyStyle="padding: 0"> <template #body="slotProps"> - <div :class="['year-cell', {'old-car': slotProps.data.year < 2010}]"> + <div :class="[{'old-car': slotProps.data.year < 2010}]"> {{slotProps.data.year}} </div> </template> @@ -61,25 +61,20 @@ export default { }, methods: { rowClass(data) { - return data.color === 'Orange' ? 'orange-car': null; + return data.color === 'Gray' ? 'gray-car': null; } } } -.year-cell { - padding: 0.429em 0.857rem; - - &.old-car { - background-color: #41b783; - font-weight: 700; - color: #ffffff; - } +.old-car { + font-weight: 700; + text-decoration: line-through; } -/deep/ .orange-car { - background-color: #344b5f !important; +/deep/ .gray-car { + background-color: #607D8B !important; color: #ffffff !important; } @@ -108,25 +103,20 @@ export default { }, methods: { rowClass(data) { - return data.color === 'Orange' ? 'orange-car': null; + return data.color === 'Gray' ? 'gray-car': null; } } } \ No newline at end of file