Skip to content

Conversation

q32757468
Copy link
Collaborator

No description provided.

Copy link

Walkthrough: This pull request updates the documentation for the Contextmenu and Legend plugins in the G6 library. It enhances the descriptions, usage scenarios, basic usage examples, configuration options, and provides code samples for better understanding and implementation of these plugins.

Changes:

Files Summary
packages/site/docs/manual/plugin/build-in/Contextmenu.zh.md Updated documentation for the Contextmenu plugin, including a detailed overview, usage scenarios, configuration options, and code examples.
packages/site/docs/manual/plugin/build-in/Legend.zh.md Updated documentation for the Legend plugin, including a detailed overview, usage scenarios, configuration options, and code examples.

type: 'contextmenu',
trigger: 'contextmenu', // 'click' or 'contextmenu'
onClick: (value, target, current) => {
alert('You have clicked the「' + v + '」item');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a potential issue here: the variable v is used in the alert message, but it seems like it should be value. This will cause a runtime error as v is not defined.


刷新图例元素状态
## 实际案例
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上下文菜单这里没想到什么比较合适的常见问题,有什么比较合适的我加一加

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

等用户反馈再加

@q32757468 q32757468 merged commit 807d770 into v5 Mar 17, 2025
1 check passed
@q32757468 q32757468 deleted the hsl-g6-docs branch March 17, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants