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

时间选择器 Time Picker 格式化(format="HH:mm:ss.SSS")后无法在编辑框内修改毫秒数 #5223

Closed
LuckyHookin opened this issue Sep 11, 2023 · 1 comment
Labels
invalid This doesn't seem right

Comments

@LuckyHookin
Copy link

首先看官方文档:https://www.naiveui.com/zh-CN/light/components/time-picker#format.vue
动画1
图示官方文档是允许在编辑框内修改值的。

但是当 format="HH:mm:ss.SSS" 时,意外发生了:
动画1
image
似乎 const {value: mergedValue} = mergedValueRef; 返回的时间戳是不含毫秒的

代码位置:https://github.com/tusen-ai/naive-ui/blob/cdca7e76c3fae6a723ab5abbd16afe31e226759b/src/time-picker/src/TimePicker.tsx#L658C7-L658C7

Demo:https://codesandbox.io/s/inspiring-kowalevski-rpzp2q?file=/src/Demo.vue

@github-actions
Copy link

Hello @LuckyHookin, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

你好 @LuckyHookin,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions github-actions bot added the invalid This doesn't seem right label Sep 11, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant