Hinui
Hinui
  • 发布:2022-12-15 16:18
  • 更新:2022-12-15 16:18
  • 阅读:563

#插件讨论# 【 秋云 ucharts echarts 高性能跨全端图表组件 - 秋云 】运行微信小程序时,图表放在scroll-view中点击后不能正确获取点击的currentIndex

分类:uni-app

运行微信小程序时,如果把图标放在scroll-view滑动区域,点击位置会获取当前屏幕区域的坐标,点击后不能正确获取点击的currentIndex

<scroll-view scroll-y="true" style="width: 100%;height: 300px;background: #aaffff;">  
        <qiun-title-bar title="基本折线图"/>  
        <view class="charts-box">  
          <qiun-data-charts type="line" :chartData="chartsDataLine1"/>  
        </view>  
        <qiun-title-bar title="基本折线区域图"/>  
        <view class="charts-box">  
          <qiun-data-charts type="area" :chartData="chartsDataArea1"/>  
        </view>       
        <qiun-title-bar title="基本饼状图"/>  
        <view class="charts-box">  
          <qiun-data-charts type="pie" :chartData="chartsDataPie1"/>  
        </view>  
        <qiun-title-bar title="环形图+渐变色"/>  
        <view class="charts-box">  
          <qiun-data-charts type="ring" :opts="{legend:{position: 'bottom'},extra:{ring:{ringWidth: 60,linearType:'custom',centerColor:'#FF0'}}}" :chartData="chartsDataRing1"/>  
        </view>  
    </scroll-view>
2022-12-15 16:18 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复