We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Needs 1 root element
1 parent ffcd1a5 commit 25352a1Copy full SHA for 25352a1
src/index.js
@@ -1,11 +1,13 @@
1
module.exports = {
2
3
- template: '<a v-show="sorttype === \'asc\'" @click="sortData(data)">\
+ template: '<div>\
4
+ <a v-show="sorttype === \'asc\'" @click="sortData(data)">\
5
{{ label }} <i class="down black icon" :class="icon" v-if="sort === 1"></i>\
6
</a>\
7
<a v-show="sorttype === \'desc\'" @click="sortData(data)">\
8
{{ label }} <i class="up black icon" :class="icon" v-if="sort === 1"></i>\
- </a>',
9
+ </a>\
10
+ </div>',
11
12
props: {
13
label: {
0 commit comments