This commit is contained in:
yumoqing 2024-08-20 14:45:57 +08:00
parent eb4a5419ed
commit 33aef29773

View File

@ -62,7 +62,7 @@ bricks.Icon = class extends bricks.Image {
} }
options_parse(){ options_parse(){
this.rate = this.rate || 1; this.rate = this.rate || 1;
var siz = bricks.app.charsize * rate + 'px'; var siz = bricks.app.charsize * this.rate + 'px';
this.set_url(this.url) this.set_url(this.url)
this.cwidth = this.opts.cwidth || 1; this.cwidth = this.opts.cwidth || 1;
this.cheight = this.opts.cheight || 1; this.cheight = this.opts.cheight || 1;