mirror of https://github.com/layui/layui
commit
fbd8b9ed5f
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "layui",
|
"name": "layui",
|
||||||
"version": "2.8.0-rc.7",
|
"version": "2.8.0-rc.8",
|
||||||
"description": "Classic modular Front-End UI library",
|
"description": "Classic modular Front-End UI library",
|
||||||
"main": "dist/layui.js",
|
"main": "dist/layui.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
,Layui = function(){
|
,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.b = max;
|
||||||
hsb.s = max !== 0 ? 255*delta/max : 0;
|
hsb.s = max !== 0 ? 255*delta/max : 0;
|
||||||
if(hsb.s !== 0){
|
if(hsb.s !== 0){
|
||||||
if(rgb.r === max){
|
if(rgb.r == max){ // 因 rgb 中返回的数字为 string 类型
|
||||||
hsb.h = (rgb.g - rgb.b) / delta;
|
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;
|
hsb.h = 2 + (rgb.b - rgb.r) / delta;
|
||||||
}else{
|
}else{
|
||||||
hsb.h = 4 + (rgb.r - rgb.g) / delta;
|
hsb.h = 4 + (rgb.r - rgb.g) / delta;
|
||||||
|
|
Loading…
Reference in New Issue