Cosmetics

pull/104/head
cagataycivici 2019-10-21 14:04:46 +03:00
parent 1e39ba09b0
commit 4ebe8cd4a5
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@
@click="onRowClick($event, rowData, index)" @touchend="onRowTouchEnd($event)" @keydown="onRowKeyDown($event, rowData, index)" :tabindex="selectionMode ? '0' : null" @click="onRowClick($event, rowData, index)" @touchend="onRowTouchEnd($event)" @keydown="onRowKeyDown($event, rowData, index)" :tabindex="selectionMode ? '0' : null"
@mousedown="onRowMouseDown($event)" @dragstart="onRowDragStart($event, index)" @dragover="onRowDragOver($event,index)" @dragleave="onRowDragLeave($event)" @dragend="onRowDragEnd($event)" @drop="onRowDrop($event)"> @mousedown="onRowMouseDown($event)" @dragstart="onRowDragStart($event, index)" @dragover="onRowDragOver($event,index)" @dragleave="onRowDragLeave($event)" @dragend="onRowDragEnd($event)" @drop="onRowDrop($event)">
<template v-for="(col,i) of columns"> <template v-for="(col,i) of columns">
<DTBodyCell v-if="rowGroupMode !== 'subheader' || (groupRowsBy !== col.field)" :key="col.columnKey||col.field||i" :rowData="rowData" :column="col" :selected="isSelected(rowData)" <DTBodyCell v-if="rowGroupMode === 'subheader' ? (groupRowsBy !== col.field) : true" :key="col.columnKey||col.field||i" :rowData="rowData" :column="col" :selected="isSelected(rowData)"
:rowTogglerIcon="col.expander ? rowTogglerIcon(rowData): null" @row-toggle="toggleRow" :rowTogglerIcon="col.expander ? rowTogglerIcon(rowData): null" @row-toggle="toggleRow"
@radio-change="toggleRowWithRadio" @checkbox-change="toggleRowWithCheckbox" /> @radio-change="toggleRowWithRadio" @checkbox-change="toggleRowWithCheckbox" />
</template> </template>

View File

@ -31,8 +31,8 @@
<DataTable :value="cars" rowGroupMode="rowspan" :groupRowsBy="['brand', 'year']" <DataTable :value="cars" rowGroupMode="rowspan" :groupRowsBy="['brand', 'year']"
sortMode="multiple" :multiSortMeta="multiSortMeta"> sortMode="multiple" :multiSortMeta="multiSortMeta">
<Column field="brand" header="Brand"></Column> <Column field="brand" header="Brand"></Column>
<Column field="vin" header="Vin"></Column>
<Column field="year" header="Year"></Column> <Column field="year" header="Year"></Column>
<Column field="vin" header="Vin"></Column>
<Column field="color" header="Color"></Column> <Column field="color" header="Color"></Column>
<Column field="price" header="Price"></Column> <Column field="price" header="Price"></Column>
</DataTable> </DataTable>