跳到主要内容

capture-snapshot

<advanced.capture-snapshot>provider

构件 advanced.capture-snapshot

Examples​

Basic​

Playground

Definition​

Parameters​

#NameDescriptionType
1options

选项

SnapshotOptions

Returns​

Promise<void | string>

Type references​

SnapshotOptions​

NameDescriptionTypeDefaultRequired
name

文件名称

string✅
fileType

文件类型

"image" | "pdf"✅
selector

选择器

string
bucketName

对象存储桶名字, fileType只能为 image

string
backgroundColor

画布背景颜色, 默认透明

string