<template> <v-dialog> <v-card> <v-card-text> <v-text-field :value="textToCopy" readonly/> <v-btn icon ref="copyBtn" @click="onCopy"><v-icon>mdi-content-copy</v-icon></v-btn> </v-card-text> </v-card> </v-dialog> </template> <script lang="ts"> import { Component, Vue } from 'vue-property-decorator'; @Component export default class SampleDialog extends Vue { textToCopy = 'some text to copy'; private
