如题:@Prop background_Color: ResourceColor = Color.Transparent 这种写法报错:[The ‘@Prop’ decorated variable ‘background_Color’ cannot be of a union type consisting of object and primitive type. ]?
如题:@Prop background_Color: ResourceColor = Color.Transparent 这种写法报错:[The ‘@Prop’ decorated variable ‘background_Color’ cannot be of a union type consisting of object and primitive type. ]?
1 回答838 阅读✓ 已解决
1 回答1.1k 阅读
1 回答965 阅读
1 回答918 阅读
1 回答858 阅读
1 回答798 阅读
1 回答746 阅读
@Prop 在API11环境下支持AkrUI框架定义的联合类型Length、ResourceStr、ResourceColor类型。