Skip to content

Commit

Permalink
fix: 删除注释
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft authored and jianbing.chen committed Dec 18, 2024
1 parent 491881e commit aff29dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions packages/editor/src/packages/FeedBack/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ const AntDrawer = forwardRef(({ id, type, config, elements, onClose, onAfterOpen

return (
<>
{/* <div>
<Button onClick={() => setVisible(true)}>{config.props.title}</Button>
</div> */}
<Drawer
{...config.props}
data-id={id}
Expand Down
8 changes: 1 addition & 7 deletions packages/editor/src/packages/FeedBack/Modal/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ComponentType, IDragTargetItem } from '@/packages/types';
import { Button, Modal, Spin } from 'antd';
import { Modal, Spin } from 'antd';
import { forwardRef, memo, useEffect, useImperativeHandle, useState } from 'react';
import { useDrop } from 'react-dnd';
import { getComponent } from '@/packages/index';
Expand Down Expand Up @@ -121,12 +121,6 @@ const AntdModal = forwardRef(({ id, type, config, elements, onLoad, onOk, onCanc
}
return (
<>
{/* 虚拟一个按钮,来模拟弹框,生产模式下,需要删除 */}
{/* {mode === 'edit' ? (
<div>
<Button onClick={() => setVisible(true)}>{config.props.title}</Button>
</div>
) : null} */}
<Modal
{...config.props}
data-id={id}
Expand Down

0 comments on commit aff29dd

Please sign in to comment.