Aar0n @Aar0n: 尝试过修改,不过越改错误越多,所以只好上论坛求助了。
比如这么一个报错的地方:
class Component extends laya.ui.Component implements laya.ui.IComponent {
_getBoundPointsM(ifRotate?: boolean): Array<any>;
disableLayout: boolean;
protected resetLayoutX(): void;
protected resetLayoutY(): void;
}
类laya.ui.Component 和 接口 laya.ui.IComponent 找不到,应该是2.0里移除了
我尝试继承自 laya.ui.UIComponent,又报一些属性重定义
我猜测是去掉了一个接口,修改了一个类名,改动应该还是很大的
Github上的源代码还没有更新到2.0,所以只能等官方更新layaeditor.d.zip了