From cc3229066e52b45b81449da33767cb01aa99d8fc Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 9 Nov 2023 17:12:56 +0800 Subject: [PATCH] * zin: fix trigger and menu props not work in dropdown item. --- lib/zin/wg/actionitem/v1.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/actionitem/v1.php b/lib/zin/wg/actionitem/v1.php index 53e8d67e30..f882d8a8f9 100644 --- a/lib/zin/wg/actionitem/v1.php +++ b/lib/zin/wg/actionitem/v1.php @@ -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)),