Browse Source

fix: resolve circular dependency

master
SmallStoneSK 3 years ago
parent
commit
4b843a9539
  1. 2
      packages/core/package.json
  2. 7
      packages/core/src/components/codeRun/index.tsx
  3. 6
      packages/core/src/mods/layout/index.tsx

2
packages/core/package.json

@ -48,7 +48,7 @@
"query-string": "^6.13.7", "query-string": "^6.13.7",
"react-color": "^2.18.1", "react-color": "^2.18.1",
"react-json-view": "^1.19.1", "react-json-view": "^1.19.1",
"react-split-pane": "^2.0.3" "react-split-pane-v2": "^1.0.3"
}, },
"devDependencies": { "devDependencies": {
"@types/lodash.merge": "^4.6.6", "@types/lodash.merge": "^4.6.6",

7
packages/core/src/components/codeRun/index.tsx

@ -11,12 +11,9 @@ import { executeScript } from '../../utils';
import { PlayCircleFilled, LoadingOutlined } from '@ant-design/icons'; import { PlayCircleFilled, LoadingOutlined } from '@ant-design/icons';
import { compileForOnline } from '@imove/compile-code'; import { compileForOnline } from '@imove/compile-code';
import { toSelectedCellsJSON } from '../../utils/flowChartUtils'; import { toSelectedCellsJSON } from '../../utils/flowChartUtils';
import SplitPane from 'react-split-pane-v2';
// FIXME: https://github.com/tomkp/react-split-pane/issues/541 const Pane = SplitPane.Pane;
// @ts-ignore
import SplitPane from 'react-split-pane/lib/SplitPane';
// @ts-ignore
import Pane from 'react-split-pane/lib/Pane';
const defaultInput = { const defaultInput = {
pipe: {}, pipe: {},

6
packages/core/src/mods/layout/index.tsx

@ -3,11 +3,9 @@ import React from 'react';
import styles from './index.module.less'; import styles from './index.module.less';
import { Graph } from '@antv/x6'; import { Graph } from '@antv/x6';
import SplitPane from 'react-split-pane-v2';
// @ts-ignore const Pane = SplitPane.Pane;
import SplitPane from 'react-split-pane/lib/SplitPane';
// @ts-ignore
import Pane from 'react-split-pane/lib/Pane';
interface ISubComponentProps { interface ISubComponentProps {
flowChart: Graph; flowChart: Graph;

Loading…
Cancel
Save