标签:child class component port 区别 OLE extend ons ret
module app{
export class AAA extends eui.Component{
private qqq : eui.Label = null;
private mmm : eui.Label = null;
public constructor(){
super();
this.skinName = "resource/eui_skins/aaa.exml";
}
protected childrenCreated() : void{
super.childrenCreated();
console.log( `width : ${this.qqq.width}` );
console.log( `heigth : ${this.qqq.height}` );
console.log( `textWidth : ${this.qqq.textWidth}` );
console.log( `textHeigth : ${this.qqq.textHeight}` );
}
}
}
可知 : width / height 指的是蓝框
Egret之Label属性width与textWidth的区别
标签:child class component port 区别 OLE extend ons ret
原文地址:https://blog.51cto.com/aonaufly/2418297