enhance(ui): refactor the context menu with the shui dropdown menu items

This commit is contained in:
charlie
2024-04-25 15:21:37 +08:00
parent fcb3097602
commit d0866fe4de
4 changed files with 164 additions and 156 deletions

View File

@@ -845,7 +845,8 @@
(shui/popup-show! e
(fn [{:keys [id]}]
[:div {:on-click #(shui/popup-hide! id)} content])
{:content-props {:class "w-[280px] ls-context-menu-content"}}))
{:content-props {:class "w-[280px] ls-context-menu-content"}
:as-dropdown? true}))
handled
(cond