运行微信小程序时,如果把图标放在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>
0 个回复