Skip to content

Commit

Permalink
perf(components/transition): 移除 running 生命周期
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxinssfd committed Aug 22, 2023
1 parent 985fac9 commit 0576899
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/components/src/transition/transition.enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export enum LIFE_CIRCLE {
ready,
before,
run,
running,
start,
after,
cancel,
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/transition/transition.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,13 @@ export function transitionCBAdapter(
| 'onEnterReady'
| 'onBeforeEnter'
| 'onEnterRun'
| 'onEnterRunning'
| 'onEnterStart'
| 'onAfterEnter'
| 'onEnterCancel'
// ---- leave ----
| 'onLeaveReady'
| 'onBeforeLeave'
| 'onLeaveRun'
| 'onLeaveRunning'
| 'onLeaveStart'
| 'onAfterLeave'
| 'onLeaveCancel'
Expand Down Expand Up @@ -128,7 +126,6 @@ export function transitionCBAdapter(
[LIFE_CIRCLE.ready]: cbs.onEnterReady,
[LIFE_CIRCLE.before]: cbs.onBeforeEnter,
[LIFE_CIRCLE.run]: cbs.onEnterRun,
[LIFE_CIRCLE.running]: cbs.onEnterRunning,
[LIFE_CIRCLE.start]: cbs.onEnterStart,
[LIFE_CIRCLE.after]: cbs.onAfterEnter,
[LIFE_CIRCLE.cancel]: cbs.onEnterCancel,
Expand All @@ -140,7 +137,6 @@ export function transitionCBAdapter(
[LIFE_CIRCLE.ready]: cbs.onLeaveReady,
[LIFE_CIRCLE.before]: cbs.onBeforeLeave,
[LIFE_CIRCLE.run]: cbs.onLeaveRun,
[LIFE_CIRCLE.running]: cbs.onLeaveRunning,
[LIFE_CIRCLE.start]: cbs.onLeaveStart,
[LIFE_CIRCLE.after]: cbs.onAfterLeave,
[LIFE_CIRCLE.cancel]: cbs.onLeaveCancel,
Expand Down

0 comments on commit 0576899

Please sign in to comment.