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

🐛 [Bug]: date-picker时间选择问题 #2041

Open
zcloudedu opened this issue Sep 4, 2024 · 1 comment
Open

🐛 [Bug]: date-picker时间选择问题 #2041

zcloudedu opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zcloudedu
Copy link

Version

3.17.0

Vue Version

3.2.31

Link to minimal reproduction

date-picker配置picker-options中disabledDate时进行时间大小判断导致页面卡死:
const pickerOptions = {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2023-08-01').getTime()
}
}

Step to reproduce

整体禁用:


部分禁用:


只读模式:


文本框不可输入:

<script setup> import { ref } from 'vue' import { DatePicker as TinyDatePicker } from '@opentiny/vue' const disabledValue = ref('2020/10/29') const value = ref('') const dateRangeValue = ref('') const readonlyValue = ref('2020/10/29') const editableValue = ref('') const pickerOptions = { disabledDate(time) { return time.getTime() > Date.now() || time.getTime() < new Date('2023-08-01').getTime() } } </script> <style scoped lang="less"> .demo-date-picker-wrap { width: 280px; :deep(.tiny-date-editor--daterange.tiny-input__inner) { width: 280px; } & > * { margin-top: 12px; } } </style>

What is expected

No response

What is actually happening

No response

What is your project name

opentiny/tiny-vue

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: date-picker time selection problem

@kagol kagol added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants