摘要: import React , {Component} from 'react'; import { Cascader } from 'antd'; import CityData from './cityData'; class TestOne extends Component { onChang 阅读全文
posted @ 2020-05-07 16:51 lyt598 阅读(429) 评论(0) 推荐(0) 编辑
摘要: const Position = [{ value: '北京市',label: '北京市','children': [{ value: '北京市',label: '北京市','children': [{ value: '东城区',label: '东城区'}, { value: '西城区', labe 阅读全文
posted @ 2020-05-07 15:35 lyt598 阅读(612) 评论(0) 推荐(0) 编辑
摘要: function resizeListener(){ // 定义设计图的尺寸 1920 let designSize = 1920; // 获取 html 元素 let html = document.documentElement; // 定义窗口的宽度 let clientW = html.cl 阅读全文
posted @ 2020-05-07 14:23 lyt598 阅读(165) 评论(0) 推荐(0) 编辑
摘要: constructor(props){ super(props); this.state = { collapsed:false } } handleClientW = (width,num)=>{ if(width < num){ this.setState({ collapsed:true }) 阅读全文
posted @ 2020-05-07 13:47 lyt598 阅读(4868) 评论(0) 推荐(0) 编辑