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

Bug: Form表单使用DatePicker组件出现错误,点击无弹出,控制台报错 #5240

Closed
5 tasks done
tuziyaya opened this issue Dec 26, 2024 · 1 comment
Closed
5 tasks done

Comments

@tuziyaya
Copy link

Version

Vben Admin V5

Describe the bug?

Form表单使用DatePicker组件出现错误,点击无弹出,控制台报错,报错详情为DatePicker组件的,hideHeader.value is undefined

使用代码:

{ label: '到货时间', fieldName: 'expectArrivalTime', component: 'DatePicker', defaultValue: "2024-12-26 00:00:00", componentProps: { format: "YYYY-MM-DD HH:mm:ss", valueFormat: "YYYY-MM-DD HH:mm:ss", showTime: true }, rules: "selectRequired" },

Reproduction

报错提示

hideHeader.value is undefined

System Info

-

Relevant log output

TypeError: Cannot read properties of undefined (reading 'value')
    at DateHeader (ant-design-vue.js?v=31b5ee6e:35793:18)
    at renderComponentRoot (chunk-Z6I7BKUU.js?v=31b5ee6e:8357:13)
    at ReactiveEffect.componentUpdateFn [as fn] (chunk-Z6I7BKUU.js?v=31b5ee6e:7152:46)
    at ReactiveEffect.run (chunk-Z6I7BKUU.js?v=31b5ee6e:230:19)
    at setupRenderEffect (chunk-Z6I7BKUU.js?v=31b5ee6e:7287:5)
    at mountComponent (chunk-Z6I7BKUU.js?v=31b5ee6e:7062:7)
    at processComponent (chunk-Z6I7BKUU.js?v=31b5ee6e:7015:9)
    at patch (chunk-Z6I7BKUU.js?v=31b5ee6e:6531:11)
    at mountChildren (chunk-Z6I7BKUU.js?v=31b5ee6e:6763:7)
    at mountElement (chunk-Z6I7BKUU.js?v=31b5ee6e:6686:7)

Validations

Copy link

Hello @tuziyaya. Please provide the complete reproduction steps and code. Issues labeled by needs reproduction will be closed if no activities in 3 days.

@anncwb anncwb closed this as completed Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants