成功获取 confirm 返回

This commit is contained in:
BTMuli
2023-08-29 16:14:21 +08:00
parent e6c5e98ef9
commit 6c4a3c7830
3 changed files with 27 additions and 47 deletions

View File

@@ -14,9 +14,6 @@ declare namespace TGApp.Component.Confirm {
* @property {string} text 文本
* @property {string} mode 模式 // normal: 正常(默认),input: 输入框
* @property {boolean} otcancel 点击外部取消 // true: 取消(默认),false: 不取消
* @property {function} onConfirm 确认回调
* @property {function} onCancel 取消回调
* @property {function} onInput 输入回调
* @return Params
*/
export interface Params {
@@ -24,7 +21,5 @@ declare namespace TGApp.Component.Confirm {
text?: string;
mode?: "confirm" | "input";
otcancel?: boolean;
onConfirm?: (value?: string | boolean) => void;
onCancel?: () => void;
}
}