diff --git a/typescript/base/foundation/message.ts b/typescript/base/foundation/message.ts index 40aae2129..40c79cc0e 100644 --- a/typescript/base/foundation/message.ts +++ b/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 } \ No newline at end of file diff --git a/typescript/index.ts b/typescript/index.ts index cb8f6436d..fc804b880 100644 --- a/typescript/index.ts +++ b/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 & { @@ -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 {