2022-02-24 23:36:27 +01:00
|
|
|
<template>
|
2025-04-11 18:49:42 +02:00
|
|
|
<div
|
|
|
|
|
class="q-gutter-y-xs column"
|
|
|
|
|
style="min-width: 100px"
|
|
|
|
|
>
|
2022-02-24 23:36:27 +01:00
|
|
|
<q-field
|
2025-04-04 18:15:14 +02:00
|
|
|
:label="label ? label : undefined"
|
|
|
|
|
:stack-label="!!label"
|
2022-02-24 23:36:27 +01:00
|
|
|
outlined
|
2025-04-04 18:15:14 +02:00
|
|
|
:dense="dense"
|
2022-02-24 23:36:27 +01:00
|
|
|
color="blue-6"
|
2025-04-11 18:49:42 +02:00
|
|
|
>
|
|
|
|
|
<template
|
|
|
|
|
v-if="copy"
|
|
|
|
|
v-slot:prepend
|
2022-02-24 23:36:27 +01:00
|
|
|
>
|
2025-04-11 18:49:42 +02:00
|
|
|
<q-btn
|
|
|
|
|
round
|
|
|
|
|
dense
|
|
|
|
|
flat
|
|
|
|
|
icon="far fa-copy"
|
|
|
|
|
@click="copytoclip"
|
|
|
|
|
/>
|
2022-02-24 23:36:27 +01:00
|
|
|
</template>
|
|
|
|
|
<template v-slot:control>
|
2025-04-11 18:49:42 +02:00
|
|
|
<div
|
|
|
|
|
class="self-center full-width no-outline"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
:class="class_text"
|
|
|
|
|
:style="`color: ` + color"
|
|
|
|
|
v-html="value"
|
|
|
|
|
></span>
|
2022-08-18 05:26:21 +02:00
|
|
|
<slot></slot>
|
2022-02-24 23:36:27 +01:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</q-field>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2025-04-11 18:49:42 +02:00
|
|
|
<script lang="ts" src="./CLabel.ts"></script>
|
2022-02-24 23:36:27 +01:00
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './CLabel.scss';
|
|
|
|
|
</style>
|