Skip to content

Commit 25352a1

Browse files
author
Vinayak Kulkarni
committed
😆 Needs 1 root element
1 parent ffcd1a5 commit 25352a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
module.exports = {
22

3-
template: '<a v-show="sorttype === \'asc\'" @click="sortData(data)">\
3+
template: '<div>\
4+
<a v-show="sorttype === \'asc\'" @click="sortData(data)">\
45
{{ label }} <i class="down black icon" :class="icon" v-if="sort === 1"></i>\
56
</a>\
67
<a v-show="sorttype === \'desc\'" @click="sortData(data)">\
78
{{ label }} <i class="up black icon" :class="icon" v-if="sort === 1"></i>\
8-
</a>',
9+
</a>\
10+
</div>',
911

1012
props: {
1113
label: {

0 commit comments

Comments
 (0)