From 89ba3c53e0170cd438651407058f3265637c846a Mon Sep 17 00:00:00 2001 From: fay Date: Thu, 23 Sep 2021 11:25:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/lib/case/pager/pager.direction.d.ts | 18 +++++++++++++++ typescript/case/pager/pager.direction.ts | 28 ++++++++++++++++++++++++ typescript/index.ts | 2 ++ 3 files changed, 48 insertions(+) create mode 100644 dist/lib/case/pager/pager.direction.d.ts create mode 100644 typescript/case/pager/pager.direction.ts diff --git a/dist/lib/case/pager/pager.direction.d.ts b/dist/lib/case/pager/pager.direction.d.ts new file mode 100644 index 000000000..1b29a4648 --- /dev/null +++ b/dist/lib/case/pager/pager.direction.d.ts @@ -0,0 +1,18 @@ +import { Widget } from "../../core/widget"; + +export declare class DirectionPager extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + getVPage(): number; + getHPage(): number; + setVPage(v: number):void; + setHPage(v: number):void; + hasVPrev(): boolean; + hasVNext(): boolean; + hasHPrev(): boolean; + hasHNext(): boolean; + setHPagerVisible(v: boolean): void; + setVPagerVisible(v: boolean): void; + clear(): void; + populate(): void; +} diff --git a/typescript/case/pager/pager.direction.ts b/typescript/case/pager/pager.direction.ts new file mode 100644 index 000000000..2b52d02b5 --- /dev/null +++ b/typescript/case/pager/pager.direction.ts @@ -0,0 +1,28 @@ +import { Widget } from "../../core/widget"; + +export declare class DirectionPager extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + + + getVPage(): number; + getHPage(): number; + + setVPage(v: number):void; + setHPage(v: number):void; + + hasVPrev(): boolean; + + hasVNext(): boolean; + + hasHPrev(): boolean; + + hasHNext(): boolean; + + setHPagerVisible(v: boolean): void; + setVPagerVisible(v: boolean): void; + + clear(): void; + + populate(): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 4b17463cc..68917f165 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -131,6 +131,7 @@ import { SelectTextTrigger } from "./case/trigger/trigger.text.select"; import { DateInterval } from "./widget/timeinterval/dateinterval"; import { DynamicDatePane } from "./widget/datepane/datepane"; import { AllCountPager } from "./case/pager/pager.all.count"; +import { DirectionPager } from "./case/pager/pager.direction"; import { PopupView } from "./base/layer/layer.popup"; import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble"; import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode"; @@ -319,6 +320,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { DateInterval: typeof DateInterval; DynamicDatePane: typeof DynamicDatePane; AllCountPager: typeof AllCountPager; + DirectionPager: typeof DirectionPager; Pager: typeof Pager; PopupView: typeof PopupView; BubblePopupView: typeof BubblePopupView;