frequi_origin/src/components/general/ValuePair.vue

33 lines
545 B
Vue
Raw Normal View History

<template>
<div class="row">
2021-03-10 15:35:14 +00:00
<label :class="classLabel">{{ description }}</label>
<div :class="classValue">
<slot></slot>
</div>
</div>
</template>
2020-08-09 13:07:09 +00:00
<script lang="ts">
2020-10-25 09:35:19 +00:00
import Vue from 'vue';
export default Vue.extend({
name: 'ValuePair',
props: {
description: {
type: String,
required: true,
},
2021-03-10 15:35:14 +00:00
classLabel: {
type: String,
2021-12-23 05:42:24 +00:00
default: 'col-4 font-weight-bold mb-0',
2021-03-10 15:35:14 +00:00
},
classValue: {
type: String,
default: 'col-8',
},
},
2020-10-25 09:35:19 +00:00
});
</script>
2021-03-10 15:35:14 +00:00
<style scoped></style>