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

[DatePicker] 给time设置初始值,时间筛选面板定位不准确 #4847

Open
Riouu opened this issue Dec 18, 2024 · 2 comments
Open

[DatePicker] 给time设置初始值,时间筛选面板定位不准确 #4847

Riouu opened this issue Dec 18, 2024 · 2 comments
Labels
usage the issue about component usage

Comments

@Riouu
Copy link

Riouu commented Dec 18, 2024

tdesign-vue-next 版本

^1.10.2

重现链接

No response

重现步骤

image
format为“MM-DD”,valueType为“YYYY-MM-DD HH:mm:ss”时,给time设置初始值,下拉面板的时间选择器定位范围不准确。
<t-date-range-picker
v-model="time"
w-300
format="MM-DD"
value-type="YYYY-MM-DD HH:mm:ss"
label="时间范围"
can-filter-all
:disable-date="{ before: userStore.accountTime }"
:clearable="false"
@change="handleTimeChange"
/>
const time = ref<DateValue[]>([
dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
]);

期望结果

期望下拉时间选择器范围与当前选择时间匹配

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @Riouu,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Dec 18, 2024

enableTimePicker 需要开启下
image

@uyarn uyarn added the usage the issue about component usage label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage the issue about component usage
Projects
None yet
Development

No branches or pull requests

2 participants