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] 控制台警告Invalid prop: custom validator check failed for prop "status". #2224

Closed
zhaobo-98 opened this issue Mar 10, 2023 · 10 comments · Fixed by #2234
Closed
Assignees
Labels
🐞 bug Something isn't working need more info need more info to be published fixed, not be published

Comments

@zhaobo-98
Copy link

tdesign-vue 版本

1.2.1

重现链接

No response

重现步骤

使用DatePicker组件,控制台警告Invalid prop: custom validator check failed for prop "status".

found in

--->

期望结果

No response

实际结果

No response

框架版本

2.6.12

浏览器版本

No response

系统版本

MacOS13.2.1

Node版本

16.14.0

补充说明

No response

@github-actions
Copy link
Contributor

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

@ccccpj ccccpj changed the title [组件名称] 描述问题的标题 [DatePicker] 控制台警告Invalid prop: custom validator check failed for prop "status". Mar 10, 2023
@ccccpj ccccpj self-assigned this Mar 10, 2023
@ccccpj ccccpj added the need more info need more info label Mar 10, 2023
@github-actions
Copy link
Contributor

♥️ 有劳 @zhwachen @xiaosansiji @HQ-Lin 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @admin424344 。

@ccccpj
Copy link
Contributor

ccccpj commented Mar 10, 2023

官网未复现您提到的告警,可以的话请尽量提供复现代码方便排查

@zhaobo-98
Copy link
Author

在使用时间区间选择器会出现,使用非时间区间选择时不会出现这个问题

@zhaobo-98
Copy link
Author

image

image

@zhaobo-98
Copy link
Author

<t-date-range-picker v-model="" :presets="presets" allow-input enable-time-picker />

@ccccpj
Copy link
Contributor

ccccpj commented Mar 10, 2023

https://stackblitz.com/edit/angular-qy8tnz?file=package.json,src%2Fdemo.vue
是了一下未复现,或者你在 stackblitz 上复现一下试试

@zhaobo-98
Copy link
Author

@zhaobo-98
Copy link
Author

在选择时间的时候会报错:Invalid prop: type check failed for prop "selectedValue". Expected String with value "Wed Mar 08 2023 17:18:50 GMT+0800 (中国标准时间)", got Date

@ccccpj ccccpj added the 🐞 bug Something isn't working label Mar 13, 2023
@uyarn uyarn added the to be published fixed, not be published label Mar 14, 2023
@liubiliubi
Copy link

<t-popup placement="bottom"> <svg-icon class="icon" icon-class="shaixuan" :class="visible || (value && value.length > 0) ? 'is-active' : ''" /> <template #content> <t-date-range-picker v-model="value" allow-input :presets="presets" enable-time-picker /> </template> </t-popup>

我在使用t-date-range-picker同样遇到了这个报错,与原作者不同的是在外面嵌了一层t-popup,用的版本库是"tdesign-vue": "1.2.1", "vue": "2.6.10" e18f95cb-b208-487d-b3b5-9443e97ecf71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working need more info need more info to be published fixed, not be published
Projects
None yet
5 participants