Browse Source

chore: remove useless dependencies

master
smallstonesk 4 years ago
parent
commit
935e47029d
  1. 8
      example/package.json
  2. 9
      example/src/pages/index.tsx

8
example/package.json

@ -20,18 +20,10 @@
] ]
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "^4.2.2",
"@antv/x6": "^0.4.8",
"@antv/x6-react-shape": "^0.2.2",
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"@imove/core": "^0.3.0", "@imove/core": "^0.3.0",
"@imove/json-schema-editor": "^0.3.2",
"@umijs/preset-react": "1.x", "@umijs/preset-react": "1.x",
"@umijs/test": "^3.2.2", "@umijs/test": "^3.2.2",
"antd": "^4.4.3", "antd": "^4.4.3",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-runtime": "^6.26.0",
"lint-staged": "^10.0.7", "lint-staged": "^10.0.7",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"react": "^16.13.1", "react": "^16.13.1",

9
example/src/pages/index.tsx

@ -1,20 +1,15 @@
import * as React from 'react'; import * as React from 'react';
import IMove from '@imove/core'; import IMove from '@imove/core';
import styled from '@emotion/styled';
const onSave = (data: { nodes: any; edges: any }): void => { const onSave = (data: { nodes: any; edges: any }): void => {
console.log(data); console.log(data);
}; };
const Wrapper = styled.div`
height: 100vh;
`;
function Arrange(): JSX.Element { function Arrange(): JSX.Element {
return ( return (
<Wrapper> <div style={{height: '100vh'}}>
<IMove onSave={onSave}/> <IMove onSave={onSave}/>
</Wrapper> </div>
); );
} }

Loading…
Cancel
Save