mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
feat(new-tool): diff of two json objects
This commit is contained in:
committed by
Corentin THOMASSET
parent
61ece2387f
commit
362f2fa280
@@ -1,8 +1,7 @@
|
||||
import { useClipboard } from '@vueuse/core';
|
||||
import { useClipboard, type MaybeRef } from '@vueuse/core';
|
||||
import { useMessage } from 'naive-ui';
|
||||
import type { Ref } from 'vue';
|
||||
|
||||
export function useCopy({ source, text = 'Copied to the clipboard' }: { source: Ref; text?: string }) {
|
||||
export function useCopy({ source, text = 'Copied to the clipboard' }: { source: MaybeRef<string>; text?: string }) {
|
||||
const { copy } = useClipboard({ source });
|
||||
const message = useMessage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user