commit
fbd8b9ed5f
2
dist/layui.js
vendored
2
dist/layui.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "layui",
|
||||
"version": "2.8.0-rc.7",
|
||||
"version": "2.8.0-rc.8",
|
||||
"description": "Classic modular Front-End UI library",
|
||||
"main": "dist/layui.js",
|
||||
"license": "MIT",
|
||||
|
@ -15,7 +15,7 @@
|
||||
}
|
||||
|
||||
,Layui = function(){
|
||||
this.v = '2.8.0-rc.7'; // Layui 版本号
|
||||
this.v = '2.8.0-rc.8'; // Layui 版本号
|
||||
}
|
||||
|
||||
//识别预先可能定义的指定全局对象
|
||||
|
@ -59,9 +59,9 @@ layui.define(['jquery', 'lay'], function(exports){
|
||||
hsb.b = max;
|
||||
hsb.s = max !== 0 ? 255*delta/max : 0;
|
||||
if(hsb.s !== 0){
|
||||
if(rgb.r === max){
|
||||
if(rgb.r == max){ // 因 rgb 中返回的数字为 string 类型
|
||||
hsb.h = (rgb.g - rgb.b) / delta;
|
||||
}else if(rgb.g === max){
|
||||
}else if(rgb.g == max){
|
||||
hsb.h = 2 + (rgb.b - rgb.r) / delta;
|
||||
}else{
|
||||
hsb.h = 4 + (rgb.r - rgb.g) / delta;
|
||||
|
Loading…
Reference in New Issue
Block a user