Skip to content

Commit

Permalink
fix(constants.js): Rename event onBeforeItemUnactived to onBeforeItem…
Browse files Browse the repository at this point in the history
…Inactivated as unactived is not
  • Loading branch information
tennisonchan committed Aug 29, 2018
1 parent a0b9ae3 commit 9a15675
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/api/pageEvents.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ import GGEditor, { Flow } from 'gg-editor';
| onAfterViewportChange | This event is fired after the `onViewportChange` event. |
| onBeforeItemActived | This event is fired before the item is activated. |
| onAfterItemActived | This event is fired after the item is activated. |
| onBeforeItemUnactived | This event is fired before the item is inactivated. |
| onAfterItemUnactived | This event is fired after the item is inactivated. |
| onBeforeItemInactivated | This event is fired before the item is inactivated. |
| onAfterItemInactivated | This event is fired after the item is inactivated. |
| onBeforeItemSelected | This event is fired before the item is selected. |
| onAfterItemSelected | This event is fired after the item is selected. |
| onBeforeItemUnselected | This event is fired before the item is unselected.
Expand Down
4 changes: 2 additions & 2 deletions docs/api/pageEvents.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ import GGEditor, { Flow } from 'gg-editor';
| onAfterViewportChange | 视口变化后 |
| onBeforeItemActived | 激活前 |
| onAfterItemActived | 激活后 |
| onBeforeItemUnactived | 取消激活前 |
| onAfterItemUnactived | 取消激活后 |
| onBeforeItemInactivated | 取消激活前 |
| onAfterItemInactivated | 取消激活后 |
| onBeforeItemSelected | 选中前 |
| onAfterItemSelected | 选中后 |
| onBeforeItemUnselected | 取消选中前 |
Expand Down
6 changes: 4 additions & 2 deletions src/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ export const GRAPH_OTHER_REACT_EVENTS = {

export const PAGE_REACT_EVENTS = {
afteritemactived: 'onAfterItemActived',
afteriteminactivated: 'onAfterItemInactivated',
afteritemselected: 'onAfterItemSelected',
afteritemunactived: 'onAfterItemUnactived',
afteritemunactived: 'onAfterItemInactivated',
afteritemunselected: 'onAfterItemUnselected',
beforeitemactived: 'onBeforeItemActived',
beforeiteminactivated: 'onBeforeItemInactivated',
beforeitemselected: 'onBeforeItemSelected',
beforeitemunactived: 'onBeforeItemUnactived',
beforeitemunactived: 'onBeforeItemInactivated',
beforeitemunselected: 'onBeforeItemUnselected',
keyupeditlabel: 'onKeyUpEditLabel',
};
Expand Down

0 comments on commit 9a15675

Please sign in to comment.