lint fixes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2019-09-02 01:30:32 +05:30
parent 61094a9080
commit 8b9fccdf11
2 changed files with 6 additions and 9 deletions

View File

@ -54,11 +54,11 @@
<template v-for="(tag, index) in tags">
<a-tooltip v-if="tag.length > 20" :key="tag" :title="tag">
<a-tag :key="tag" :closable="index !== 0" :afterClose="() => handleClose(tag)">
{{`${tag.slice(0, 20)}...`}}
{{ `${tag.slice(0, 20)}...` }}
</a-tag>
</a-tooltip>
<a-tag v-else :key="tag" :closable="index !== 0" :afterClose="() => handleClose(tag)">
{{tag}}
{{ tag }}
</a-tag>
</template>
@ -77,7 +77,6 @@
<a-icon type="plus" /> New Tag
</a-tag>
</a-col>
<a-col :span="16">
@ -164,8 +163,6 @@
</a-col>
</a-row>
</div>
@ -195,7 +192,7 @@ export default {
osLogo: 'linux',
tags: [],
inputVisible: false,
inputValue: '',
inputValue: ''
}
},
watch: {
@ -224,7 +221,7 @@ export default {
Object.assign(this, {
tags,
inputVisible: false,
inputValue: '',
inputValue: ''
})
},

View File

@ -4,8 +4,8 @@
{{ text }}
</template>
<span>
<a-badge :title="text" :status="getBadgeStatus(text)" />
<span v-if="displayText">{{ text }}</span>
<a-badge :title="text" :status="getBadgeStatus(text)" />
<span v-if="displayText">{{ text }}</span>
</span>
</a-tooltip>
</template>