Permalink
Browse files

fix(table): workaround for Vue 2.4 SSR rendering bug

  • Loading branch information...
pi0 committed Aug 11, 2017
1 parent ee7ca4c commit dc8d23898d52a839fd3bad9ac1631b00026feb9b
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/components/table.vue
@@ -54,12 +54,12 @@
@hover="rowHovered($event,item,index)"
>
<template v-for="(field,key) in fields">
<td v-if="hasFormatter(field)" :key="key" :class="tdClass(field, item, key)"
v-html="callFormatter(item, key, field)">
</td>
<td v-else :class="tdClass(field, item, key)" :key="key">
<td v-if="!hasFormatter(field)" :class="tdClass(field, item, key)" :key="key">
<slot :name="key" :value="item[key]" :item="item" :index="index">{{item[key]}}</slot>
</td>
<td v-else :key="key" :class="tdClass(field, item, key)"
v-html="callFormatter(item, key, field)">
</td>
</template>
</tr>
<tr v-if="showEmpty && (!_items || _items.length === 0)">

0 comments on commit dc8d238

Please sign in to comment.