This commit is contained in:
yumoqing 2026-06-26 17:18:59 +08:00
parent 21d8c8fd9d
commit aa81a38241

View File

@ -7,10 +7,12 @@ bricks.BaseRunning = class extends bricks.HBox {
}
*/
constructor(opts){
if (! opts.cwidth) opts.cwidth = 2;
if (! opts.cwidth) opts.width = 'auto';
if (! opts.cheight) opts.cheight = 2;
super(opts);
this.icon_w = new bricks.Icon({
height: '100%',
width: 'auto',
url:opts.icon || bricks_resource('imgs/running.gif')
});
this.time_w = new bricks.Text({