diff --git a/components/analytics/AnalyticsComboChart.uvue b/components/analytics/AnalyticsComboChart.uvue index fd3ef7b2..a328103d 100644 --- a/components/analytics/AnalyticsComboChart.uvue +++ b/components/analytics/AnalyticsComboChart.uvue @@ -154,10 +154,11 @@ export default { data: x, axisTick: { alignWithLabel: true }, axisLine: { lineStyle: { color: 'rgba(0,0,0,0.12)' } }, - axisLabel: { + axisLabel: { color: 'rgba(0,0,0,0.55)', rotate: x.length > 12 ? 45 : 0, - interval: 0 + // 数据量大时不要强制全部展示,否则会全部重叠 + interval: x.length > 60 ? 'auto' : 0 } }, yAxis: [ diff --git a/components/analytics/AnalyticsSidebarMenu.uvue b/components/analytics/AnalyticsSidebarMenu.uvue index a79dab5d..a0d6c18b 100644 --- a/components/analytics/AnalyticsSidebarMenu.uvue +++ b/components/analytics/AnalyticsSidebarMenu.uvue @@ -4,15 +4,32 @@ - - {{ item.icon }} - {{ item.title }} + + {{ item.icon }} + {{ item.title }} + {{ isExpanded(item.path) ? '▾' : '▸' }} + + + + + {{ child.icon }} + {{ child.title }} + + @@ -22,11 +39,15 @@