From 73cd5c1f4b80fe40049f5abeea082c6a82d25c58 Mon Sep 17 00:00:00 2001 From: wurou Date: Tue, 20 Dec 2022 14:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0loading=E5=8F=AF=E9=80=89size?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/loading/loading.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/loading/loading.ts b/src/components/loading/loading.ts index 4a9840f..00ba9de 100644 --- a/src/components/loading/loading.ts +++ b/src/components/loading/loading.ts @@ -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)