mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
bugfix: 修复sku组件留言点击错位问题 (#2722)
This commit is contained in:
@@ -36,6 +36,11 @@ export function isAndroid(): boolean {
|
||||
return isServer ? false : /android/.test(navigator.userAgent.toLowerCase());
|
||||
}
|
||||
|
||||
export function isIOS(): boolean {
|
||||
/* istanbul ignore next */
|
||||
return isServer ? false : /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
|
||||
}
|
||||
|
||||
export function range(num: number, min: number, max: number): number {
|
||||
return Math.min(Math.max(num, min), max);
|
||||
}
|
||||
|
Reference in New Issue
Block a user