diff --git a/packages/core/client/src/flow/models/data-blocks/tabulator/TabulatorModel.tsx b/packages/core/client/src/flow/models/data-blocks/tabulator/TabulatorModel.tsx index 4dc84616a1..b3cc093eb1 100644 --- a/packages/core/client/src/flow/models/data-blocks/tabulator/TabulatorModel.tsx +++ b/packages/core/client/src/flow/models/data-blocks/tabulator/TabulatorModel.tsx @@ -13,6 +13,7 @@ import { AddActionButton, AddFieldButton, CollectionField, + DndProvider, FlowModel, FlowModelRenderer, FlowsFloatContextMenu, @@ -261,14 +262,37 @@ export class TabulatorModel extends DataBlockModel { render() { return ( - {/* - {this.mapSubModels('actions', (action) => ( - - ))} - - - - */} + +
+ + {this.mapSubModels('actions', (action) => { + // @ts-ignore + if (action.props.position === 'left') { + return ( + + ); + } + + return null; + })} + {/* 占位 */} + + + + {this.mapSubModels('actions', (action) => { + // @ts-ignore + if (action.props.position !== 'left') { + return ( + + ); + } + + return null; + })} + + +
+