From 320c7b6332cec6a4000ccae29cbac50cbb0a6cb5 Mon Sep 17 00:00:00 2001 From: Guyi Date: Fri, 14 May 2021 18:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85pager=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/pager/pager.ts | 21 +++++++++++++++++++++ typescript/index.ts | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 typescript/base/pager/pager.ts diff --git a/typescript/base/pager/pager.ts b/typescript/base/pager/pager.ts new file mode 100644 index 000000000..655f00092 --- /dev/null +++ b/typescript/base/pager/pager.ts @@ -0,0 +1,21 @@ +import { Widget } from "../../core/widget"; + +export declare class Pager extends Widget { + static xtype: string; + + static EVENT_CHANGE: string; + + static EVENT_AFTER_POPULATE: string; + + getCurrentPage(): number; + + setValue(v: number): void; + + hasPrev(): boolean; + + hasNext(): boolean; + + setAllPages(v: number): void; + + populate(): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 34afc93a2..fbfed1af7 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -163,6 +163,7 @@ import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem'; import { Broadcasts, Layers } from "./base/base"; import { BroadcastController } from "./core/controller/controller.broadcast"; +import { Pager } from "./base/pager/pager"; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -301,6 +302,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { DateInterval: typeof DateInterval; DynamicDatePane: typeof DynamicDatePane; AllCountPager: typeof AllCountPager; + Pager: typeof Pager; PopupView: typeof PopupView; BubblePopupView: typeof BubblePopupView; BubblePopupBarView: typeof BubblePopupBarView; @@ -470,6 +472,7 @@ export { DateInterval, DynamicDatePane, AllCountPager, + Pager, PopupView, BubblePopupView, BubblePopupBarView,