Skip to content

Commit 3b36f55

Browse files
author
zhanbo.lh
committed
feat: 增加 xflow
1 parent 7c0beb1 commit 3b36f55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+196
-2577
lines changed

packages/x-flow/package.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
"name": "@xrenders/xflow",
33
"version": "0.0.1",
4-
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
4+
"description": "一款功能强大、易用灵活的流程编辑器框架,帮助你轻松构建复杂的工作流和流程产品",
55
"keywords": [
6-
"Form",
7-
"FormRender",
8-
"Render",
9-
"XRender",
10-
"React",
11-
"Json Schema",
12-
"Ant Design"
6+
"xflow"
137
],
14-
"homepage": "https://xrender.fun/form-render",
8+
"homepage": "https://xrender.fun/xflow",
159
"bugs": {
1610
"url": "https://github.com/alibaba/x-render/issues"
1711
},
@@ -52,13 +46,9 @@
5246
},
5347
"dependencies": {
5448
"@ant-design/icons": "^4.0.2",
55-
"async-validator": "^3.5.1",
5649
"classnames": "^2.3.1",
57-
"color": "^3.1.2",
5850
"lodash-es": "^4.17.21",
5951
"dayjs": "^1.11.7",
60-
"rc-color-picker": "^1.2.6",
61-
"virtualizedtableforantd4": "^1.1.2",
6252
"ahooks": "^3.7.5",
6353
"zustand": "^4.5.4",
6454
"@xyflow/react": "^12.3.2",

packages/x-flow/src/components/CandidateNode/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useShallow } from 'zustand/react/shallow';
55
import { useReactFlow, useViewport } from '@xyflow/react';
66
import { useEventListener } from 'ahooks';
77
import CustomNode from '../CustomNode';
8-
import useStore from '../../core/store';
8+
import useStore from '../../models/store';
99

1010
const CandidateNode = () => {
1111
const reactflow = useReactFlow();

packages/x-flow/src/components/CustomEdge/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { PlusOutlined, CloseOutlined } from '@ant-design/icons';
33
import { BezierEdge, EdgeLabelRenderer, getBezierPath, useReactFlow } from '@xyflow/react';
44
import { useShallow } from 'zustand/react/shallow';
55
import produce from 'immer';
6-
import { uuid } from '../../core/utils';
7-
import useStore from '../../core/store';
6+
import { uuid } from '../../utils';
7+
import useStore from '../../models/store';
88
import NodeSelectPopover from '../NodeSelectPopover';
99
import './index.less';
1010

packages/x-flow/src/components/CustomNode/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import classNames from 'classnames';
55
import produce from 'immer';
66
import { useShallow } from 'zustand/react/shallow';
77
import { Handle, Position, useReactFlow } from '@xyflow/react';
8-
import useStore from '../../core/store';
9-
import { capitalize, uuid } from '../../core/utils';
8+
import useStore from '../../models/store';
9+
import { capitalize, uuid } from '../../utils';
1010
import { ConfigContext } from '../../models/context';
1111
import NodeSelectPopover from '../NodeSelectPopover';
1212
import './index.less';

packages/x-flow/src/components/FlowDebugDrawer/index.less

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)