Merge pull request #1202 from layui/2.x

release v2.8.0-rc.8
This commit is contained in:
贤心 2023-02-14 00:48:46 +08:00 committed by GitHub
commit fbd8b9ed5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

2
dist/layui.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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",

View File

@ -15,7 +15,7 @@
}
,Layui = function(){
this.v = '2.8.0-rc.7'; // Layui 版本号
this.v = '2.8.0-rc.8'; // Layui 版本号
}
//识别预先可能定义的指定全局对象

View File

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