mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 08:16:16 -04:00
fix(copy): prevent shorthand copy if source is present in useCopy (#559)
* fix(copy): prevent shorthand copy if source is present in useCopy * refactor(copy): normalized copy usage
This commit is contained in:
parent
7b6232a151
commit
86e964a274
14 changed files with 26 additions and 20 deletions
|
@ -37,7 +37,7 @@ const { copy: copyUnescaped } = useCopy({ source: unescapeOutput });
|
|||
</n-form-item>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyEscaped">
|
||||
<c-button @click="copyEscaped()">
|
||||
Copy
|
||||
</c-button>
|
||||
</div>
|
||||
|
@ -66,7 +66,7 @@ const { copy: copyUnescaped } = useCopy({ source: unescapeOutput });
|
|||
</n-form-item>
|
||||
|
||||
<div flex justify-center>
|
||||
<c-button @click="copyUnescaped">
|
||||
<c-button @click="copyUnescaped()">
|
||||
Copy
|
||||
</c-button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue