mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
Merge branch 'master' of https://gitee.com/dgflash/oops-plugin-framework
This commit is contained in:
@@ -65,9 +65,11 @@ export class LayerNotify extends Node {
|
||||
* @param content 文本表示
|
||||
* @param useI18n 是否使用多语言
|
||||
*/
|
||||
toast(content: string, useI18n: boolean) {
|
||||
async toast(content: string, useI18n: boolean) {
|
||||
if (this.notify == null) {
|
||||
this.notify = ViewUtil.createPrefabNode(PromptResType.Toast);
|
||||
// 兼容编辑器预览模式
|
||||
if (this.notify == null) this.notify = await ViewUtil.createPrefabNodeAsync(PromptResType.Toast);
|
||||
this.notifyItem = this.notify.children[0];
|
||||
this.notifyItem.parent = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user