fix: enable copy when dict is disabled (#2642)
✨ (dictAreaModal): add customizeCopy function to copy JSON to clipboard
This commit is contained in:
parent
7d7502744e
commit
34ef234c42
1 changed files with 3 additions and 0 deletions
|
|
@ -73,6 +73,9 @@ export default function DictAreaModal({
|
|||
setMyValue(edit.src);
|
||||
}}
|
||||
src={cloneDeep(myValue)}
|
||||
customizeCopy={(copy) => {
|
||||
navigator.clipboard.writeText(JSON.stringify(copy));
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</BaseModal.Content>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue