跳到主要内容

bn.openWidget

openWidget(options): Promise<{ id: number ; extra?: Record<string, any> }>

Parameters

NameType
optionsOpenWidgetOptions

Returns

Promise<{ id: number ; extra?: Record<string, any> }>


Interface: OpenWidgetOptions

NameTypeDescription
props?Record<string, any>
appIdstring
pathstring
type"alert" | "sheet"
width?number
height?number
maskClosable?boolean
onClose?(): void

onClose

Optional onClose(): void

Returns

void