-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
/
Copy pathConfigurationItem.vue
56 lines (49 loc) · 977 Bytes
/
ConfigurationItem.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
<template>
<div
class="configuration-item list-item"
:class="{
selected
}"
v-tooltip.right="$t(configuration.description)"
>
<div class="content">
<ItemLogo
:image="configuration.icon || (configuration.plugin && configuration.plugin.logo)"
fallback-icon="settings_applications"
/>
<ListItemInfo
:name="configuration.name"
:description="$t(configuration.description)"
:selected="selected"
/>
</div>
</div>
</template>
<script>
export default {
props: {
configuration: {
type: Object,
required: true
},
selected: {
type: Boolean,
default: false
}
}
}
</script>
<style lang="stylus" scoped>
.configuration-item
padding $padding-item
.content
h-box()
box-center()
.list-item-info
flex auto 1 1
width 0
>>> .description
white-space nowrap
overflow hidden
text-overflow ellipsis
</style>