legend: {
show: true,
top: '10%',
type: 'scroll',
pageIconColor: '#aaa', // 翻页按钮的颜色
pageIconInactiveColor: '#2f4554', // 翻页按钮不激活时(即翻页到头时)的颜色
pageTextStyle: { // 图例页信息的文字样式
color: '#cbcbcb'
},
textStyle: {
color: 'rgba(212, 232, 254, 1)',
fontSize: 12
},
itemWidth: 10,
itemHeight: 10,
data: this.legend
},
官网一般默认浅色背景,如果深色背景需要做下修改,关键的是
pageIconColor: '#aaa', // 翻页按钮的颜色 pageIconInactiveColor: '#2f4554', // 翻页按钮不激活时(即翻页到头时)的颜色 pageTextStyle: { // 图例页信息的文字样式 color: '#cbcbcb' },