跳到主要内容

# Clipboard

> @types IPublicModelClipboard
> > @since v1.1.0

## 方法​

### setData​

给剪贴板赋值

    /**
     * 给剪贴板赋值
     * set data to clipboard
     *
     * @param {*} data
     * @since v1.1.0
     */
    setData(data: any): void;

### waitPasteData​

设置剪贴板数据设置的回调

    /**
     * 设置剪贴板数据设置的回调
     * set callback for clipboard provide paste data
     *
     * @param {KeyboardEvent} keyboardEvent
     * @param {(data: any, clipboardEvent: ClipboardEvent) => void} cb
     * @since v1.1.0
     */
    waitPasteData(
        keyboardEvent: KeyboardEvent,
        cb: (data: any, clipboardEvent: ClipboardEvent) => void,
      ): void;