2020-07-28 23:09:34 +05:30
|
|
|
<script>
|
|
|
|
import { GlIcon } from '@gitlab/ui';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GlIcon,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
icon: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
2020-10-24 23:57:45 +05:30
|
|
|
padding: {
|
|
|
|
type: String,
|
|
|
|
default: 'gl-py-2',
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
dashed: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
borderClass() {
|
|
|
|
return this.dashed ? 'gl-border-b-solid gl-border-gray-100 gl-border-b-1' : '';
|
|
|
|
},
|
2020-07-28 23:09:34 +05:30
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div
|
2020-10-24 23:57:45 +05:30
|
|
|
class="gl-display-flex gl-align-items-center gl-font-monospace gl-font-sm gl-word-break-all"
|
|
|
|
:class="[padding, borderClass]"
|
2020-07-28 23:09:34 +05:30
|
|
|
>
|
|
|
|
<gl-icon :name="icon" class="gl-mr-4" />
|
|
|
|
<span>
|
|
|
|
<slot></slot>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|