From 66eca98dc6d20b1e41f22104fc16040910dde56b Mon Sep 17 00:00:00 2001 From: Doma Date: Tue, 14 Jun 2022 19:39:21 +0800 Subject: [PATCH] fix(theme): hide axisTick by default --- src/theme/rsuite_light.project.json | 2 +- src/theme/rsuite_light.ts | 8 ++++---- src/utils.ts | 7 ------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/theme/rsuite_light.project.json b/src/theme/rsuite_light.project.json index 14c07b3..e00ad86 100644 --- a/src/theme/rsuite_light.project.json +++ b/src/theme/rsuite_light.project.json @@ -51,7 +51,7 @@ "name": "通用坐标轴", "axisLineShow": true, "axisLineColor": "#e5e5ea", - "axisTickShow": true, + "axisTickShow": false, "axisTickColor": "#333", "axisLabelShow": true, "axisLabelColor": "#575757", diff --git a/src/theme/rsuite_light.ts b/src/theme/rsuite_light.ts index 657f15b..4332ad5 100644 --- a/src/theme/rsuite_light.ts +++ b/src/theme/rsuite_light.ts @@ -189,7 +189,7 @@ const theme = { } }, axisTick: { - show: true, + show: false, lineStyle: { color: '#333' } @@ -219,7 +219,7 @@ const theme = { } }, axisTick: { - show: true, + show: false, lineStyle: { color: '#333' } @@ -249,7 +249,7 @@ const theme = { } }, axisTick: { - show: true, + show: false, lineStyle: { color: '#333' } @@ -279,7 +279,7 @@ const theme = { } }, axisTick: { - show: true, + show: false, lineStyle: { color: '#333' } diff --git a/src/utils.ts b/src/utils.ts index a531183..b15f5d3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -231,10 +231,6 @@ const createOptions = { return _merge( { boundaryGap: !!series.find((comp: any) => comp.type[symbols.typeKey] === symbols.bars), - - axisTick: { - show: false - }, axisLabel: transformTextOption(axisLabel, { show: true }), @@ -269,9 +265,6 @@ const createOptions = { axisLine: { show: false }, - axisTick: { - show: false - }, axisLabel: transformTextOption(axisLabel, { show: true }),