diff options
author | 2023-08-22 01:00:20 +0200 | |
---|---|---|
committer | 2023-08-21 23:00:20 +0000 | |
commit | 6f93cba3dad3bff0e727e4edf78f830311c0c3da (patch) | |
tree | c6bb4a2f02309979c7f19ac426a6737d4f3cb55f /src/tools/benchmark-builder/benchmark-builder.vue | |
parent | 76b2761d62f459442989c6a55518408b68f0ad34 (diff) | |
download | it-tools-6f93cba3dad3bff0e727e4edf78f830311c0c3da.tar.gz it-tools-6f93cba3dad3bff0e727e4edf78f830311c0c3da.tar.zst it-tools-6f93cba3dad3bff0e727e4edf78f830311c0c3da.zip |
feat(copy): support legacy copy to clipboard for older browser (#581)
Diffstat (limited to 'src/tools/benchmark-builder/benchmark-builder.vue')
-rw-r--r-- | src/tools/benchmark-builder/benchmark-builder.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/benchmark-builder/benchmark-builder.vue b/src/tools/benchmark-builder/benchmark-builder.vue index 91f3155..7922791 100644 --- a/src/tools/benchmark-builder/benchmark-builder.vue +++ b/src/tools/benchmark-builder/benchmark-builder.vue @@ -1,10 +1,11 @@ <script setup lang="ts"> import { Plus, Trash } from '@vicons/tabler'; -import { useClipboard, useStorage } from '@vueuse/core'; +import { useStorage } from '@vueuse/core'; import _ from 'lodash'; import { arrayToMarkdownTable, computeAverage, computeVariance } from './benchmark-builder.models'; import DynamicValues from './dynamic-values.vue'; +import { useCopy } from '@/composable/copy'; const suites = useStorage('benchmark-builder:suites', [ { title: 'Suite 1', data: [5, 10] }, @@ -47,7 +48,7 @@ const results = computed(() => { }); }); -const { copy } = useClipboard(); +const { copy } = useCopy({ createToast: false }); const header = { title: 'Suite', |