mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Add custom classes support to CSSTransitionGroup
This commit is contained in:
1 parent
813f3b03db
commit
bb72880cd3
2 files changed
+22
-1
No files matched your search
+11
-1
@@ -7,8 +7,18 @@
|
||||
/// <reference path="react-addons-transition-group.d.ts" />
|
||||
|
||||
declare namespace __React {
|
||||
|
||||
interface CSSTransitionGroupTransitionName {
|
||||
enter: string;
|
||||
enterActive?: string;
|
||||
leave: string;
|
||||
leaveActive?: string;
|
||||
appear?: string;
|
||||
appearActive?: string;
|
||||
}
|
||||
|
||||
interface CSSTransitionGroupProps extends TransitionGroupProps {
|
||||
transitionName: string;
|
||||
transitionName: string | CSSTransitionGroupTransitionName;
|
||||
transitionAppear?: boolean;
|
||||
transitionEnter?: boolean;
|
||||
transitionLeave?: boolean;
|
||||
|
||||
@@ -462,6 +462,17 @@ React.createFactory(CSSTransitionGroup)({
|
||||
transitionLeave: true
|
||||
});
|
||||
|
||||
React.createFactory(CSSTransitionGroup)({
|
||||
transitionName: {
|
||||
enter: "enter",
|
||||
enterActive: "enterActive",
|
||||
leave: "leave",
|
||||
leaveActive: "leaveActive",
|
||||
appear: "appear",
|
||||
appearActive: "appearActive"
|
||||
}
|
||||
});
|
||||
|
||||
//
|
||||
// LinkedStateMixin addon
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user