fix(colorpicker): 修复颜色值错误 (#2401)

#1863
pull/2426/head
morning-star 2024-12-20 16:10:45 +08:00 committed by GitHub
parent 1e2f70aa50
commit 7e207aa0a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -405,8 +405,8 @@ layui.define(['jquery', 'lay'], function(exports){
,alphaslider = that.elemPicker.find('.' + PICKER_ALPHA_SLIDER)
,_h = slider[0].offsetTop/180*360
,_b = 100 - (choose[0].offsetTop + 3)/180*100
,_s = (choose[0].offsetLeft + 3)/260*100
,_b = 100 - (choose[0].offsetTop)/180*100
,_s = (choose[0].offsetLeft)/260*100
,_a = Math.round(alphaslider[0].offsetLeft/280*100)/100
,i = that.elemColorBox.find('.' + PICKER_TRIG_I)