update: 将echarts放入分包中
This commit is contained in:
parent
eff4b8b6c1
commit
941518384e
|
@ -7,13 +7,13 @@
|
||||||
></LEchart>
|
></LEchart>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import LEchart from "../../uni_modules/lime-echart/components/l-echart/l-echart.vue";
|
import LEchart from "../uni_modules/lime-echart/components/l-echart/l-echart.vue";
|
||||||
// import limeEchart from "../../uni_modules/lime-echart/components/lime-echart/lime-echart";
|
// import limeEchart from "../../uni_modules/lime-echart/components/lime-echart/lime-echart";
|
||||||
|
|
||||||
// #ifdef VUE3
|
// #ifdef VUE3
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
// 由于vue3 使用vite 不支持umd格式的包,小程序依然可以使用,但需要使用require
|
// 由于vue3 使用vite 不支持umd格式的包,小程序依然可以使用,但需要使用require
|
||||||
const echarts = require("../../uni_modules/lime-echart/static/echarts.min");
|
const echarts = require("../uni_modules/lime-echart/static/echarts.min");
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef MP
|
// #ifndef MP
|
||||||
// 由于 vue3 使用vite 不支持umd格式的包,故引入npm的包
|
// 由于 vue3 使用vite 不支持umd格式的包,故引入npm的包
|
|
@ -54,7 +54,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TimeDialog from "./components/TimeDialog.vue";
|
import TimeDialog from "./components/TimeDialog.vue";
|
||||||
import CEcharts from "@/components/Echarts/echarts.vue";
|
import CEcharts from "./Echarts/echarts.vue";
|
||||||
import ProductTypeDialog from "./components/ProductTypeDialog.vue";
|
import ProductTypeDialog from "./components/ProductTypeDialog.vue";
|
||||||
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
|
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
|
||||||
import { ShipmentApi } from "@/services";
|
import { ShipmentApi } from "@/services";
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TimeDialog from "./components/TimeDialog.vue";
|
import TimeDialog from "./components/TimeDialog.vue";
|
||||||
import CEcharts from "@/components/Echarts/echarts.vue";
|
import CEcharts from "./Echarts/echarts.vue";
|
||||||
import ProductTypeDialog from "./components/ProductTypeDialog.vue";
|
import ProductTypeDialog from "./components/ProductTypeDialog.vue";
|
||||||
import { ReceiveApi } from "@/services";
|
import { ReceiveApi } from "@/services";
|
||||||
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
|
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
|
||||||
|
|
Loading…
Reference in New Issue