From aa63382d1aba615babf4dec609defa552cd76477 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 10 Oct 2023 11:14:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(util):=20=E7=A7=BB=E9=99=A4useCopyToCl?= =?UTF-8?q?ipboard=20hook,=20=E4=BD=BF=E7=94=A8navigator.clipboard?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=9B=BF=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VFormDesign/components/PreviewCode.vue | 9 +-- src/components/Icon/src/IconPicker.vue | 25 ++----- src/hooks/web/useCopyToClipboard.ts | 69 ------------------- .../setting/components/SettingFooter.vue | 14 ++-- src/utils/copyTextToClipboard.ts | 12 ++++ src/views/infra/file/index.vue | 9 +-- 6 files changed, 29 insertions(+), 109 deletions(-) delete mode 100644 src/hooks/web/useCopyToClipboard.ts create mode 100644 src/utils/copyTextToClipboard.ts diff --git a/src/components/FormDesign/src/components/VFormDesign/components/PreviewCode.vue b/src/components/FormDesign/src/components/VFormDesign/components/PreviewCode.vue index 4ad6d9d0..af665064 100644 --- a/src/components/FormDesign/src/components/VFormDesign/components/PreviewCode.vue +++ b/src/components/FormDesign/src/components/VFormDesign/components/PreviewCode.vue @@ -1,9 +1,9 @@ diff --git a/src/components/Icon/src/IconPicker.vue b/src/components/Icon/src/IconPicker.vue index 0d97d8ef..6b5f791c 100644 --- a/src/components/Icon/src/IconPicker.vue +++ b/src/components/Icon/src/IconPicker.vue @@ -1,5 +1,5 @@