Browse Source

补充BI.Msg类型描述

es6
Roy.Liu 4 years ago
parent
commit
349e57cbe7
  1. 2
      typescript/base/foundation/message.ts
  2. 2
      typescript/index.ts

2
typescript/base/foundation/message.ts

@ -1,6 +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, min_width?: number) => void
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void
toast: (message: string, options?: object, context?: HTMLElement ) => void
}

2
typescript/index.ts

@ -141,6 +141,7 @@ import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.ed
import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue';
import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
import { _msg } from './base/foundation/message'
type ClassConstructor<T extends {}> = T & {
@ -297,6 +298,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var {
IconTextValueCombo: typeof IconTextValueCombo;
ListView: typeof ListView;
FloatCenterLayout: typeof FloatCenterLayout;
Msg: _msg;
}
export default {

Loading…
Cancel
Save