/** * 显示消息提示框接口的输入参数 */ interface ShowToastInput extends BaseInput { /** * 提示的内容 */ title: string; /** * 图标 */ icon?: string; /** * 自定义图标的本地路径 */ image?: string; /** * 提示的延迟时间 */ duration: number; /** * 是否显示透明蒙层,防止触摸穿透 */ mask: boolean; } /** * 显示模态对话框接口的输入参数 */ interface ShowModalInput extends BaseInput { /** * 提示的标题 */ title: string; /** * 提示的内容 */ content?: string; /** * 取消按钮的文字 */ cancelText?: string; /** * 取消按钮的颜色 */ cancelColor?: string; /** * 确认按钮的文字 */ confirmText?: string; /** * 确认按钮的颜色 */ confirmColor?: string; /** * 是否显示输入框 */ editable?: boolean; /** * 输入框提示文本 */ placeholderText?: string; /** * 是否显示取消按钮 */ showCancel: boolean; } /** * 显示 loading 提示框接口的输入参数 */ interface ShowLoaddingInput extends BaseInput { /** * 提示的内容 */ title: string; } /** * 设置导航栏标题接口的输入参数 */ interface setNavigationBarTitleInput extends BaseInput { /** * 页面标题 */ title: string; } /** * 设置导航栏颜色接口的输入参数 */ interface SetNavigationBarColorInput extends BaseInput { /** * 前景颜色值,包括按钮、标题、状态栏的颜色 */ frontColor: string; /** * 背景颜色值 */ backgroundColor: string; } /** * 设置窗口背景色接口的输入参数 */ interface SetBackgroundColorInput extends BaseInput { /** * 窗口的背景色 */ backgroundColor: string; }