Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit fce7d1d

Browse files
authored
Merge pull request #21 from itsuwaribito/master
Added support to HTML tags on table cells
2 parents 871b64a + 60973ab commit fce7d1d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Datasource.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
:class="{ 'success': (index == indexSelected) }"
4141
v-for="(row, index) in tableData"
4242
@click.prevent="selectRow(row, index)">
43-
<td v-for="k in columns">
44-
{{ fetchFromObject(row, k.key, k.render) }}
45-
</td>
43+
<td v-for="k in columns" v-html="fetchFromObject(row, k.key, k.render)"></td>
4644
</tr>
4745
<!--/rows-->
4846
<tr>

src/example.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ new Vue({
101101
return 'Global';
102102
break;
103103
case '2':
104-
return 'General';
104+
return '<b>General</b>';
105105
break;
106106
case '3':
107107
return 'Personal';

0 commit comments

Comments
 (0)