mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Image): skip render loading placeholder during ssr (#7383)
This commit is contained in:
parent
ea210bb013
commit
dab89fe86e
@ -113,7 +113,7 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
genPlaceholder() {
|
genPlaceholder() {
|
||||||
if (this.loading && this.showLoading) {
|
if (this.loading && this.showLoading && inBrowser) {
|
||||||
return (
|
return (
|
||||||
<div class={bem('loading')}>
|
<div class={bem('loading')}>
|
||||||
{this.slots('loading') || (
|
{this.slots('loading') || (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user