feat(Image): skip render loading placeholder during ssr (#7383)

This commit is contained in:
neverland 2020-10-21 22:10:10 +08:00 committed by GitHub
parent ea210bb013
commit dab89fe86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ export default createComponent({
},
genPlaceholder() {
if (this.loading && this.showLoading) {
if (this.loading && this.showLoading && inBrowser) {
return (
<div class={bem('loading')}>
{this.slots('loading') || (