Open stwflyfox opened 2 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: The height value setting in the calendar view is invalid
@stwflyfox 可以通过覆盖样式解决。
.tiny-calendar-view .tiny-calendar-view-month__main .main-container>ul>li {
height: 50px; // 默认是 80px
}
vue项目中可以使用 :deep()
做样式穿透:
.my-calendar-view.tiny-calendar-view :deep(.tiny-calendar-view-month__main .main-container>ul>li) {
height: 50px; // 默认是 80px
}
效果如下:
示例代码可参考:
height没有很好的处理接收值的类型,API里的描述也不够清楚。这里的height只支持时间线模式,并且值需要带上px。所以我们准备处理接下来的场景,兼容接收数字(500)和字符串('500px'),并优化api描述。谢谢提出的意见。
Bot detected the issue body's language is not English, translate it automatically.
height does not handle the type of received value well, and the description in the API is not clear enough. The height here only supports timeline mode, and the value needs to be in px. So we are ready to handle the next scenario, compatible with receiving numbers (500) and strings ('500px'), and optimize the API description. Thanks for your comments.
Version
latest
Vue Version
vue3
Link to minimal reproduction
none
Step to reproduce
What is expected
No response
What is actually happening
No response
What is your project name
TinyVue
Any additional comments (optional)
No response