From fd6878d8d03a33f121d1012e2be41cecd86f3773 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Tue, 2 Jul 2019 21:26:09 +0800 Subject: [PATCH] Prompt --- ShadowEditor.UI/src/index.js | 1 + ShadowEditor.Web/src/Application.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ShadowEditor.UI/src/index.js b/ShadowEditor.UI/src/index.js index ba2c7b4e..255cdaf0 100644 --- a/ShadowEditor.UI/src/index.js +++ b/ShadowEditor.UI/src/index.js @@ -81,5 +81,6 @@ export { default as Tree } from './tree/Tree.jsx'; // window export { default as Alert } from './window/Alert.jsx'; export { default as Confirm } from './window/Confirm.jsx'; +export { default as Prompt } from './window/Prompt.jsx'; export { default as Toast } from './window/Toast.jsx'; export { default as Window } from './window/Window.jsx'; \ No newline at end of file diff --git a/ShadowEditor.Web/src/Application.js b/ShadowEditor.Web/src/Application.js index 61ffd069..9f380aa3 100644 --- a/ShadowEditor.Web/src/Application.js +++ b/ShadowEditor.Web/src/Application.js @@ -50,6 +50,10 @@ Application.prototype.toast = function (text) { }, 5000); }; +Application.prototype.alert = function (text, callback) { + +}; + // ----------------------- 记录日志 -------------------------------- Application.prototype.log = function (content) { // 普通日志