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

日期选择框问题 #657

Open
shenmr opened this issue Nov 30, 2023 · 2 comments
Open

日期选择框问题 #657

shenmr opened this issue Nov 30, 2023 · 2 comments

Comments

@shenmr
Copy link

shenmr commented Nov 30, 2023

@form-create/ant-design-vue 3.1.26版本

rangePicker组件设置预设范围presets后,选择后不能关闭选择框,除非是双击或者点击外面才行

代码:
{
type: 'rangePicker',
field: 'date',
title: '日期范围',
props: {
placeholder: ['开始日期', '结束日期'],
valueFormat: 'YYYY-MM-DD',
disabledDate: (current: Dayjs) => current && (current > dayjs().endOf('day') || current <= dayjs('2019-05-30')),
presets: [{ label: '全部范围', value: [dayjs('2019-05-30'), dayjs()] }],
}
}

@xaboy
Copy link
Owner

xaboy commented Jan 2, 2024

可能是antdv版本问题,我使用4.x版本没有复现

@shenmr
Copy link
Author

shenmr commented Jan 2, 2024 via email

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