![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BugMyself
遇见connie
这个作者很懒,什么都没留下…
展开
-
antd 全局配置中文
在项目中多处使用 antd RangePicker 组件的时候,发现月,周都是英文显示,网上搜的解决方法是使用 LocaleProvider进行全局配置,但是使用后会报出一个 warningWarning: [antd: LocaleProvider] LocaleProvider is deprecated. Please use locale with ConfigProvider instead: http://u.ant.design/locale解决方法,直接使用 ConfigProvider原创 2020-06-04 11:20:25 · 3737 阅读 · 0 评论 -
antd From 表单报错:warning.js:6 Warning: [antd: Switch] value is not validate prop, do you mean checked?
在使用 antd 时,form 表单中使用 switch 报错:warning.js:6 Warning: [antd: Switch] value is not validate prop, do you mean checked?<FormItem label="开关"> {getFieldDecorator('switch', { })(<Switch onChange={this.onChange} />)}</FormItem>查看文档得知原创 2020-06-02 11:37:19 · 12442 阅读 · 0 评论