title
title | 组件标题 |
---|---|
show | true/false |
text | 主标题 |
subtext | 副标题 |
link | 超链接 |
subTextStyle /textStyle | 下面为subText属性值 |
color: '#333',
fontStyle: 'normal',
fontWeight: normal,
fontFamily: 'sans-serif',
fontSize: 18,
lineHeight: ...,
width: ...,
height: ...,
textBorderColor: 'transparent',
textBorderWidth: 0,
textShadowColor: 'transparent',
textShadowBlur: 0,
textShadowOffsetX: 0,
textShadowOffsetY: 0,
title的属性
textAlign: 'auto', 整体(包括 text 和 subtext)的水平对齐 'auto'、'left'、'right'、'center'。
textVerticalAlign: 'auto', 整体(包括 text 和 subtext)的垂直对齐。 'auto'、'top'、'bottom'、'middle'。
triggerEvent: false,
padding: 5,
itemGap: 10, 主副标题之间的间距。
zlevel: 0,
z: 2,
left: 'auto',grid 组件离容器左侧的距离。 'left', 'center', 'right' 数值
top: 'auto', 'top', 'middle', 'bottom' 数值 百分比
左上有多的属性值
right: 'auto', 数值 百分比
bottom: 'auto', 数值 百分比
右下数值百分比
backgroundColor: 'transparent', 背景色
borderColor: '#ccc', 边框色
borderWidth: 0, 边框宽度
borderRadius: 0, 边框圆角
shadowBlur: ..., 阴影模糊范围
shadowColor: ..., 阴影颜色
shadowOffsetX: 0, 阴影X偏移
shadowOffsetY: 0,阴影Y偏移