Browse Source

Pull request #1700: KERNEL-6560 补充BI.Msg类型描述

Merge in VISUAL/fineui from ~ROY.LIU/fineui:master to master

* commit '0b21606bcd5d6509a87902fc06e3c215decf5c15':
  冲突
  change
  补充web/function
  补充BI.Msg类型描述
  补充BI.Msg类型描述
  增加描述
es6
Teller 4 years ago
parent
commit
47da5785e3
  1. 6
      typescript/base/foundation/message.ts
  2. 12
      typescript/core/platform/web/function.ts
  3. 6
      typescript/core/platform/web/index.ts
  4. 5
      typescript/index.ts

6
typescript/base/foundation/message.ts

@ -0,0 +1,6 @@
export type _msg = {
alert: (title: string, message?: string, callback?: (result?: boolean)=>void) => void
confirm: (title: string, message?: string, callback?: (result: boolean)=>void) => void
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void
toast: (message: string, options?: object, context?: HTMLElement ) => void
}

12
typescript/core/platform/web/function.ts

@ -0,0 +1,12 @@
export type _function = {
isIE: () => boolean;
getIEVersion: () => number;
isEdge: () => boolean;
isChrome: () => boolean;
isFireFox: () => boolean;
isOpera: () => boolean;
isSafari: () => boolean;
isMac: () => boolean;
isWindows: () => boolean;
isSupportCss3: (style: any) => boolean;
}

6
typescript/core/platform/web/index.ts

@ -0,0 +1,6 @@
import { _function } from "./function";
export interface _web extends _function {
}

5
typescript/index.ts

@ -141,9 +141,11 @@ import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.ed
import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue'; import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue';
import { ListView } from './base/list/listview'; import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center'; import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
import { _msg } from './base/foundation/message';
import { _web } from './core/platform/web';
import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth'; import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth';
export interface BI extends _func, _i18n, _base, _inject, _var { export interface BI extends _func, _i18n, _base, _inject, _var, _web {
OB: typeof OB; OB: typeof OB;
Plugin: _Plugin; Plugin: _Plugin;
Widget: typeof Widget; Widget: typeof Widget;
@ -290,6 +292,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var {
IconTextValueCombo: typeof IconTextValueCombo; IconTextValueCombo: typeof IconTextValueCombo;
ListView: typeof ListView; ListView: typeof ListView;
FloatCenterLayout: typeof FloatCenterLayout; FloatCenterLayout: typeof FloatCenterLayout;
Msg: _msg;
DynamicYearMonthPopup: typeof DynamicYearMonthPopup; DynamicYearMonthPopup: typeof DynamicYearMonthPopup;
} }

Loading…
Cancel
Save