This commit is contained in:
何冠峰
2025-02-13 20:14:33 +08:00
parent 26dbe9dfdd
commit 9d07905f2d
4 changed files with 16 additions and 9 deletions
@@ -90,10 +90,16 @@ namespace YooAsset.Editor
public TableView()
{
_toolbar = new Toolbar();
this.Add(_toolbar);
this.style.flexShrink = 1f;
this.style.flexGrow = 1f;
// 定义标题栏
_toolbar = new Toolbar();
// 定义列表视图
_listView = new ListView();
_listView.style.flexShrink = 1f;
_listView.style.flexGrow = 1f;
_listView.makeItem = MakeListViewElement;
_listView.bindItem = BindListViewElement;
_listView.selectionType = SelectionType.Multiple;
@@ -107,6 +113,7 @@ namespace YooAsset.Editor
_listView.onSelectionChanged += OnSelectionChanged;
#endif
this.Add(_toolbar);
this.Add(_listView);
}