2026.3.26
使用ucharts图表,兼容app 每个图表组件添加:canvas2d="false" 加载方法改成onMounted
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<ChartCard margin="0 0 30rpx 0" title="危大工程管控数据">
|
||||
<view class="big-crisis">
|
||||
<qiun-data-charts type="column" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
|
||||
<qiun-data-charts type="column" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
|
||||
</view>
|
||||
</ChartCard>
|
||||
</template>
|
||||
@@ -9,12 +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],
|
||||
enableScroll: false,
|
||||
@@ -46,7 +42,7 @@
|
||||
}
|
||||
|
||||
|
||||
onReady(() => {
|
||||
onMounted(() => {
|
||||
let res = {
|
||||
categories: ["未开始", "进行中", "已完成", "培训人次", "作业人次"],
|
||||
series: [{
|
||||
|
||||
Reference in New Issue
Block a user