Skip to content

Commit 8e3359c

Browse files
author
Guillaume Chau
committed
feat(task): list item tooltip
1 parent 4c4e4d7 commit 8e3359c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/@vue/cli-ui/src/components/task/TaskItem.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
selected
88
}
99
]"
10+
v-tooltip.right="description"
1011
@dblclick="runTask()"
1112
>
1213
<div class="content">
@@ -19,7 +20,7 @@
1920

2021
<ListItemInfo
2122
:name="task.name"
22-
:description="(task.status === 'idle' && $t(task.description)) || status"
23+
:description="description"
2324
:selected="selected"
2425
/>
2526

@@ -63,6 +64,10 @@ export default {
6364
6465
logo () {
6566
return this.task.icon || (this.task.plugin && this.task.plugin.logo)
67+
},
68+
69+
description () {
70+
return (this.task.status === 'idle' && this.$t(this.task.description)) || this.status
6671
}
6772
},
6873

0 commit comments

Comments
 (0)