Bug Fixes

pull/51/merge
sentsin 2017-08-31 01:14:58 +08:00
parent d75470cbb6
commit f4a79c8431
3 changed files with 8 additions and 2 deletions

2
dist/layui.all.js vendored

File diff suppressed because one or more lines are too long

2
dist/layui.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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;