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

Date Picker组件-日期范围 只使用面板 下面的确认按钮初始状态应该是disabled #5919

Open
5 tasks done
cokyhe opened this issue May 2, 2024 · 0 comments
Labels
untriaged need to sort

Comments

@cokyhe
Copy link

cokyhe commented May 2, 2024

描述错误

  • 只使用面板模式下,没选择任何的日期范围,但是 下面的确认按钮的状态却是 可点状态。点击返回的是null。
  • 只选择了开始日期,结束日期还没点呢,on-update:value返回的却是两个时间,无从判断成功选择了日期范围,只有个on-confirm回调可用,在点击确认按钮前在自定义展示上感觉捉襟见肘~

复现步骤

<n-date-picker panel type="daterange">
<template #footer>
        在点击确认按钮之前,这里精确展示成功选择的日期范围,如 2024-04-05 > 2024-05-05,好像没有事件可用
      </template>
</n-date-picker>

最小复现链接

none

系统信息

none

使用的包管理器

pnpm

验证

@cokyhe cokyhe added the untriaged need to sort label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

1 participant