mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
fix: toolbar 设置 align 为 left 不生效问题 (#1999)
This commit is contained in:
parent
ae44d399e5
commit
4f9039c7ba
@ -1826,7 +1826,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
{children.map(({toolbar, dom: child}, index) => {
|
||||
const type = (toolbar as Schema).type || toolbar;
|
||||
let align =
|
||||
toolbar.align || type === 'pagination' ? 'right' : 'left';
|
||||
toolbar.align || (type === 'pagination' ? 'right' : 'left');
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
|
Loading…
Reference in New Issue
Block a user