fix(widget): Text消费opts.cfontsize(框架缺陷:构造硬写1使.ui的cfontsize全无效,实测恒20px)——opt-in默认1不影响存量
This commit is contained in:
parent
1da20fad8a
commit
18186f685d
@ -507,7 +507,9 @@ bricks.TextBase = class extends bricks.JsWidget {
|
|||||||
bricks.Text = class extends bricks.TextBase {
|
bricks.Text = class extends bricks.TextBase {
|
||||||
constructor(opts){
|
constructor(opts){
|
||||||
super(opts);
|
super(opts);
|
||||||
this.cfontsize = 1;
|
// cfontsize opt-in(2026-09-18 框架缺陷修复):此前硬写 1 使 opts.cfontsize
|
||||||
|
// 全被忽略(.ui 写了不生效,实测字号恒 20px);传了才用,默认 1 不影响存量
|
||||||
|
this.cfontsize = opts.cfontsize || 1;
|
||||||
this.charsize_sizing();
|
this.charsize_sizing();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user