Browse Source

无JIRA任务 补充下simple_color_chooser的布局调整

es6
windy 3 years ago
parent
commit
89db8cfac8
  1. 2
      src/case/colorchooser/colorchooser.js
  2. 4
      src/case/colorchooser/colorpicker/editor.colorpicker.hex.simple.js

2
src/case/colorchooser/colorchooser.js

@ -91,7 +91,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
},
setValue: function (color) {
this.combo.setValue(color || "");
this.combo.setValue((color || "").toLowerCase());
},
getValue: function () {

4
src/case/colorchooser/colorpicker/editor.colorpicker.hex.simple.js

@ -55,8 +55,10 @@ BI.SimpleHexColorPickerEditor = BI.inherit(BI.Widget, {
type: "bi.vertical",
tgap: 10,
items: [{
el: {
type: "bi.vertical_adapt",
rgap: 5,
columnSize: [16, 10, 'fill', 12, c.RGB_WIDTH, 12, c.RGB_WIDTH, 12, c.RGB_WIDTH],
items: [{
el: {
type: "bi.layout",
@ -113,8 +115,10 @@ BI.SimpleHexColorPickerEditor = BI.inherit(BI.Widget, {
self.B = _ref
}
}),
rgap: -5,
width: c.RGB_WIDTH
}]
}
}]
}

Loading…
Cancel
Save