* zin: fix trigger and menu props not work in dropdown item.

This commit is contained in:
sunhao
2023-11-09 17:13:01 +08:00
parent c21f562247
commit cc3229066e
+3 -1
View File
@@ -53,7 +53,7 @@ class actionItem extends wg
protected function buildDropdownItem()
{
list($dropdown, $items, $icon, $text, $trailingIcon, $active, $disabled, $badge, $props, $caret, $textClass) = $this->prop(array('dropdown', 'items', 'icon', 'text', 'trailingIcon', 'active', 'disabled', 'badge', 'props', 'caret', 'textClass'));
list($dropdown, $items, $icon, $text, $trailingIcon, $active, $disabled, $badge, $props, $caret, $textClass, $trigger, $menu) = $this->prop(array('dropdown', 'items', 'icon', 'text', 'trailingIcon', 'active', 'disabled', 'badge', 'props', 'caret', 'textClass', 'trigger', 'menu'));
if(is_string($badge))
{
@@ -67,6 +67,8 @@ class actionItem extends wg
$dropdown = new dropdown
(
set::items($items),
set::trigger($trigger),
set::menu($menu),
set($dropdown),
h::a(
setClass(array('active' => $active, 'disabled' => $disabled)),