fix(Setting.ts): destroyCallback 参数没有被使用 (#12407)
destroyCallback 参数没有被使用,导致传入的 callback 实际上不会起到任何效果。
This commit is contained in:
parent
42ea06ce07
commit
211704692f
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ export class Setting {
|
|||
confirmCallback?: () => void
|
||||
}) {
|
||||
this.confirmCallback = options.confirmCallback;
|
||||
this.destroyCallback = options.destroyCallback;
|
||||
this.width = options.width || (isMobile() ? "92vw" : "768px");
|
||||
this.height = options.height || "80vh";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue