From fe4b964d3a98e984d6f9b2c38f695079c1b668d6 Mon Sep 17 00:00:00 2001 From: Lumdzeehol Date: Wed, 16 Nov 2022 08:07:20 +0800 Subject: [PATCH] docs(useClipboard): add brief of option legacy (#2447) --- packages/core/useClipboard/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/useClipboard/index.md b/packages/core/useClipboard/index.md index 9998be7e43f..a2204fae07b 100644 --- a/packages/core/useClipboard/index.md +++ b/packages/core/useClipboard/index.md @@ -24,3 +24,5 @@ const { text, copy, copied, isSupported } = useClipboard({ source }) Copied! ``` + +Set `legacy: true` to keep the ability to copy if [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) is not available. It will handle copy with [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand) as fallback. \ No newline at end of file