mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 17:26:15 -04:00
feat(new-tool): diff of two json objects
This commit is contained in:
parent
61ece2387f
commit
362f2fa280
12 changed files with 751 additions and 134 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue