From 5568be2fcbf94bbf6e54787450002d645f5baed5 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 5 Jun 2020 09:07:53 +0800 Subject: [PATCH] feat: update empty --- components/empty/index.jsx | 4 ++-- examples/App.vue | 14 +------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/components/empty/index.jsx b/components/empty/index.jsx index f34eb2b94..4aced9bf3 100644 --- a/components/empty/index.jsx +++ b/components/empty/index.jsx @@ -51,13 +51,13 @@ const Empty = { {imageNode} {des &&

{des}

} - {this.$slots.default &&
{this.$slots.default}
} + {this.$slots.default &&
{this.$slots.default()}
} ); }, }, render() { - return ; + return ; }, }; diff --git a/examples/App.vue b/examples/App.vue index 723e2f835..65723acc5 100644 --- a/examples/App.vue +++ b/examples/App.vue @@ -1,15 +1,3 @@