Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: outline-panel tree expand bug & add props #52

Merged
merged 4 commits into from
Nov 2, 2023
Merged

fix: outline-panel tree expand bug & add props #52

merged 4 commits into from
Nov 2, 2023

Conversation

BoBoooooo
Copy link
Contributor

fix:

  • 修复点击展开/折叠node 失效bug

feat: 状态树 components-tree

  • 支持传入actionItems 声明dropdown功能按钮区域
  • 新增 showToggleVisibleIcon 控制是否显示 👁 按钮
  • 新增状态树节点点击回调事件 onPageNodeSelect
  • 优化隐藏"页面状态"区域时 页面结构面板UI显示

feat: CollapsePanel

  • 新增 showBottomBorder 属性控制是否显示 下边框border (默认显示)
 <Sidebar.Item key="outline" label="结构" icon={<BuildOutlined />} 
	widgetProps={{
	  showStateView: false,
	  showToggleVisibleIcon: false,
	  actionItems: [
	    {
	      key: 'copy',
	      item: <Text onClick={() => workspace.cloneSelectedNode()}>复制</Text>
	    }
	  ],
	  onPageNodeSelect: (nodeKey: string) => {
	    console.log('onPageNodeSelect', nodeKey);
	  }
	}} 
/>

<CollapsePanel showBottomBorder={false}  />

image

@wwsun wwsun merged commit b29e235 into NetEase:main Nov 2, 2023
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