周云建 发表于 2024-12-27 23:35:18

任务卡页面弹窗【温馨提示】功能是否可以放在页面rule中使用

任务卡页面弹窗【温馨提示】功能是否可以放在页面rule中使用

周云建 发表于 2024-12-27 23:35:18


UIBOT 下 规则 不可以实现;
DSL 下 可以尝试用hooks实现;
基本编写语法如下
普通讯息
options.utils.athMessageService.info('This is a normal message');
成功讯息
options.utils.athMessageService.success('This is a success message');
错误讯息
options.utils.athMessageService.error('This is a error message');
警告讯息
options.utils.athMessageService.custom('This is a warning message');

进阶用法,可以设定持续时间(不设定默认是两秒)
options.utils.athMessageService., {
        nzDuration: [持续时间]
});

示例(显示5秒):
options.utils.athMessageService.error('This is a error message'), {
        nzDuration: 5000
});
页: [1]
查看完整版本: 任务卡页面弹窗【温馨提示】功能是否可以放在页面rule中使用