Bug Fixes
This commit is contained in:
parent
d75470cbb6
commit
f4a79c8431
2
dist/layui.all.js
vendored
2
dist/layui.all.js
vendored
File diff suppressed because one or more lines are too long
2
dist/layui.js
vendored
2
dist/layui.js
vendored
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(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;
|
||||||
|
Loading…
Reference in New Issue
Block a user