mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[improvement] Tab: support string type of line-width & line-height (#3514)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export function isNumber(value: string): boolean {
|
||||
return /^\d+$/.test(value);
|
||||
return /^\d+(\.\d+)?$/.test(value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user