- Chart Maps Nationality
- Username lowercase - Statistics - Telegram
This commit is contained in:
25
src/components/CCopyBtn/CCopyBtn.ts
Normal file
25
src/components/CCopyBtn/CCopyBtn.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
|
||||
import { tools } from '../../store/Modules/tools'
|
||||
import { toolsext } from '@src/store/Modules/toolsext'
|
||||
|
||||
@Component({
|
||||
name: 'CCopyBtn'
|
||||
})
|
||||
|
||||
export default class CCopyBtn extends Vue {
|
||||
public $t
|
||||
public $q
|
||||
@Prop({ required: false, default: '' }) public title: string
|
||||
@Prop({ required: true }) public texttocopy: string
|
||||
|
||||
get tools() {
|
||||
return tools
|
||||
}
|
||||
|
||||
public copytoclip() {
|
||||
tools.copyStringToClipboard(this, this.texttocopy)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user