Skip to content

Commit

Permalink
Merge pull request #22 from zsjjs/v1.1.2
Browse files Browse the repository at this point in the history
V1.1.2
  • Loading branch information
shaojun427 authored Apr 23, 2020
2 parents c5dbd67 + 8f81849 commit b5d74df
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-field-mapping",
"version": "1.1.1",
"version": "1.1.2",
"description": "基于react的表字段映射组件",
"scripts": {
"check": "jsinspect ./src",
Expand Down Expand Up @@ -32,46 +32,46 @@
"LICENSE"
],
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-do-expressions": "^7.6.0",
"@babel/plugin-proposal-export-default-from": "^7.5.2",
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/plugin-proposal-pipeline-operator": "^7.5.0",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.6.0",
"@types/react": "^16.9.32",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-do-expressions": "^7.8.3",
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/plugin-proposal-logical-assignment-operators": "^7.8.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-proposal-pipeline-operator": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/polyfill": "^7.8.7",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/runtime": "^7.9.2",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"eslint": "^6.4.0",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"eslint": "^6.8.0",
"eslint-loader": "^4.0.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react": "^7.19.0",
"fork-ts-checker-webpack-plugin": "^4.1.3",
"jsinspect": "^0.12.7",
"less": "^3.10.3",
"webpack-dev-server": "^3.8.1"
"less": "^3.11.1",
"webpack-dev-server": "^3.10.3"
},
"dependencies": {
"cross-env": "^6.0.0",
"css-loader": "^3.2.0",
"cross-env": "^6.0.3",
"css-loader": "^3.5.2",
"less-loader": "^5.0.0",
"lodash": "^4.17.15",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"sortablejs": "^1.7.0",
"style-loader": "^1.0.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"sortablejs": "^1.10.2",
"style-loader": "^1.1.4",
"ts-loader": "^6.2.2",
"typescript": "^3.8.3",
"url-loader": "^2.1.0",
"webpack": "^4.40.2",
"webpack-cli": "^3.3.9"
"url-loader": "^2.3.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
}
}
2 changes: 1 addition & 1 deletion src/drawLines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class DrawLines extends React.Component<DrawLinesProps, DrawLinesState> {
return n === item;
});
relation.push(item);
this.props.onChange(relation);
this.props.onChange(relation, false);
}
render(): React.ReactElement {
const { startX, startY, drawing, endX, endY } = this.state;
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface DrawLinesProps {
relation: OneRelation[];
edit: boolean;
currentRelation: OneRelation;
onChange?: (relation?: OneRelation[]) => void;
onChange?: (relation?: OneRelation[], isUpdate?: boolean) => void;
changeIconStatus: (data?: OneRelation) => void;
closeIcon: string;
}
Expand Down

0 comments on commit b5d74df

Please sign in to comment.