feat(new-tool): diff of two json objects
This commit is contained in:
1 parent
61ece2387f
commit
362f2fa280
12 files changed
+751
-134
No files matched your search
@@ -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