提交 5776fe65 编写于 作者: L LVB8189

Signed-off-by: LVB8189 <lvbai1@huawei.com>

 Changes to be committed:
上级 0a9bccb9
......@@ -771,15 +771,16 @@ setProperty(property: PasteDataProperty): void;
**参数**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| property | [PasteDataProperty](#pastedataproperty7) | 是 | 属性保存到PasteData对象。 |
| property | [PasteDataProperty](#pastedataproperty7) | 是 | 属性保存到PasteData对象,仅支持设置ShareOption。 |
**示例**
```js
var pasteData = pasteboard.createHtmlData('application/xml');
var props = pasteData.getProperty();
props.shareOption = pasteboard.ShareOption.InApp;
pasteData.setProperty(props);
let prop : pasteboard.PasteDataProperty = {
shareOption: pasteboard.ShareOption.InApp
}
pasteData.setProperty(prop);
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册