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 @@