update: 打包优化
This commit is contained in:
parent
482a95a678
commit
3e7542be4a
|
@ -1,41 +0,0 @@
|
||||||
<template>
|
|
||||||
<dom-echart :moduleParam="moduleParam1" :optionData="option"></dom-echart>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import domEchart from "@/components/echarts.vue";
|
|
||||||
export default {
|
|
||||||
// 注册组件
|
|
||||||
components: {
|
|
||||||
domEchart,
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
moduleParam1: {
|
|
||||||
id: "moId1",
|
|
||||||
height: "50vh",
|
|
||||||
width: "100%",
|
|
||||||
},
|
|
||||||
option: {
|
|
||||||
title: {
|
|
||||||
text: "销售",
|
|
||||||
},
|
|
||||||
tooltip: {},
|
|
||||||
legend: {
|
|
||||||
data: ["销量"],
|
|
||||||
},
|
|
||||||
xAxis: {
|
|
||||||
data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
|
|
||||||
},
|
|
||||||
yAxis: {},
|
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: "销量",
|
|
||||||
type: "bar",
|
|
||||||
data: [5, 20, 36, 10, 10, 20],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
|
@ -1,9 +1,7 @@
|
||||||
import AvaSwiper from '@/components/AvaSwiper/AvaSwiper.vue'
|
|
||||||
import NavBar from '@/components/NavBar/NavBar.vue'
|
import NavBar from '@/components/NavBar/NavBar.vue'
|
||||||
import NavBarLayout from '@/components/NavBar/NavBarLayout.vue'
|
import NavBarLayout from '@/components/NavBar/NavBarLayout.vue'
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
AvaSwiper: typeof AvaSwiper;
|
|
||||||
NavBar: typeof NavBar;
|
NavBar: typeof NavBar;
|
||||||
NavBarLayout: typeof NavBarLayout
|
NavBarLayout: typeof NavBarLayout
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue