mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
Merge pull request #8626 from lurunze1226/fix-crud2-scaffold-columns-control
chore(amis-editor): CRUD2列配置控件始终展示顶部操作区
This commit is contained in:
commit
382f03ed4e
@ -449,19 +449,29 @@ export class CRUDColumnControl extends React.Component<
|
||||
size="sm"
|
||||
className={cx('flex')}
|
||||
/>
|
||||
) : Array.isArray(options) && options.length > 0 ? (
|
||||
) : (
|
||||
<>
|
||||
{this.renderHeader()}
|
||||
<ul className={cx('ae-CRUDConfigControl-list')} ref={this.dragRef}>
|
||||
{options.map((item, index) => {
|
||||
return this.renderOption(item, index);
|
||||
})}
|
||||
</ul>
|
||||
{Array.isArray(options) && options.length > 0 ? (
|
||||
<ul
|
||||
className={cx('ae-CRUDConfigControl-list')}
|
||||
ref={this.dragRef}
|
||||
>
|
||||
{options.map((item, index) => {
|
||||
return this.renderOption(item, index);
|
||||
})}
|
||||
</ul>
|
||||
) : (
|
||||
<ul
|
||||
className={cx('ae-CRUDConfigControl-list')}
|
||||
ref={this.dragRef}
|
||||
>
|
||||
<p className={cx(`ae-CRUDConfigControl-placeholder`)}>
|
||||
暂无数据
|
||||
</p>
|
||||
</ul>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<ul className={cx('ae-CRUDConfigControl-list')} ref={this.dragRef}>
|
||||
<p className={cx(`ae-CRUDConfigControl-placeholder`)}>暂无数据</p>
|
||||
</ul>
|
||||
)}
|
||||
|
||||
{showAddModal ? (
|
||||
|
Loading…
Reference in New Issue
Block a user