类型别名BillboardOptions
广告牌选项。
属性
width
宽度。 number | string
类型。2D为字符串类型(示例 100px),3D为数字类型(示例 2)。
height
高度。 number | string
类型。2D为字符串类型(示例 100px),3D为数字类型(示例 2)。
background
背景色,为空表示透明。 string
类型。
children
子元素。 Object[]
类型。
children子元素属性
type
子元素类型,值为 'image' | 'text'
。
url
图片地址, string
类型。
width
宽度, string
类型。
height
高度, string
类型。
text
文本, string
类型。
key
用于绑定文本的键, string
类型。
color
颜色, string
类型。
fontSize
字体大小, string
类型。
left
左边距, string
类型。
top
顶边距, string
类型。