Browse Source

无JIRA任务 simple加推荐色接口

es6
windy 3 years ago
parent
commit
03beffe1a6
  1. 1
      src/case/colorchooser/colorchooser.popup.hex.simple.js
  2. 3
      src/case/colorchooser/colorchooser.simple.js

1
src/case/colorchooser/colorchooser.popup.hex.simple.js

@ -13,6 +13,7 @@ BI.SimpleHexColorChooserPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.hex_color_chooser_popup", type: "bi.hex_color_chooser_popup",
recommendColorsGetter: o.recommendColorsGetter,
value: o.value, value: o.value,
simple: true, // 是否有自动 simple: true, // 是否有自动
listeners: [{ listeners: [{

3
src/case/colorchooser/colorchooser.simple.js

@ -26,7 +26,8 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, {
width: o.width, width: o.width,
height: o.height, height: o.height,
popup: { 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 () { this.combo.on(BI.ColorChooser.EVENT_CHANGE, function () {

Loading…
Cancel
Save