forked from vuejs/vue-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProjectSelectListItem.vue
67 lines (60 loc) · 1.32 KB
/
ProjectSelectListItem.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<div class="project-select-list-item list-item">
<div class="content">
<div class="favorite">
<VueButton
class="icon-button"
:icon-left="project.favorite ? 'star' : 'star_border'"
v-tooltip="$t('components.project-select-list-item.tooltips.favorite')"
@click.stop="$emit('favorite')"
/>
</div>
<div class="info">
<ListItemInfo
:name="project.name"
:description="project.path"
/>
</div>
<div class="actions">
<VueButton
class="icon-button"
icon-left="delete"
v-tooltip="$t('components.project-select-list-item.tooltips.delete')"
@click.stop="$emit('remove')"
/>
</div>
</div>
</div>
</template>
<script>
export default {
props: {
project: {
type: Object,
required: true
}
}
}
</script>
<style lang="stylus" scoped>
@import "~@/style/imports"
.content
padding $padding-item
display grid
grid-template-columns auto 1fr auto
grid-template-rows auto
grid-template-areas "icon info actions"
grid-gap $padding-item
.favorite
grid-area icon
h-box()
box-center()
.info
grid-area info
.actions
grid-area actions
h-box()
align-items center
>>> > *
space-between-x($padding-item)
</style>