@ -25,6 +25,7 @@ export class ColorChooser extends Widget {
el: {},
simple: false,
colorItems: null,
colorBoardHeight: 80,
});
}
@ -64,6 +65,7 @@ export class ColorChooser extends Widget {
{
type: HexColorChooserPopup.xtype,
colorItems: o.colorItems,
colorBoardHeight: o.colorBoardHeight,
recommendColorsGetter: o.recommendColorsGetter,
ref: _ref => {
this.colorPicker = _ref;
@ -48,6 +48,7 @@ export class HexColorChooserPopup extends Widget {
recommendColorsGetter: emptyFn, // 推荐色获取接口
simple: false, // 简单模式, popup中没有自动和透明
};
render() {
@ -189,7 +190,7 @@ export class HexColorChooserPopup extends Widget {
bottom: 1,
],
height: 80,
height: o.colorBoardHeight,
},
@ -1,3 +1,4 @@
import { Single } from 'typescript/base/single/single';
import { Widget } from '../../core/widget';
export declare class ColorChooser extends Widget {
@ -6,8 +7,10 @@ export declare class ColorChooser extends Widget {
static EVENT_AFTER_POPUPVIEW: string;
props: {
stopEvent?: boolean;
colorBoardHeight?: number;
colorItems?: { value: string }[][];
} & Single["props"];
isViewVisible(): boolean;