Merge pull request #210 in YR/star-web-components from add-loading-option-size to master

* commit '73cd5c1f4b80fe40049f5abeea082c6a82d25c58':
  添加loading可选size判断
This commit is contained in:
汪昌棋 2022-12-22 16:02:30 +08:00
commit cd1efe5713
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)