ModalComponent.jsx 367 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import React from 'react'
import {
  Modal
} from 'antd'

const CardModal = (props) =>{
  console.log(props)
  const defaultCofig = {
    title:'测试',
    visible:false,
  }
  const config = { ...defaultCofig, ...props}
  return (
    <Modal
      {...config}
      style={{width:"1000px"}}
    >
      {props.children}
    </Modal>
  )
}

export default CardModal