
类型“Label”上不存在属性“string”。ts(2339)
类型“Label”上不存在属性“bold”。ts(2339)
类型“Label”上不存在属性“italic”。ts(2339)
什么原因??

类型“Label”上不存在属性“string”。ts(2339)
类型“Label”上不存在属性“bold”。ts(2339)
类型“Label”上不存在属性“italic”。ts(2339)
什么原因??
你自己定义的类叫 Label,与引擎的Label组件重名了。导致你用的 Label, 是你自己写的 Label。
你把你的 Label 换一个名字吧。
谢谢你的回答解决了这个问题 