2026.3.26

使用ucharts图表,兼容app
每个图表组件添加:canvas2d="false"
加载方法改成onMounted
This commit is contained in:
2026-03-26 14:49:26 +08:00
parent ab4646b43a
commit 925e9f1876
115 changed files with 413 additions and 424 deletions
+3 -6
View File
@@ -1,7 +1,7 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="工程划分">
<view class="inspection ">
<qiun-data-charts type="column" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
<qiun-data-charts type="column" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
@@ -9,11 +9,8 @@
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref
ref,onMounted
} from 'vue';
import {
onReady
} from '@dcloudio/uni-app'
const opts = ref({
padding: [15, 15, 0, 5],
@@ -45,7 +42,7 @@
}
onReady(() => {
onMounted(() => {
let res = {
categories: ["单位工程数", "分部工程数", "分项工程数"],
series: [{