fix(Transition): fix validate duration (#1188)
This commit is contained in:
@@ -125,3 +125,8 @@ export const def = (obj: object, key: string | symbol, value: any) => {
|
||||
value
|
||||
})
|
||||
}
|
||||
|
||||
export const toNumber = (val: any): any => {
|
||||
const n = parseFloat(val)
|
||||
return isNaN(n) ? val : n
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user