<template>
    <div class="text">
        <slot></slot>
        <span class="value">{{ value || '-' }}</span>
    </div>
</template>

<script>
export default {
    name: 'FormText',
    props: {
        value: { type: String, default: '' }
    }
}
</script>

<style lang="less" scoped>
.text {
    white-space: pre-wrap;
}
</style>
