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

feat: designer model add defaultActiveSidebarPanel #51

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

BoBoooooo
Copy link
Contributor

  • 组件添加支持 点击/拖拽两种形式 (默认为拖拽)
  • 支持配置默认展开的侧边栏
const engine = createEngine({
  workspace,
  defaultActiveSidebarPanel: 'components', // components or outline or other sidebarpanel key ...
  defaultAddComponentType: 'click'  // click or drag
});

@wwsun
Copy link
Contributor

wwsun commented Oct 31, 2023

这个逻辑不建议放在外网版本里,直接内置在内网版本里,而且也不需要一个全局的 defaultAddComponentType 状态来控制,直接在物料面板里内置这个逻辑,通过属性的方式控制即可

@BoBoooooo BoBoooooo changed the title feat: add component support click mode & defaultActiveSidebarPanel feat: designer model add defaultActiveSidebarPanel Oct 31, 2023
@BoBoooooo
Copy link
Contributor Author

这个逻辑不建议放在外网版本里,直接内置在内网版本里,而且也不需要一个全局的 defaultAddComponentType 状态来控制,直接在物料面板里内置这个逻辑,通过属性的方式控制即可

done

@wwsun wwsun merged commit 9dd11f7 into NetEase:main Oct 31, 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.

None yet

2 participants