Skip to content

Commit

Permalink
fix(tables): optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
smartapant committed Jan 16, 2018
1 parent 6661956 commit 1406807
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions src/components/tables/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<div class="row">
<div class="col-xs-12 col-md-12">
<widget :headerText="$t('tables.basic')">
<vuestic-widget :headerText="$t('tables.basic')">
<div class="table-responsive">
<table class="table table-striped first-td-padding">
<thead>
Expand Down Expand Up @@ -74,13 +74,13 @@
</tbody>
</table>
</div>
</widget>
</vuestic-widget>
</div>
</div>

<div class="row">
<div class="col-md-12">
<widget :headerText="$t('tables.styled')">
<vuestic-widget :headerText="$t('tables.styled')">
<div class="table-responsive">
<table class="table table-striped table-sm color-icon-label-table">
<thead>
Expand Down Expand Up @@ -173,42 +173,37 @@
</tbody>
</table>
</div>
</widget>
</vuestic-widget>
</div>
</div>

<div class="row">
<div class="col-md-12">
<widget :headerText="$t('tables.advanced')">
<data-table :apiUrl="apiUrl"
<vuestic-widget :headerText="$t('tables.advanced')">
<vuestic-data-table :apiUrl="apiUrl"
:tableFields="tableFields"
:itemsPerPage="itemsPerPage"
:sortFunctions="sortFunctions"
:apiMode="apiMode"
:paginationPath="paginationPath"></data-table>
</widget>
:paginationPath="paginationPath"></vuestic-data-table>
</vuestic-widget>
</div>
</div>

</div>
</template>

<script>
import Widget from '../vuestic-components/vuestic-widget/VuesticWidget'
import DataTable from '../vuestic-components/vuestic-datatable/VuesticDataTable'
import BadgeColumn from './BadgeColumn.vue'
import Vue from 'vue'
import FieldsDef from '../vuestic-components/vuestic-datatable/data/fields-definition'
import ItemsPerPageDef from '../vuestic-components/vuestic-datatable/data/items-per-page-definition'
import BadgeColumn from './BadgeColumn.vue'
import FieldsDef from 'components/vuestic-components/vuestic-datatable/data/fields-definition'
import ItemsPerPageDef from 'components/vuestic-components/vuestic-datatable/data/items-per-page-definition'
Vue.component('badge-column', BadgeColumn)
export default {
components: {
DataTable,
Widget
},
name: 'Table',
data () {
return {
apiUrl: 'https://vuetable.ratiw.net/api/users',
Expand Down

0 comments on commit 1406807

Please sign in to comment.