Ver código fonte

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

Arthur Darkstone 10 meses atrás
pai
commit
dc15accd04

+ 1 - 1
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>