mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
feat:图片占位图默认值
This commit is contained in:
parent
f5cd28712c
commit
6d67463317
@ -506,9 +506,10 @@ export class ImageField extends React.Component<ImageFieldProps, object> {
|
||||
let value = finnalSrc || getPropValue(this.props);
|
||||
const finnalHref = href ? filter(href, data, '| raw') : '';
|
||||
|
||||
const defaultValue = defaultImage
|
||||
? filter(defaultImage, data, '| raw')
|
||||
: imagePlaceholder;
|
||||
const defaultValue =
|
||||
defaultImage && !value
|
||||
? filter(defaultImage, data, '| raw')
|
||||
: imagePlaceholder;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user