Skip to content

Commit

Permalink
fixes #381
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Sep 30, 2018
1 parent 5817148 commit ae60de6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 32 deletions.
4 changes: 3 additions & 1 deletion dev/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
:rows="rows"
theme="black-rhino"
:line-numbers="true"
max-height="200px"
:fixed-header="true"
:pagination-options="{
mode: 'pages',
perPage: 3,
enabled: true,
enabled: false,
}"
:select-options="{
enabled: false,
Expand Down
65 changes: 34 additions & 31 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,37 +60,40 @@
</slot>
</div>
</div>
<table
v-if="fixedHeader"
class="vgt-fixed-header"
:class="tableStyleClasses">
<!-- Table header -->
<thead is="vgt-table-header"
ref="table-header-secondary"
@on-toggle-select-all="toggleSelectAll"
@on-sort-change="sort"
@filter-changed="filterRows"
:columns="columns"
:line-numbers="lineNumbers"
:selectable="selectable"
:all-selected="allSelected"
:all-selected-indeterminate="allSelectedIndeterminate"
:mode="mode"
:typed-columns="typedColumns"
:sort-column="sortColumn"
:sort-type="sortType"
:isSortableColumn="isSortableColumn"
:getClasses="getClasses"
:searchEnabled="searchEnabled"
:paginated="paginated"
:table-ref="$refs.table">
<template slot="table-column" slot-scope="props">
<slot name="table-column" :column="props.column">
<span>{{props.column.label}}</span>
</slot>
</template>
</thead>
</table>
<div
:class="{'vgt-responsive': responsive}">
<table
v-if="fixedHeader"
class="vgt-fixed-header"
:class="tableStyleClasses">
<!-- Table header -->
<thead is="vgt-table-header"
ref="table-header-secondary"
@on-toggle-select-all="toggleSelectAll"
@on-sort-change="sort"
@filter-changed="filterRows"
:columns="columns"
:line-numbers="lineNumbers"
:selectable="selectable"
:all-selected="allSelected"
:all-selected-indeterminate="allSelectedIndeterminate"
:mode="mode"
:typed-columns="typedColumns"
:sort-column="sortColumn"
:sort-type="sortType"
:isSortableColumn="isSortableColumn"
:getClasses="getClasses"
:searchEnabled="searchEnabled"
:paginated="paginated"
:table-ref="$refs.table">
<template slot="table-column" slot-scope="props">
<slot name="table-column" :column="props.column">
<span>{{props.column.label}}</span>
</slot>
</template>
</thead>
</table>
</div>
<div
:class="{'vgt-responsive': responsive}"
:style="wrapperStyles">
Expand Down
1 change: 1 addition & 0 deletions src/styles/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
.vgt-responsive {
width: 100%;
overflow-x: auto;
position: relative;
}

.vgt-text-disabled{
Expand Down

0 comments on commit ae60de6

Please sign in to comment.