From 349e57cbe7f2e6682f773e9962c811a0031619c8 Mon Sep 17 00:00:00 2001 From: "Roy.Liu" Date: Wed, 23 Dec 2020 17:15:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85BI.Msg=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/foundation/message.ts | 2 +- typescript/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 {