feat:图片占位图默认值

This commit is contained in:
miaoxinyu01 2023-09-08 14:51:53 +08:00
parent f5cd28712c
commit 6d67463317

View File

@ -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