Skip to content

Commit

Permalink
feat: 迭代开发
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Jan 15, 2025
2 parents 1d1d3e1 + b173123 commit 3c1ab3e
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 23 deletions.
8 changes: 4 additions & 4 deletions docs/xflow/FlowProvider.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
order: 3
order: 4
title: '<FlowProvider/>'
mobile: false
group:
title: 最佳展示
order: 4
group:
title: 高级用法
order: 1
---

## 基础交互
Expand Down
7 changes: 5 additions & 2 deletions docs/xflow/api.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
order: 1
toc: content
title: API
title: 'API'
mobile: false
group:
title: 'API'
order: 3
---
# API

Expand Down
6 changes: 3 additions & 3 deletions docs/xflow/custom-node-setting.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
order: 2
toc: content
order: 3
title: '节点配置面板'
mobile: false
group:
title: 最佳展示
title: 高级用法
order: 1
---

Expand Down
4 changes: 2 additions & 2 deletions docs/xflow/custom-node-view.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
order: 2
toc: content
title: '节点内容展示'
mobile: false
group:
title: 最佳展示
title: 高级用法
order: 1
---

Expand Down
4 changes: 2 additions & 2 deletions docs/xflow/layout.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
order: 5
order: 6
title: '画布布局'
mobile: false
group:
title: 最佳展示
title: 高级用法
order: 1
---
# 布局方向
Expand Down
6 changes: 3 additions & 3 deletions docs/xflow/log.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
order: 5
title: '节点日志和状态'
order: 7
title: '节点日志和节点状态'
mobile: false
group:
title: 最佳展示
title: 高级用法
order: 1
---
# 节点日志和节点状态
Expand Down
6 changes: 3 additions & 3 deletions docs/xflow/nodeBuildIn.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
order: 4
order: 5
title: '内置节点'
mobile: false
group:
title: 最佳展示
order:
title: 高级用法
order: 1
---
# 内置节点

Expand Down
2 changes: 1 addition & 1 deletion docs/xflow/nodeSetting.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ order: 1
title: '节点菜单配置'
mobile: false
group:
title: 最佳展示
title: '高级用法'
order: 1
---
# 节点配置
Expand Down
2 changes: 1 addition & 1 deletion packages/x-flow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xrenders/xflow",
"version": "1.0.3-beta.6",
"version": "1.0.3-beta.9",
"description": "一款功能强大、易用灵活的流程编辑器框架,帮助你轻松构建复杂的工作流和流程产品",
"keywords": [
"xflow"
Expand Down
2 changes: 1 addition & 1 deletion packages/x-flow/src/nodes/node-switch/setting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default memo((props: INodeSwitchSettingPorps) => {
watch={watch}
size={'small'}
className="custom-node-switch-setting"
readOnly={props.readOnly}
disabled={props.readOnly}
/>
);
});
3 changes: 2 additions & 1 deletion packages/x-flow/src/operator/UndoRedo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export default memo(({ handleUndo, handleRedo, pastStates, futureStates }: UndoR
const { readOnly } = useContext(ConfigContext);

if (readOnly) {
return;
return null;
}

return (
<div className='fai-reactflow-undoredo'>
<Tooltip title='撤销' getPopupContainer={() => document.getElementById('xflow-container') as HTMLElement}>
Expand Down

0 comments on commit 3c1ab3e

Please sign in to comment.