From 1959066c34954c98b4a4ed62644b686915e945e1 Mon Sep 17 00:00:00 2001 From: Kobi Date: Mon, 30 Aug 2021 17:33:30 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-7828=20=E8=A1=A5=E5=85=85=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/combination/combo.ts | 44 +++++++++---------- .../multiselect/multiselect.insert.combo.ts | 10 +++++ 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/typescript/base/combination/combo.ts b/typescript/base/combination/combo.ts index 0cae971cd..ee80cfeea 100644 --- a/typescript/base/combination/combo.ts +++ b/typescript/base/combination/combo.ts @@ -13,30 +13,30 @@ export declare class Combo extends Widget { static EVENT_AFTER_HIDEVIEW: string; props: { - trigger: 'click' | 'hover' | 'click-hover' | ''; - toggle: boolean; - direction: 'top' | 'bottom' | 'left' | 'right' | 'top,left' | 'top,right' | 'bottom,left' | 'bottom,right' | 'right,innerRight' | 'right,innerLeft' | 'innerRight' | 'innerLeft'; - logic: { + trigger?: 'click' | 'hover' | 'click-hover' | ''; + toggle?: boolean; + direction?: 'top' | 'bottom' | 'left' | 'right' | 'top,left' | 'top,right' | 'bottom,left' | 'bottom,right' | 'right,innerRight' | 'right,innerLeft' | 'innerRight' | 'innerLeft'; + logic?: { dynamic: boolean; }, - container: any; // popupview放置的容器,默认为this.element - isDefaultInit: boolean; - destroyWhenHide: boolean; - hideWhenAnotherComboOpen: boolean; - isNeedAdjustHeight: boolean; // 是否需要高度调整 - isNeedAdjustWidth: boolean; - stopEvent: boolean; - stopPropagation: boolean; - adjustLength: number; // 调整的距离 - adjustXOffset: number; - adjustYOffset: number; - hideChecker: Function; - offsetStyle: 'left' | 'right' | 'center'; - el: any; - popup: any; - comboClass: string; - hoverClass: string; - belowMouse: boolean; + container?: any; // popupview放置的容器,默认为this.element + isDefaultInit?: boolean; + destroyWhenHide?: boolean; + hideWhenAnotherComboOpen?: boolean; + isNeedAdjustHeight?: boolean; // 是否需要高度调整 + isNeedAdjustWidth?: boolean; + stopEvent?: boolean; + stopPropagation?: boolean; + adjustLength?: number; // 调整的距离 + adjustXOffset?: number; + adjustYOffset?: number; + hideChecker?: Function; + offsetStyle?: 'left' | 'right' | 'center'; + el?: any; + popup?: any; + comboClass?: string; + hoverClass?: string; + belowMouse?: boolean; } resetListHeight(h: number): void; diff --git a/typescript/widget/multiselect/multiselect.insert.combo.ts b/typescript/widget/multiselect/multiselect.insert.combo.ts index bee8796d3..98e33d28e 100644 --- a/typescript/widget/multiselect/multiselect.insert.combo.ts +++ b/typescript/widget/multiselect/multiselect.insert.combo.ts @@ -12,6 +12,16 @@ export declare class MultiSelectInsertCombo extends Single { static REQ_GET_DATA_LENGTH: 1; static REQ_GET_ALL_DATA: -1; + props: { + itemsCreator?: Function; + valueFormatter?: Function; + itemHeight?: number; + allowEdit?: boolean; + text?: string; + watermark?: string; + container?: any; + } & Single['props']; + _itemsCreator4Trigger(op: any, callback: Function): void; _addItem(assertShowValue: () => void, matched: boolean): void;