Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antd@4.6.6 rc-picker2.1.0 用dayjs替换moment部分中文不显示的问题 #195

Open
deng565430 opened this issue Dec 23, 2020 · 1 comment

Comments

@deng565430
Copy link

import dayjs, { Dayjs } from 'dayjs';
import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';
import generatePicker from 'antd/es/date-picker/generatePicker';
import 'antd/es/date-picker/style/index';
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-CN')

const DatePicker = generatePicker<Dayjs>(dayjsGenerateConfig);

export default DatePicker;

我替换rc-picker@1.6.1版本是好的

image

@ZeroJsus
Copy link

我这里遇到的问题 是设置了国际化 但是不展示 设置了dayjs的国际化之后 这个问题自然解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants