Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

ant-design-vue a-date-picker 怎样显示中文?

我按照官方文档全局引入中文,但是日期选择这里月和星期不是中文。
image.png
image.png
网上搜索的结果都是说moment的问题,但是我按照其他文章的说法并不能成功,我目前用了一个比较笨的办法,即在main.js全局强制moment.js为中文
image.png
image.png
虽然可以为中文了但我不觉得这个办法比较好,想问问有没有搞过ant-design-vue的朋友帮忙指点指点这个问题,谢谢。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

<a-config-provider>全局注册了吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...