mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
chore: remove isNaN util, re-organize validate utils (#8473)
This commit is contained in:
@@ -9,10 +9,10 @@ import {
|
||||
} from 'vue';
|
||||
|
||||
// Utils
|
||||
import { isDate } from '../utils/validate/date';
|
||||
import {
|
||||
pick,
|
||||
range,
|
||||
isDate,
|
||||
padZero,
|
||||
createNamespace,
|
||||
ComponentInstance,
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import { PropType } from 'vue';
|
||||
import { isNaN } from '../utils/validate/number';
|
||||
import { pickerProps } from '../picker/Picker';
|
||||
|
||||
export type ColumnType = 'year' | 'month' | 'day' | 'hour' | 'minute';
|
||||
@@ -42,7 +41,7 @@ export function getTrueValue(value: string | undefined): number {
|
||||
return 0;
|
||||
}
|
||||
|
||||
while (isNaN(parseInt(value, 10))) {
|
||||
while (Number.isNaN(parseInt(value, 10))) {
|
||||
if (value.length > 1) {
|
||||
value = value.slice(1);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user