mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
perf: echarts
This commit is contained in:
parent
f57176dd1d
commit
7df600bea2
@ -1,28 +1,14 @@
|
|||||||
import * as echarts from "echarts/core";
|
import * as echarts from "echarts/core";
|
||||||
|
|
||||||
import {
|
import { LineChart } from "echarts/charts";
|
||||||
BarChart,
|
|
||||||
LineChart,
|
|
||||||
PieChart,
|
|
||||||
MapChart,
|
|
||||||
PictorialBarChart,
|
|
||||||
RadarChart,
|
|
||||||
} from "echarts/charts";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
TitleComponent,
|
TitleComponent,
|
||||||
TooltipComponent,
|
TooltipComponent,
|
||||||
GridComponent,
|
GridComponent,
|
||||||
PolarComponent,
|
|
||||||
AriaComponent,
|
|
||||||
ParallelComponent,
|
|
||||||
LegendComponent,
|
|
||||||
RadarComponent,
|
|
||||||
ToolboxComponent,
|
ToolboxComponent,
|
||||||
DataZoomComponent,
|
DataZoomComponent,
|
||||||
VisualMapComponent,
|
VisualMapComponent,
|
||||||
TimelineComponent,
|
|
||||||
CalendarComponent,
|
|
||||||
} from "echarts/components";
|
} from "echarts/components";
|
||||||
|
|
||||||
import { SVGRenderer } from "echarts/renderers";
|
import { SVGRenderer } from "echarts/renderers";
|
||||||
@ -30,26 +16,14 @@ import { SVGRenderer } from "echarts/renderers";
|
|||||||
const { use, registerTheme } = echarts;
|
const { use, registerTheme } = echarts;
|
||||||
|
|
||||||
use([
|
use([
|
||||||
LegendComponent,
|
|
||||||
TitleComponent,
|
TitleComponent,
|
||||||
TooltipComponent,
|
TooltipComponent,
|
||||||
GridComponent,
|
GridComponent,
|
||||||
PolarComponent,
|
|
||||||
AriaComponent,
|
|
||||||
ParallelComponent,
|
|
||||||
BarChart,
|
|
||||||
LineChart,
|
LineChart,
|
||||||
PieChart,
|
|
||||||
MapChart,
|
|
||||||
RadarChart,
|
|
||||||
SVGRenderer,
|
SVGRenderer,
|
||||||
PictorialBarChart,
|
|
||||||
RadarComponent,
|
|
||||||
ToolboxComponent,
|
ToolboxComponent,
|
||||||
DataZoomComponent,
|
DataZoomComponent,
|
||||||
VisualMapComponent,
|
VisualMapComponent,
|
||||||
TimelineComponent,
|
|
||||||
CalendarComponent,
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// 自定义主题
|
// 自定义主题
|
||||||
|
@ -30,9 +30,9 @@
|
|||||||
import Flop from "/@/components/Flop";
|
import Flop from "/@/components/Flop";
|
||||||
import { ref, computed, onMounted, nextTick } from "vue";
|
import { ref, computed, onMounted, nextTick } from "vue";
|
||||||
import { deviceDetection } from "/@/utils/deviceDetection";
|
import { deviceDetection } from "/@/utils/deviceDetection";
|
||||||
import { echartsJson } from "/@/api/mock";
|
|
||||||
import { useEventListener, tryOnUnmounted, useTimeoutFn } from "@vueuse/core";
|
import { useEventListener, tryOnUnmounted, useTimeoutFn } from "@vueuse/core";
|
||||||
import * as echarts from "echarts";
|
import { echartsJson } from "/@/api/mock";
|
||||||
|
import echarts from "/@/plugins/echarts";
|
||||||
|
|
||||||
let brokenLine: any = null; //折线图实例
|
let brokenLine: any = null; //折线图实例
|
||||||
export default {
|
export default {
|
||||||
@ -91,10 +91,6 @@ export default {
|
|||||||
toolbox: {
|
toolbox: {
|
||||||
right: 10,
|
right: 10,
|
||||||
feature: {
|
feature: {
|
||||||
dataZoom: {
|
|
||||||
yAxisIndex: "none"
|
|
||||||
},
|
|
||||||
restore: {},
|
|
||||||
saveAsImage: {}
|
saveAsImage: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user