添加loading可选size判断

This commit is contained in:
wurou 2022-12-20 14:45:11 +08:00
parent d5a53f8eae
commit 73cd5c1f4b
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ export class StarLoading extends StarBaseElement {
this
}
if (opts.size) {
this.size = opts.size
}
this.canCancel = !!opts.canCancel
this.cancelCallback = opts.cancelCallback
this.observeStatus(opts)