import { GameUIComponent } from '../module/project/data/GameUIComponent'; import { Global } from './Global'; export class ComponentUtils{ /**给组件绑定属性列表 */ static bindPropertys(uiComponent:GameUIComponent): void{ if (!uiComponent) return; let classInfo = Global.elslib[uiComponent.name]; uiComponent.propertys = {}; if (classInfo.classNode.props) { for (let propkey in classInfo.classNode.props) { uiComponent.propertys[propkey] = classInfo.classNode.props[propkey].value; } } } }