mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-31 15:20:32 +08:00
chore(engine): Refactor displayMessage action params.
This commit is contained in:
parent
9988b3051a
commit
18a2385dfe
@ -16,12 +16,7 @@
|
||||
|
||||
function createDisplayMessage({ context }) {
|
||||
return function displayMessage(params = {}) {
|
||||
context._internal.lowdefy._internal.displayMessage({
|
||||
content: params.content || 'Success',
|
||||
duration: params.duration,
|
||||
icon: params.icon,
|
||||
status: params.status,
|
||||
});
|
||||
context._internal.lowdefy._internal.displayMessage(params);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,12 @@
|
||||
*/
|
||||
|
||||
function Message({ methods: { message }, params }) {
|
||||
message(params);
|
||||
message({
|
||||
content: params.content || 'Success',
|
||||
duration: params.duration,
|
||||
icon: params.icon,
|
||||
status: params.status,
|
||||
});
|
||||
}
|
||||
|
||||
export default Message;
|
||||
|
Loading…
x
Reference in New Issue
Block a user