mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix tpl
This commit is contained in:
6 files changed
+13
-14
No files matched your search
@@ -109,9 +109,8 @@ export default class DomDialog extends DOMAttachedObject {
|
||||
}
|
||||
|
||||
show() {
|
||||
if (this.isShown || this.isAnimating) {
|
||||
return Promise.reject();
|
||||
}
|
||||
if (this.isShown) return Promise.reject(new Error('dialog isShown'));
|
||||
if (this.isAnimating) return Promise.reject(new Error('dialog isAnimating'));
|
||||
const promise = new Promise<string>((resolve) => {
|
||||
this._resolve = resolve;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user