* zin/tree: support to use sortableTree.

This commit is contained in:
sunhao
2023-11-25 16:18:09 +08:00
parent 9b4b0a11d9
commit fc4ada8a57
+5
View File
@@ -6,6 +6,11 @@ class tree extends wg
{
protected function build(): zui
{
$sortable = $this->prop('sortable');
if(!empty($sortable))
{
return zui::sortableTree(set::_tag('menu'), inherit($this));
}
return zui::tree(set::_tag('menu'), inherit($this));
}
}