chore: 去除夜间适配 useEcharts会自动处理

This commit is contained in:
dap 2024-08-07 17:31:47 +08:00
parent 2afec343b6
commit 8bb203dc0d
2 changed files with 0 additions and 16 deletions

View File

@ -4,7 +4,6 @@ import type { EChartsOption } from 'echarts';
import { defineComponent, onMounted, ref, watch } from 'vue';
import { EchartsUI, type EchartsUIType, useEcharts } from '@vben/chart-ui';
import { preferences } from '@vben/preferences';
export default defineComponent({
components: { EchartsUI },
@ -33,13 +32,6 @@ export default defineComponent({
setEchartsOption(props.data);
});
watch(
() => preferences.theme.mode,
() => {
setEchartsOption(props.data);
},
);
function setEchartsOption(data: any[]) {
const option: EChartsOption = {
series: [

View File

@ -4,7 +4,6 @@ import type { EChartsOption } from 'echarts';
import { defineComponent, onMounted, ref, watch } from 'vue';
import { EchartsUI, type EchartsUIType, useEcharts } from '@vben/chart-ui';
import { preferences } from '@vben/preferences';
export default defineComponent({
components: { EchartsUI },
@ -33,13 +32,6 @@ export default defineComponent({
setEchartsOption(props.data);
});
watch(
() => preferences.theme.mode,
() => {
setEchartsOption(props.data);
},
);
function getNearestPowerOfTen(num: number) {
let power = 10;
while (power <= num) {