Skip to content

feat: designer model add defaultActiveSidebarPanel#51

Merged
wwsun merged 3 commits into
NetEase:mainfrom
BoBoooooo:feat/core-addcomponenttype
Oct 31, 2023
Merged

feat: designer model add defaultActiveSidebarPanel#51
wwsun merged 3 commits into
NetEase:mainfrom
BoBoooooo:feat/core-addcomponenttype

Conversation

@BoBoooooo

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

@wwsun

wwsun commented Oct 31, 2023

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
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.

2 participants