PerviewPrase.jsx 996 Bytes
Newer Older
1 2
import React, { useState, useEffect } from 'react';
import { Modal, Space, Button } from 'antd';
涂伟's avatar
涂伟 committed
3
// import ParseForm from 'parseForm';
4
import styles from './index.less';
5
const PerviewPrase = props => {
6
  const { visible, onCancel, tablesSchema } = props;
7 8

  return (
9 10 11 12 13 14
    <div className={styles.PerviewParse}>
      <Modal
        title="预览"
        bodyStyle={{
          width: '100%',
          minHeight: '200px',
15 16
          height: '780px',
          overflow: 'hidden',
17
        }}
邓超's avatar
邓超 committed
18
        width="70%"
19
        style={{ marginTop: '-80px', width: '75%' }}
20 21 22 23 24 25 26 27 28 29 30 31 32
        destroyOnClose
        maskClosable={false}
        footer={
          <Space>
            <Button onClick={onCancel} type="primary">
              关闭
            </Button>
          </Space>
        }
        {...props}
        forceRender
        getContainer={false}
      >
涂伟's avatar
涂伟 committed
33
        {/* {visible && <ParseForm tablesSchema={tablesSchema} noButtons />} */}
34 35
      </Modal>
    </div>
36 37 38
  );
};
export default PerviewPrase;