vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.24k stars 3.79k forks source link

ant-desgin-vue v3 版本使用自定义时间库,时间选择器组件报错 #6645

Closed suiboyu closed 1 year ago

suiboyu commented 1 year ago

Version

3.2.20

Environment

"ant-design-vue": "^3.2.16", "vue": "^3.2.37"

Reproduction link

Edit on CodeSandbox

Steps to reproduce

没有步骤,打开时间选择器组件就可以看到样式异常

What is expected?

正常的时间选择器样式

What is actually happening?

时间选择器样式异常

daiwanxing commented 1 year ago

antd v3 开始内置的日期库已经从 moment.js 切换成 dayjs 了,没有任何理由再用 moment.js。

https://github.com/vueComponent/ant-design-vue/discussions/4575#discussioncomment-1237789

tangjinzhou commented 1 year ago

image 冲突了呀,控制台已经告诉你了

suiboyu commented 1 year ago

可是这些代码都是从官网上面找到的,如果删除了在 main.ts 中引入的信息,页面的显示同样还是异常。项目中大量使用了 moment,使用 dayjs 进行替换,有点不太现实。希望官方可以看一下这个问题

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.