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

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') || (