diff --git a/src/case/colorchooser/colorchooser.popup.hex.simple.js b/src/case/colorchooser/colorchooser.popup.hex.simple.js index 208bf9f4b..628ad6f02 100644 --- a/src/case/colorchooser/colorchooser.popup.hex.simple.js +++ b/src/case/colorchooser/colorchooser.popup.hex.simple.js @@ -13,6 +13,7 @@ BI.SimpleHexColorChooserPopup = BI.inherit(BI.Widget, { var self = this, o = this.options; return { type: "bi.hex_color_chooser_popup", + recommendColorsGetter: o.recommendColorsGetter, value: o.value, simple: true, // 是否有自动 listeners: [{ diff --git a/src/case/colorchooser/colorchooser.simple.js b/src/case/colorchooser/colorchooser.simple.js index ee9484c78..ac12bd426 100644 --- a/src/case/colorchooser/colorchooser.simple.js +++ b/src/case/colorchooser/colorchooser.simple.js @@ -26,7 +26,8 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, { width: o.width, height: o.height, popup: { - type: "bi.simple_hex_color_chooser_popup" + type: "bi.simple_hex_color_chooser_popup", + recommendColorsGetter: o.recommendColorsGetter, } }); this.combo.on(BI.ColorChooser.EVENT_CHANGE, function () {