优化组件/更新

This commit is contained in:
gyq
2025-12-03 10:13:55 +08:00
parent 92f9776a35
commit 09b6e36a52
261 changed files with 22080 additions and 7238 deletions

View 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
}