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(site): 官网example重构 #1694

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Conversation

FanSun521
Copy link
Collaborator

No description provided.

Copy link

changeset-bot bot commented Jul 23, 2024

⚠️ No Changeset found

Latest commit: 0095f01

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@@ -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: 设置图片在节点上合理展示
Copy link
Collaborator

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',
Copy link
Collaborator

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;
Copy link
Collaborator

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

这样

@boyongjiong boyongjiong merged commit f432030 into docs/dumi-theme-setup Jul 23, 2024
1 check passed
@boyongjiong boyongjiong deleted the site/example branch July 23, 2024 04:59
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