leafer-ui
leafer-ui copied to clipboard
自定义组件 继承Box box是根据子元素自适应宽高,但是通过box.getBounds() 去获取宽高 得到的不准确
需要给出关键代码的截图才好分析,正常情况下直接打印 box.width, box.height 也可以得到自动的宽高信息。
getBounds()的两个参数也需要注意,看看是不是box.getBounds('box', 'inner')。