Commit 54b0a96b authored by 涂伟's avatar 涂伟

fix: '表设计一键布局功能添加'

parent 3aa7902a
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
"js-calendar-converter": "0.0.4", "js-calendar-converter": "0.0.4",
"lodash": "4.17.11", "lodash": "4.17.11",
"minimist": "1.2.0", "minimist": "1.2.0",
"panda-xform": "^2.9.4", "panda-xform": "^3.0.0",
"prop-types": "15.7.2", "prop-types": "15.7.2",
"quill": "^1.3.7", "quill": "^1.3.7",
"rc-tween-one": "^3.0.6", "rc-tween-one": "^3.0.6",
......
...@@ -27,6 +27,7 @@ import { ...@@ -27,6 +27,7 @@ import {
EyeOutlined, EyeOutlined,
ArrowLeftOutlined, ArrowLeftOutlined,
UploadOutlined, UploadOutlined,
SnippetsOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import { import {
reloadTableFields, reloadTableFields,
...@@ -487,11 +488,20 @@ const AddModal = props => { ...@@ -487,11 +488,20 @@ const AddModal = props => {
</TreeSelect> </TreeSelect>
</div> */} </div> */}
<div className={styles.btn}> <div className={styles.btn}>
<Button
type="primary"
icon={<SnippetsOutlined />}
ghost
onClick={() => formRef.current.initLayout()}
>
一键布局
</Button>
<Button <Button
type="primary" type="primary"
// icon={<PlusSquareOutlined />} // icon={<PlusSquareOutlined />}
ghost ghost
onClick={() => formRef.current.clear()} onClick={() => formRef.current.clear()}
style={{ marginLeft: '10px' }}
> >
<img src={clearSvg} style={{ marginRight: '6px' }} alt="" /> <img src={clearSvg} style={{ marginRight: '6px' }} alt="" />
清空 清空
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment