mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[improvement] Tab: support string type of line-width & line-height (#3514)
This commit is contained in:
@@ -93,6 +93,8 @@ test('is-mobile', () => {
|
||||
|
||||
test('is-number', () => {
|
||||
expect(isNumber('1')).toBeTruthy();
|
||||
expect(isNumber('1.2')).toBeTruthy();
|
||||
expect(isNumber('1..2')).toBeFalsy();
|
||||
expect(isNumber('abc')).toBeFalsy();
|
||||
expect(isNumber('1b2')).toBeFalsy();
|
||||
});
|
||||
|
Reference in New Issue
Block a user