echarts 添加全选反选

newCac1.0
fanluyan 7 months ago
parent 5a85b63c31
commit 387e654d26

Binary file not shown.

@ -77,6 +77,41 @@ export default {
//animation: false, //animation: false,
legend: { legend: {
data: legendData, data: legendData,
// textStyle: {
// color: this.xFontColor,
// },
lineStyle: {
width: 2,
},
icon: "circle",
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",
},
}, },
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",

@ -77,6 +77,35 @@ export default {
//animation: false, //animation: false,
legend: { legend: {
data: legendData, data: legendData,
icon: "circle",
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",
},
selector: [
{
//
type: "all",
//
title: "全选",
},
{
//
type: "inverse",
//
title: "反选",
},
],
}, },
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",

Loading…
Cancel
Save