mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
mport -> import
This commit is contained in:
parent
1f15df4f14
commit
31b2517261
@ -37,7 +37,7 @@ import locale from 'antd/lib/date-picker/locale/zh_CN';
|
||||
```jsx
|
||||
// 默认语言为 en-US,如果你需要设置其他语言,推荐在入口文件全局设置 locale
|
||||
import moment from 'moment';
|
||||
mport 'moment/locale/zh-cn';
|
||||
import 'moment/locale/zh-cn';
|
||||
|
||||
<DatePicker defaultValue={moment('2015-01-01', 'YYYY-MM-DD')} />
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user