Skip to content

Commit

Permalink
fix:fix Hoverable props
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Feb 10, 2021
1 parent 753cda3 commit 864abb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/graphin/src/behaviors/Hoverable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface HoverableProps {
bindType: 'node' | 'edge';
}

const hoverable: React.FunctionComponent<HoverableProps> = props => {
const Hoverable: React.FunctionComponent<HoverableProps> = props => {
const graphin = React.useContext(GraphinContext);
const { bindType = 'node' } = props;
React.useEffect(() => {
Expand Down Expand Up @@ -53,4 +53,4 @@ const hoverable: React.FunctionComponent<HoverableProps> = props => {
return null;
};

export default hoverable;
export default Hoverable;
7 changes: 5 additions & 2 deletions packages/graphin/src/behaviors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import FitView from './FitView';
import FontPaint from './FontPaint';

export default {
TreeCollapse,
/** 内置 */
DragCanvas,
ZoomCanvas,
ClickSelect,
Expand All @@ -22,8 +22,11 @@ export default {
ResizeCanvas,
LassoSelect,
DragCombo,
ActivateRelations,
Hoverable,

/** 可选 */
ActivateRelations,
TreeCollapse,
FitView,
FontPaint,
};

0 comments on commit 864abb9

Please sign in to comment.