如果我将复杂输入(prop.childprop)作为字符串传递,则会出现错误“无法读取未定义的属性'property'”
export function NewComponent(name:string, componentArgs: {
selector: string,
inputs: Array<string>
}): Type<any> {
var comp = Component(componentArgs);
return comp.Class({
})
}
如下创建组件时出现错误“无法读取未定义的属性'property'”
NewComponent(selector:'mycom',inputs:["prop","prop.childprop"])
使用Component()创建组件