forked from nsjcy/frontEnd/nsjcy

liuwh
2020-06-09 5a887acf1924950715086633d329db045223b5c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
 * 徐祥健<xuxj@hugeinfo.com.cn>
 * 2018年7月20日 10:17
 *
 */
 
 
import React from 'react';
 
import user from '../../asset/icons/user.svg';
import { Modal, Button } from 'antd';
// import chunk from 'lodash/chunk';
// import tree from 'hife/tree';
 
 
import './style.scss';
 
export default function SendModel({ type, children, onCancel, onOk}) {
  return (
    <Modal 
      visible={true}
      width="62%"
      onOk={onOk}
      onCancel={onCancel}
      footer={[
        <Button key="back" onClick={onCancel}>取消</Button>,
        <Button key="submit" type="primary" onClick={onOk}>
          确认添加
        </Button>
      ]}
    >
    <div className="model-detail-view-main">
      <div className='model-detail-view-type'><span>{type}</span></div>
      {children}
    </div>
    </Modal>
  );
 
}