Commit dc15accd by Arthur Darkstone Committed by GitHub

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

1 parent 94efcec7
...@@ -17,7 +17,7 @@ const { copy, text } = useClipboard({ legacy: true, source }); ...@@ -17,7 +17,7 @@ const { copy, text } = useClipboard({ legacy: true, source });
Current copied: <code>{{ text || 'none' }}</code> Current copied: <code>{{ text || 'none' }}</code>
</p> </p>
<div class="flex"> <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> <Button type="primary" @click="copy(source)"> Copy </Button>
</div> </div>
</Card> </Card>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!