You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/03/24 02:38:39 UTC
[GitHub] [echarts] crazy-wang opened a new issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
crazy-wang opened a new issue #16735:
URL: https://github.com/apache/echarts/issues/16735
### Version
echarts@5+
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
echarts4 https://echarts.apache.org/v4/examples/zh/editor.html?c=map-HK
echarts5 https://echarts.apache.org/examples/zh/editor.html?c=map-HK
打开如上两个链接,4版本和5版本,同样的代码,同样图形设置,只是版本不同,鼠标点击后,5版本持续高亮状态;4版本没有默认高亮行为。【**两块代码一样,互换后行为表现不一样**】且5版本的高亮状态无法取消,用尽了echarts提供的各种方法事件。
### Current Behavior
4版本和5版本,同样的代码,同样图形设置,只是版本不同,鼠标点击后,5版本持续高亮状态;4版本没有默认高亮行为。【**两块代码一样,互换后行为表现不一样**】且5版本的高亮状态无法取消,用尽了echarts提供的各种方法事件。
### Expected Behavior
可以控制高亮与否。目前echarts5版本无法控制,设置不生效。
### Environment
```markdown
- OS: win10
- Browser: Chrome
- Framework: Vue@2
```
### Any additional comments?

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16735:
URL: https://github.com/apache/echarts/issues/16735#issuecomment-1077053029
测试了,设置 `selectedMode` 为 `false` 之后并不会高亮,你看到的高亮状态是鼠标悬浮时的状态,移开该区域你会发现它不会保持选中状态,也就是说 `selectedMode` 生效了。你是希望始终不高亮?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16735:
URL: https://github.com/apache/echarts/issues/16735#issuecomment-1077038813
可以再次点击高亮区域取消高亮或者设置 `selectedMode` 为 `false` 禁用选择,应该不存在无法禁止高亮的情况。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] crazy-wang commented on issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
crazy-wang commented on issue #16735:
URL: https://github.com/apache/echarts/issues/16735#issuecomment-1077050456
> 可以再次点击高亮区域取消高亮或设置`selectedMode`为`false`禁止选择,应该不存在无法消除高亮的情况。
设置selectedMode为false不生效,5版本还是会点击高亮。4版本会生效,点击不会高亮,这个我之前已经尝试过来,您可以做测试就发现问题。或者直接打开我上面贴的4和5的demo链接。
再次点击取消高亮是正常的,这个没问题,但是**有的场景他要点击也不可以高亮,应该是配置的问题**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] crazy-wang commented on issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
crazy-wang commented on issue #16735:
URL: https://github.com/apache/echarts/issues/16735#issuecomment-1077225245
> `selectedMode` 为
> 测试了,设置 `selectedMode` 为 `false` 之后并不会高亮,你看到的高亮状态是鼠标悬浮时的状态,移开该区域你会发现它不会保持选中状态,也就是说 `selectedMode` 生效了。你是希望始终不高亮?
感谢回复。
我再次测试,直接写到series里,生效的,可以控制高亮与否。
查看文档geo里也可以设置这个属性,之前是写在了geo对象里了没生效。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16735:
URL: https://github.com/apache/echarts/issues/16735#issuecomment-1077008685
@crazy-wang 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] echarts@5+ version, the map is automatically highlighted by default and cannot be disabled
**BODY**
### Version
echarts@5+
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
echarts4 https://echarts.apache.org/v4/examples/zh/editor.html?c=map-HK
echarts5 https://echarts.apache.org/examples/zh/editor.html?c=map-HK
Open the two links as above, version 4 and version 5, the same code, the same graphic settings, but the versions are different, after the mouse click, version 5 continues to highlight; version 4 does not have a default highlighting behavior. [**Two pieces of code are the same, the behavior after interchangeability is not the same**] and the highlight state of version 5 cannot be canceled, exhausting the various method events provided by echarts.
### Current Behavior
Version 4 and version 5, the same code, the same graphic settings, but the versions are different, after the mouse click, the 5 version continues to highlight the state; the 4 version does not have the default highlighting behavior. [**Two pieces of code are the same, the behavior after interchangeability is not the same**] and the highlight state of version 5 cannot be canceled, exhausting the various method events provided by echarts.
### Expected Behavior
You can control whether it is highlighted or not. Currently the echarts5 version is uncontrollable and the settings do not take effect.
### Environment
```markdown
- OS: win10
- Browser: Chrome
- Framework: Vue@2
```
### Any additional comments?

</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] crazy-wang closed issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
crazy-wang closed issue #16735:
URL: https://github.com/apache/echarts/issues/16735
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] crazy-wang commented on issue #16735: [Bug] echarts@5+版本 地图点击默认自动高亮,无法禁止
Posted by GitBox <gi...@apache.org>.
crazy-wang commented on issue #16735:
URL: https://github.com/apache/echarts/issues/16735#issuecomment-1077049958
设置selectedMode为false不生效,5版本还是会点击高亮。4版本会生效,点击不会高亮,这个我之前已经尝试过来,你可以做测试。
再次点击取消高亮是正常的,这个没问题,但是有的场景他要点击也不可以高亮,应该是配置的问题
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org