;
return (
- {this.direction === 'down' ? this.slots() : placeholder}
+ {this.direction === 'down' ? this.slots() : Placeholder}
{this.loading && (
{this.slots('loading') || (
@@ -128,7 +128,7 @@ export default sfc({
{this.errorText}
)}
- {this.direction === 'up' ? this.slots() : placeholder}
+ {this.direction === 'up' ? this.slots() : Placeholder}
);
}
diff --git a/packages/list/test/index.spec.js b/packages/list/test/index.spec.js
index dfb5e2f1a..04a39c73f 100644
--- a/packages/list/test/index.spec.js
+++ b/packages/list/test/index.spec.js
@@ -116,7 +116,7 @@ test('keep-alive live cycle', () => {
expect(wrapper.vm.$el).toBeTruthy();
wrapper.vm.show = false;
- expect(wrapper.vm.el).toBeFalsy();
+ expect(wrapper.vm.$el.nodeType).toEqual(Node.COMMENT_NODE);
});
test('check the case that scroller is not window', async () => {