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

This commit is contained in:
Corentin Thomasset 2023-04-22 00:49:03 +02:00 committed by Corentin THOMASSET
parent 61ece2387f
commit 362f2fa280
12 changed files with 751 additions and 134 deletions

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();