mirror of https://github.com/layui/layui
Bug Fixes
parent
d75470cbb6
commit
f4a79c8431
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -421,6 +421,12 @@
|
|||
|
||||
if(isNum.test(v1)) v1 = parseFloat(v1);
|
||||
if(isNum.test(v2)) v2 = parseFloat(v2);
|
||||
|
||||
if(v1 && !v2){
|
||||
return 1;
|
||||
} else if(!v1 && v2){
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(v1 > v2){
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue