This commit is contained in:
yumoqing 2024-10-28 15:41:00 +08:00
parent 2de2d89fdf
commit 296a4ae341

View File

@ -10,7 +10,7 @@ bricks.Popup = class extends bricks.VBox {
auto_dismiss: auto_dismiss:
*/ */
constructor(opts){ constructor(opts){
super(); super(opts);
this.auto_task = null; this.auto_task = null;
this.issub = false; this.issub = false;
this.set_css('popup'); this.set_css('popup');
@ -18,7 +18,7 @@ bricks.Popup = class extends bricks.VBox {
this.set_style('zIndex', zindex); this.set_style('zIndex', zindex);
} }
add_widget(w, index){ add_widget(w, index){
super().add_widget(w, index); super.add_widget(w, index);
if (this.auto_open){ if (this.auto_open){
this.open(); this.open();
} }