-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(site): 官网example重构 #1694
feat(site): 官网example重构 #1694
Conversation
|
@@ -74,7 +74,7 @@ export default function DndPanelExtension() { | |||
type: 'start', | |||
text: '开始', | |||
label: '开始节点', | |||
icon: 'https://cdn.jsdelivr.net/gh/Logic-Flow/static@latest/core/start.png', // TODO: 设置图片在节点上合理展示 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
撤回
type: 'start', | ||
text: '开始', | ||
label: '开始节点', | ||
icon: 'https://cdn.jsdelivr.net/gh/Logic-Flow/static@latest/docs/examples/case/bussiness/approve/circle.png', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还原
(window as any).Extension = require('@logicflow/extension').default; | ||
// ;(window as any).x6ReactShape = require('@logicflow/react-node-registry') | ||
(window as any).Extension = require('@logicflow/extension'); | ||
(window as any).BaseNode = require('@logicflow/core').BaseNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO; 后续提取一下
const LogicFlow = require('@logicflow/core')
BaseNode = LogicFlow.BaseNode
这样
No description provided.