Skip to content

useClipboard ​

响应式的剪贴板 API。

示例 ​

ts
import { useClipboard } from '@base-web-kits/base-tools-vue';

const { text, copy, isSupported } = useClipboard();

返回值 ​

  • (Object): 包含 text, copy, isSupported 等属性的对象。

来源 ​