* [perf story #59898] Adjust return data for messageBar.

This commit is contained in:
wangyidong
2024-07-24 14:48:19 +08:00
committed by 孙广明
parent 16182f5f46
commit 3de5e1efc8
2 changed files with 20 additions and 0 deletions
+15
View File
@@ -261,6 +261,21 @@ class header extends wg
$unreadCount = count($unread);
$dotStyle = array('top' => '0px', 'right' => '-5px', 'aspect-ratio' => '0', 'padding' => '2px');
return dropdown
(
btn
(
setID('messageBar'),
set(array('data-on' => 'click', 'data-call' => 'fetchMessage', 'data-params' => 'event', 'data-fetcher' => createLink('message', 'ajaxGetDropMenu'))),
icon('bell', set::size('lg')),
setClass('ring-primary bg-inherit'),
set::square(true),
set::size('sm'),
set::caret(false),
$unreadCount ? label(setClass('danger label-dot absolute'), set::style($dotStyle), $unreadCount) : null
),
);
}
static function quickAddMenu()
+5
View File
@@ -1800,3 +1800,8 @@
}
});
}());
window.fetchMessage = function(event)
{
console.log(event.target);
};