Browse Source

BI-102974 fix: 直接去色轮点选值报错

es6
windy 2 years ago
parent
commit
c1e14c7750
  1. 5
      src/case/colorchooser/farbtastic/farbtastic.js

5
src/case/colorchooser/farbtastic/farbtastic.js

@ -16,6 +16,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
render: function () {
var self = this;
this._defaultState();
return {
type: "bi.absolute",
items: [{
@ -87,6 +88,10 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
}
},
_defaultState: function () {
this.hsl = [0, 0, 0];
},
_unpack: function (color) {
if (color.length === 7) {
return [parseInt("0x" + color.substring(1, 3)) / 255,

Loading…
Cancel
Save