import { Button, Drawer, Form, Input, Row, Col, Tabs, Cascader, Select, Tag } from 'antd' import React, { useState, useEffect } from 'react' import styles from './index.less' const Popcontactform = props => { // 浏览器实际宽度 const [ clientWidth, setClientWidth ] = useState(document.body.clientWidth * 0.75) useEffect(() => { window.addEventListener('resize', () => { setClientWidth(document.body.clientWidth * 0.7) }) return () => { window.removeEventListener('resize') } }, []) const { visible, onClose, onCreate } = props const [ form ] = Form.useForm() const { TabPane } = Tabs function callback(key) { console.log(key) } const residences = [ { value: '广东省', label: '广东省', children: [ { value: '珠海市', label: '珠海市', children: [ { value: '香洲区', label: '香洲区' } ] } ] }, { value: '安徽省', label: '安徽省', children: [ { value: '合肥市', label: '合肥市', children: [ { value: '庐阳区', label: '庐阳区' } ] } ] } ] return (