feat(new-tool): diff of two json objects

This commit is contained in:
Corentin Thomasset authored and Corentin THOMASSET committed 2023-04-23 15:24:20 +02:00
1 parent 61ece2387f
commit 362f2fa280
12 files changed
+751 -134

No files matched your search

+2 -3
View File
@@ -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();