modal change
This commit is contained in:
@@ -105,8 +105,8 @@ export class Modal<T = any, U = KV> {
|
||||
|
||||
return _root;
|
||||
}
|
||||
static render<T extends new (...args: any[]) => any>(this: T,el: string | HTMLDivElement, id: string, opts?: ModalOpts): InstanceType<T>;
|
||||
static render<T extends new (...args: any[]) => any>(this: T,el: string | HTMLDivElement, opts?: ModalOpts): InstanceType<T>;
|
||||
static render<T extends new (...args: any[]) => any>(this: T,el: string | HTMLDivElement, id: string, opts?: ConstructorParameters<T>[0]): InstanceType<T>;
|
||||
static render<T extends new (...args: any[]) => any>(this: T,el: string | HTMLDivElement, opts?: ConstructorParameters<T>[0]): InstanceType<T>;
|
||||
static render(...args: any[]) {
|
||||
let [el, id, opts] = args;
|
||||
const _el = querySelector(el);
|
||||
|
||||
Reference in New Issue
Block a user