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/04/13 02:47:56 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #16878: [Feature] tree图。使用了rich ,期望在 rich 中添加不同的点击事件处理,实际却无法获取正常的target。

echarts-bot[bot] commented on issue #16878:
URL: https://github.com/apache/echarts/issues/16878#issuecomment-1097495130

   @liyang0612 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**
   
   [Feature] tree diagram. Using rich, expect to add different click event handling to rich, but actually can't get the normal target.
   
   **BODY**
   
   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ![image](https://user-images.githubusercontent.com/19622871/163084309-fa6fc794-8898-442e-b148-8f20a959f88e.png)
   
   As shown in the figure:
   
   Basics: This is a tree diagram; the red box area is handled using rich.
   
   Expectation: Click "Button 1" to bring up a tooltip and click "Button 2" to bring up another tooltip
   
   Question: Does rich support click events? Or when rich is clicked, can you get something like target?
   
   Note: I can only do the corresponding logic processing if the user clicks "Button 1" or "Button 2"
   
   ### Current Behavior
   
   Clicking on the red box area can only get the name of the leaf node, and it is not possible to know which content within the rich (leaf node) clicked
   
   ### Expected Behavior
   
   Clicking on a button in rich can distinguish it normally
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_
   </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