echarts [Bug] dataZoom type= slider时设置zoomLock: true,还是能进行区域选中,进行缩放了

oxf4rvwz  于 2个月前  发布在  Echarts
关注(0)|答案(2)|浏览(33)

Version

5.3.2

https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwATAAMPLAZmbDJAKy5ABy5AOy5yckVAMzp1qEeFNR0AEaMHMEediT1JEJgjABawMAAtkRx6O4J6E3etHj-EAIRvJOkAF4jowAywPQA1kRgHEoNpN0eKHYA3EA

Steps to Reproduce

在dataZoom区间 出现十字加号时,进行鼠标选中一片区域,这样就能进行区域选中了,从而进行缩放了

Current Behavior

鼠标放在dataZoom导航区间时 出现了十字加号,选择一片区域后 就进行了缩放

Expected Behavior

期待是设置了zoomLock: true后 不能进行区域选择,从而不能缩放

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

jgovgodb

jgovgodb1#

@luoteen It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] dataZoom type= slider set zoomLock: true, or can be region-selected and zoomed

BODY

Version

5.3.2

https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBd EgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwATAAMPLAZmbDJAKy5ABy5AOy5yckVAMzp1qEeFNR0AEaMHMEediT1JEJgjABawMAAtkRx6O4J6E3etHj-EAIRvJOkAF4jowAywP QA1kRgHEoNpN0eKHYA3EA

Steps to Reproduce

When the cross plus sign appears in the dataZoom interval, use the mouse to select an area, so that the area can be selected and zoomed in

Current Behavior

When the mouse is placed in the dataZoom navigation area, a cross plus sign appears, and after selecting an area, it will be zoomed

Expected Behavior

The expectation is that after setting zoomLock: true, area selection cannot be performed, so zooming cannot be performed

Environment

- OS:
-Browser:
- Framework:

Any additional comments?

No response

wz1wpwve

wz1wpwve2#

看文档,zoomLock本就是限制grid中的缩放事件,如果不期望使用brush,配置brushSelect关闭即可

相关问题