Skip to content

momentjs替换dayjs的文档错误 #8567

Description

@replace5
Image

vue的use是根据plugin是否是同一个引用来进行重复判断的,import DatePicker from 'ant-design-vue/es/date-picker/moment'和import antd from 'ant-design-vue'的DatePicker并非同一个对象实例,导致实际效果刚好相反,app.use(DatePicker)需要在app.use(antd)之后才能覆盖默认的 dayjs 版本

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions