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
|
@ -422,6 +422,12 @@
|
||||||
if(isNum.test(v1)) v1 = parseFloat(v1);
|
if(isNum.test(v1)) v1 = parseFloat(v1);
|
||||||
if(isNum.test(v2)) v2 = parseFloat(v2);
|
if(isNum.test(v2)) v2 = parseFloat(v2);
|
||||||
|
|
||||||
|
if(v1 && !v2){
|
||||||
|
return 1;
|
||||||
|
} else if(!v1 && v2){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if(v1 > v2){
|
if(v1 > v2){
|
||||||
return 1;
|
return 1;
|
||||||
} else if (v1 < v2) {
|
} else if (v1 < v2) {
|
||||||
|
|
Loading…
Reference in New Issue