echarts 添加全选反选

newCac1.0
fanluyan 7 months ago
parent 40483e92cb
commit 5a85b63c31

@ -84,6 +84,34 @@ export default {
legend: {
icon: "circle",
data: this.echartData.legendData,
selector: [
{
//
type: "all",
//
title: "全选",
},
{
//
type: "inverse",
//
title: "反选",
},
],
selectorLabel: {
show: true,
color: this.xFontColor, // textStyle
backgroundColor: "rgba(3, 188, 255, 0.5)", //
padding: [4, 8], // 4px8px
// borderColor borderWidth
borderColor: this.xFontColor,
borderWidth: 0.5,
borderRadius: 2,
width: 30,
height: 16,
lineHeight: 16,
align: "center",
},
textStyle: {
color: this.xFontColor,
},

Loading…
Cancel
Save