list 的 placeholder 支持 html或者其他渲染器
This commit is contained in:
parent
9744ff5ba6
commit
1b3033d73d
|
@ -78,7 +78,7 @@
|
||||||
&-placeholder {
|
&-placeholder {
|
||||||
color: $text--muted-color;
|
color: $text--muted-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: $List-placeholder-height;
|
min-height: $List-placeholder-height;
|
||||||
line-height: $List-placeholder-height;
|
line-height: $List-placeholder-height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -789,7 +789,9 @@ export default class List extends React.Component<ListProps, object> {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className={cx('List-placeholder')}>{__(placeholder)}</div>
|
<div className={cx('List-placeholder')}>
|
||||||
|
{render('placeholder', __(placeholder))}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{this.renderFooter()}
|
{this.renderFooter()}
|
||||||
|
|
Loading…
Reference in New Issue