diff --git a/packages/client/src/schemas/block-item/index.tsx b/packages/client/src/schemas/block-item/index.tsx index 597c4826c..47300ac59 100644 --- a/packages/client/src/schemas/block-item/index.tsx +++ b/packages/client/src/schemas/block-item/index.tsx @@ -112,49 +112,3 @@ export const BlockItem: any = observer((props) => { const uid = useDragDropUID(); return React.createElement(uid ? DraggableBlock : Block, props); }); - -BlockItem.DesignableBar = () => { - const field = useField(); - const { schema, refresh } = useDesignable(); - const [visible, setVisible] = useState(false); - const { dragRef } = useContext(DraggableBlockContext); - return ( -
- { - e.stopPropagation(); - }} - className={classNames('designable-bar-actions', { active: visible })} - > - - - {dragRef && } - { - setVisible(visible); - }} - overlay={ - - { - const title = uid(); - schema.title = title; - field.title = title; - setVisible(false); - refresh(); - }} - > - 点击修改按钮文案 - - - } - > - - - - -
- ); -};