Mostrare Bottone Telegram per tutti

Visualizzazione Cellulare sul Profilo
This commit is contained in:
paoloar77
2022-02-24 23:36:27 +01:00
parent 430408f7bf
commit d797221430
25 changed files with 208 additions and 114 deletions

View File

37
src/components/CLabel/CLabel.ts Executable file
View File

@@ -0,0 +1,37 @@
import { defineComponent, ref, toRef, watch } from 'vue'
import { tools } from '@src/store/Modules/tools'
import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { toolsext } from '@store/Modules/toolsext'
export default defineComponent({
name: 'CLabel',
props: {
value: {
type: String,
required: false,
default: '',
},
label: {
type: String,
required: true,
default: '',
},
},
components: {},
setup(props, { emit }) {
const $q = useQuasar()
const { t } = useI18n();
function copytoclip() {
tools.copyStringToClipboard($q, props.value, true)
}
return {
tools,
toolsext,
copytoclip,
}
},
})

View File

@@ -0,0 +1,27 @@
<template>
<div>
<q-field
:label="label"
stack-label
outlined
color="blue-6"
>
<template v-slot:prepend>
<q-btn round dense flat icon="far fa-copy" @click="copytoclip"/>
</template>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">
{{ value }}
</div>
</template>
</q-field>
</div>
</template>
<script lang="ts" src="./CLabel.ts">
</script>
<style lang="scss" scoped>
@import './CLabel.scss';
</style>

1
src/components/CLabel/index.ts Executable file
View File

@@ -0,0 +1 @@
export {default as CLabel} from './CLabel.vue'