fix: clipboard demo not working with a-input (#4856)

pull/48/MERGE
Arthur Darkstone 2024-11-11 14:50:30 +08:00 committed by GitHub
parent 94efcec7da
commit dc15accd04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const { copy, text } = useClipboard({ legacy: true, source });
Current copied: <code>{{ text || 'none' }}</code>
</p>
<div class="flex">
<Input class="mr-3 flex w-[200px]" />
<Input v-model:value="source" class="mr-3 flex w-[200px]" />
<Button type="primary" @click="copy(source)"> Copy </Button>
</div>
</Card>