Unverified 提交 186b274f 作者: zhangfugui 提交者: GitHub

refactor: tree component empty state display (#853)

上级 f1c0e0c5
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
); );
const getNotFound = computed((): boolean => { const getNotFound = computed((): boolean => {
return searchState.startSearch && searchState.searchData?.length === 0; return !getTreeData.value || getTreeData.value.length === 0;
}); });
const { const {
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
</Tree> </Tree>
</ScrollContainer> </ScrollContainer>
<Empty v-show={unref(getNotFound)} class="!mt-4" /> <Empty v-show={unref(getNotFound)} image={Empty.PRESENTED_IMAGE_SIMPLE} class="!mt-4" />
</div> </div>
); );
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论