2020-11-25 13:31:34 +01:00
|
|
|
<template>
|
2021-09-29 17:50:45 +02:00
|
|
|
<div class="qmfkfnzi _debobigegoItem">
|
|
|
|
<a class="main _button _debobigegoPanel _debobigegoClickable" :href="to" target="_blank" v-if="external">
|
2020-11-25 13:31:34 +01:00
|
|
|
<span class="icon"><slot name="icon"></slot></span>
|
|
|
|
<span class="text"><slot></slot></span>
|
2020-12-03 15:06:46 +01:00
|
|
|
<span class="right">
|
|
|
|
<span class="text"><slot name="suffix"></slot></span>
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-external-link-alt icon"></i>
|
2020-12-03 15:06:46 +01:00
|
|
|
</span>
|
2020-11-25 13:31:34 +01:00
|
|
|
</a>
|
2021-09-29 17:50:45 +02:00
|
|
|
<MkA class="main _button _debobigegoPanel _debobigegoClickable" :class="{ active }" :to="to" :behavior="behavior" v-else>
|
2020-11-25 13:31:34 +01:00
|
|
|
<span class="icon"><slot name="icon"></slot></span>
|
|
|
|
<span class="text"><slot></slot></span>
|
2020-12-03 15:06:46 +01:00
|
|
|
<span class="right">
|
|
|
|
<span class="text"><slot name="suffix"></slot></span>
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-chevron-right icon"></i>
|
2020-12-03 15:06:46 +01:00
|
|
|
</span>
|
2020-11-25 13:31:34 +01:00
|
|
|
</MkA>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
2021-09-29 17:50:45 +02:00
|
|
|
import './debobigego.scss';
|
2020-11-25 13:31:34 +01:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
props: {
|
|
|
|
to: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
active: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false
|
|
|
|
},
|
|
|
|
external: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false
|
|
|
|
},
|
2021-03-02 17:03:29 +01:00
|
|
|
behavior: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
},
|
2020-11-25 13:31:34 +01:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.qmfkfnzi {
|
|
|
|
> .main {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 14px 16px 14px 14px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
2021-04-13 18:41:49 +02:00
|
|
|
background: var(--panelHighlight);
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .icon {
|
|
|
|
width: 32px;
|
|
|
|
margin-right: 2px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
text-align: center;
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
& + .text {
|
|
|
|
padding-left: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .text {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-25 13:31:34 +01:00
|
|
|
padding-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .right {
|
|
|
|
margin-left: auto;
|
|
|
|
opacity: 0.7;
|
2020-12-03 15:06:46 +01:00
|
|
|
|
|
|
|
> .text:not(:empty) {
|
|
|
|
margin-right: 0.75em;
|
|
|
|
}
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|