Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化不使用默认图片占位 #69

Open
ringgoyao opened this issue May 7, 2020 · 2 comments
Open

初始化不使用默认图片占位 #69

ringgoyao opened this issue May 7, 2020 · 2 comments

Comments

@ringgoyao
Copy link

初始化的时候,不想有默认图片占位,如何处理?example里,把imgSrc去掉后,就变成白的了

@Agontuk
Copy link
Owner

Agontuk commented May 7, 2020

Sorry, please write in english.

@lucasfontesgaspareto
Copy link

I think that he want to know about how to handle with empty url in component
He can do a ternarie passing a default url

...
imgSrc: url || 'http://localhost/img.png'
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants