mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: admin bar
This commit is contained in:
parent
0a85a5a83f
commit
e17e6adf83
@ -13,6 +13,7 @@ import {
|
|||||||
AddActionButton,
|
AddActionButton,
|
||||||
AddFieldButton,
|
AddFieldButton,
|
||||||
CollectionField,
|
CollectionField,
|
||||||
|
DndProvider,
|
||||||
FlowModel,
|
FlowModel,
|
||||||
FlowModelRenderer,
|
FlowModelRenderer,
|
||||||
FlowsFloatContextMenu,
|
FlowsFloatContextMenu,
|
||||||
@ -261,14 +262,37 @@ export class TabulatorModel extends DataBlockModel<S> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
{/* <Space style={{ marginBottom: 16 }}>
|
<DndProvider>
|
||||||
{this.mapSubModels('actions', (action) => (
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16 }}>
|
||||||
<FlowModelRenderer model={action} showFlowSettings sharedContext={{ currentBlockModel: this }} />
|
<Space>
|
||||||
))}
|
{this.mapSubModels('actions', (action) => {
|
||||||
<AddActionButton model={this} subModelBaseClass="GlobalActionModel" subModelKey="actions">
|
// @ts-ignore
|
||||||
<Button icon={<SettingOutlined />}>{this.translate('Configure actions')}</Button>
|
if (action.props.position === 'left') {
|
||||||
</AddActionButton>
|
return (
|
||||||
</Space> */}
|
<FlowModelRenderer model={action} showFlowSettings={{ showBackground: false, showBorder: false }} />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
})}
|
||||||
|
{/* 占位 */}
|
||||||
|
<span></span>
|
||||||
|
</Space>
|
||||||
|
<Space>
|
||||||
|
{this.mapSubModels('actions', (action) => {
|
||||||
|
// @ts-ignore
|
||||||
|
if (action.props.position !== 'left') {
|
||||||
|
return (
|
||||||
|
<FlowModelRenderer model={action} showFlowSettings={{ showBackground: false, showBorder: false }} />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
})}
|
||||||
|
<AddActionButton model={this} subModelBaseClass="GlobalActionModel" subModelKey="actions" />
|
||||||
|
</Space>
|
||||||
|
</div>
|
||||||
|
</DndProvider>
|
||||||
<div ref={this.tabulatorRef} />
|
<div ref={this.tabulatorRef} />
|
||||||
<Pagination
|
<Pagination
|
||||||
style={{ marginTop: 16 }}
|
style={{ marginTop: 16 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user