This repository was archived by the owner on Jun 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
ios/sdk/WeexSDK/Sources/Module Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,10 @@ - (void)transitionWithArgs:(NSDictionary *)args withProperty:(NSString *)propert
332
332
transition : (WXTransition*)transition
333
333
transitionDic : (NSMutableDictionary *)transitionDic
334
334
{
335
+ if (args[@" styles" ][property] == nil ) {
336
+ return ;
337
+ }
338
+
335
339
[transition.filterStyles setObject: args[@" styles" ][property] forKey: property];
336
340
337
341
id oldStyleValue = target.styles [property];
@@ -346,7 +350,7 @@ - (void)transitionWithArgs:(NSDictionary *)args withProperty:(NSString *)propert
346
350
[target _modifyStyles: @{property:args[@" styles" ][property]}];
347
351
[transitionDic setObject: @([args[@" duration" ] doubleValue ]) forKey: kWXTransitionDuration ];
348
352
[transitionDic setObject: @([args[@" delay" ] doubleValue ]) forKey: kWXTransitionDelay ];
349
- [transitionDic setObject: args[@" timingFunction" ] forKey: kWXTransitionTimingFunction ];
353
+ [transitionDic setObject: args[@" timingFunction" ] ?: @" linear " forKey: kWXTransitionTimingFunction ];
350
354
}
351
355
352
356
- (void )animation : (WXComponent *)targetComponent args : (NSDictionary *)args callback : (WXModuleKeepAliveCallback)callback
You can’t perform that action at this time.
0 commit comments