2021-09-04 15:05:34 +02:00
|
|
|
<template>
|
|
|
|
|
<div class="q-ma-sm">
|
2022-11-29 00:16:25 +01:00
|
|
|
<div :class="($q.dark.isActive ? `bg-black` : `bg-white`) + ` column cursor-pointer`" @click="copytoclip">
|
2022-05-05 00:38:26 +02:00
|
|
|
<q-field outlined :label="title" stack-label class="text-center cursor-pointer" label-color="blue">
|
2021-09-04 15:05:34 +02:00
|
|
|
<template v-slot:prepend v-if="!tools.isMobile()">
|
|
|
|
|
<q-btn round dense flat icon="far fa-copy"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:control>
|
2022-07-11 23:19:52 +02:00
|
|
|
<div class="self-center full-width no-outline text-center wrapword text-h5" tabindex="0">{{tools.firstchars(texttocopy, 300)}}</div>
|
2021-09-04 15:05:34 +02:00
|
|
|
</template>
|
|
|
|
|
</q-field>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./CCopyBtn.ts">
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './CCopyBtn.scss';
|
|
|
|
|
</style>
|