summaryrefslogtreecommitdiff
path: root/src/client/components/form/key-value-view.vue
blob: 85f4febef9d7e083777101caca0f8ece02216a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div class="_formItem">
	<div class="_formPanel anocepby">
		<span class="key"><slot name="key"></slot></span>
		<span class="value"><slot name="value"></slot></span>
	</div>
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import './form.scss';

export default defineComponent({

});
</script>

<style lang="scss" scoped>
.anocepby {
	display: flex;
	align-items: center;
	padding: 14px 16px;

	> .key {
		margin-right: 12px;
		white-space: nowrap;
	}

	> .value {
		margin-left: auto;
		opacity: 0.7;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}
}
</style>