上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 52 下一页
摘要: this.detail(item)} overlay={( this.handleClick(e, item)}> menu1 menu2 menu3 )}>mainButton detail(item) { this.props.history.repla... 阅读全文
posted @ 2018-04-12 16:52 Nyan 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 使用: 阅读全文
posted @ 2018-04-11 20:43 Nyan 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 使用redux: update privateRoute: 阅读全文
posted @ 2018-04-11 11:33 Nyan 阅读(2244) 评论(0) 推荐(0) 编辑
摘要: update: 通用请求服务: 阅读全文
posted @ 2018-04-10 14:53 Nyan 阅读(5075) 评论(0) 推荐(0) 编辑
摘要: 根据登录与否进入自定义路由 只能判断根路由,子路由不受影响需做另外设置 阅读全文
posted @ 2018-04-09 14:37 Nyan 阅读(12289) 评论(0) 推荐(0) 编辑
摘要: import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {Layout, Menu, Icon} from 'antd'; const {SubMenu} = Menu; const {Sider} = Layout; class SideBar extends React.Com... 阅读全文
posted @ 2018-04-04 16:29 Nyan 阅读(833) 评论(0) 推荐(0) 编辑
摘要: import React from 'react'; import {Form, InputNumber, Input, DatePicker, Button, Select, Icon} from 'antd'; import moment from 'moment'; // 推荐在入口文件全局设置 locale import 'moment/locale/zh-cn'; moment.loc... 阅读全文
posted @ 2018-03-27 11:11 Nyan 阅读(2139) 评论(0) 推荐(0) 编辑
摘要: npm install antd-iconfont --save npm install less less-loader --save-dev webpack.config.js 1、 2、 import "~antd-iconfont/iconfont.less"; import "antd-t 阅读全文
posted @ 2018-03-21 20:32 Nyan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: https://ant.design/components/form-cn/ 解决方法: 阅读全文
posted @ 2018-03-20 15:19 Nyan 阅读(8436) 评论(0) 推荐(0) 编辑
摘要: 1.install npm install bootstrap-loader jquery resolve-url-loader 2.webpack.config.js entry: ['bootstrap-loader', './src/app.js'] new webpack.ProvidePl 阅读全文
posted @ 2018-03-20 10:02 Nyan 阅读(641) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 52 下一页