Skip to content

Commit

Permalink
feat: 主题中增加图例样式的配置,便于用户了解怎么修改 (#3376)
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Apr 21, 2021
1 parent 182c68a commit 5d3fac4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/theme/util/create-by-style-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,30 @@ function createLegendStyles(styleSheet: StyleSheet): LooseObject {
textBaseline: 'middle',
},
},
itemStates: {
active: {
nameStyle: {
opacity: 0.8,
},
},
unchecked: {
nameStyle: {
fill: '#D8D8D8',
},
markerStyle: {
fill: '#D8D8D8',
stroke: '#D8D8D8',
},
},
inactive: {
nameStyle: {
fill: '#D8D8D8',
},
markerStyle: {
opacity: 0.2,
},
},
},
flipPage: true,
pageNavigator: {
marker: {
Expand Down

0 comments on commit 5d3fac4

Please sign in to comment.