未验证 提交 186b274f 编写于 作者: Z zhangfugui 提交者: GitHub

refactor: tree component empty state display (#853)

上级 f1c0e0c5
......@@ -105,7 +105,7 @@
);
const getNotFound = computed((): boolean => {
return searchState.startSearch && searchState.searchData?.length === 0;
return !getTreeData.value || getTreeData.value.length === 0;
});
const {
......@@ -381,7 +381,7 @@
</Tree>
</ScrollContainer>
<Empty v-show={unref(getNotFound)} class="!mt-4" />
<Empty v-show={unref(getNotFound)} image={Empty.PRESENTED_IMAGE_SIMPLE} class="!mt-4" />
</div>
);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册