Auto Task API
Preparing search index...
scripts/ui/dialog
DialogContext
Interface DialogContext
interface
DialogContext
{
root
:
HTMLDialogElement
;
run
:
(
operation
:
()
=>
Promise
<
void
>
)
=>
Promise
<
void
>
;
status
:
(
text
:
string
,
tone
?:
Tone
)
=>
void
;
}
Index
Properties
root
run
status
Properties
root
root
:
HTMLDialogElement
run
run
:
(
operation
:
()
=>
Promise
<
void
>
)
=>
Promise
<
void
>
在独立操作上下文中执行任务并发送状态事件。
Type Declaration
(
operation
:
()
=>
Promise
<
void
>
)
:
Promise
<
void
>
Parameters
operation
:
()
=>
Promise
<
void
>
操作名称或执行函数。
Returns
Promise
<
void
>
在操作完成后兑现的 Promise。
status
status
:
(
text
:
string
,
tone
?:
Tone
)
=>
void
更新操作状态。
Type Declaration
(
text
:
string
,
tone
?:
Tone
)
:
void
Parameters
text
:
string
待处理的文本。
Optional
tone
:
Tone
提示消息的视觉类型;可省略。
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
root
run
status
Auto Task API
Loading...
在独立操作上下文中执行任务并发送状态事件。