Browse Source

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

pull/4866/head
Arthur Darkstone 1 year ago
committed by GitHub
parent
commit
dc15accd04
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      playground/src/views/demos/features/clipboard/index.vue

2
playground/src/views/demos/features/clipboard/index.vue

@ -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>

Loading…
Cancel
Save