优化组件/更新
This commit is contained in:
12
uni_modules/kux-dayjs/common/utils.uts
Normal file
12
uni_modules/kux-dayjs/common/utils.uts
Normal file
@@ -0,0 +1,12 @@
|
||||
// #ifdef APP-ANDROID
|
||||
import MathFloor from 'kotlin.math.floor';
|
||||
// #endif
|
||||
|
||||
export const floor = (value: number): number => {
|
||||
// #ifndef APP-ANDROID
|
||||
return Math.floor(value);
|
||||
// #endif
|
||||
// #ifdef APP-ANDROID
|
||||
return Number.from(MathFloor(value.toDouble()));
|
||||
// #endif
|
||||
}
|
||||
Reference in New Issue
Block a user