mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
40 lines
614 B
Vue
40 lines
614 B
Vue
<template functional>
|
|
<div class="raw-value">
|
|
<div class="label">{{ props.label }}</div>
|
|
<pre><slot /></pre>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from '@vue/composition-api';
|
|
|
|
export default defineComponent({
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
default: 'Value:',
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style scoped>
|
|
.raw-value {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.label {
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
pre {
|
|
max-width: max-content;
|
|
padding: 0.5rem;
|
|
color: var(--foreground-normal);
|
|
font-family: monospace;
|
|
background-color: var(--background-subdued);
|
|
border-radius: 8px;
|
|
}
|
|
</style>
|