Compare commits

...

5 Commits

Author SHA1 Message Date
chenjiahan
ffefe3002f docs(changelog): 3.5.1 2022-06-12 12:49:53 +08:00
chenjiahan
df03886053 release: 3.5.1 2022-06-12 12:47:02 +08:00
neverland
eae8d47cee
fix(Calendar): failed to render months when not poppable (#10707) 2022-06-12 12:42:37 +08:00
goo-yyh
c38fed70be
fix(Calender): failed to render months after changing maxDate or minDate (#10668)
Co-authored-by: yuyuehui.yyh <yuyuehui.yyh@digital-engine.com>
2022-06-12 12:37:46 +08:00
neverland
8ee4080d69
fix(Popup): should not auto close on deactivated if not using teleport (#10706) 2022-06-12 12:25:23 +08:00
5 changed files with 37 additions and 2 deletions

View File

@ -19,6 +19,21 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
## Details
### [v3.5.1](https://github.com/youzan/vant/compare/v3.5.0...v3.5.1)
`2022-06-12`
**Feature**
- PullRefresh: add change event [#10702](https://github.com/youzan/vant/issues/10702)
**Bug Fixes**
- Calender: failed to render months after changing maxDate or minDate [#10668](https://github.com/youzan/vant/issues/10668)
- Popup: should not auto close on deactivated if not using teleport [#10706](https://github.com/youzan/vant/issues/10706)
- Toast: fix Toast.clear typing [#10699](https://github.com/youzan/vant/issues/10699)
- Uploader: preview-options images should be optional [#10698](https://github.com/youzan/vant/issues/10698)
### [v3.5.0](https://github.com/youzan/vant/compare/v3.4.9...v3.5.0)
`2022-06-05`

View File

@ -19,6 +19,21 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
## 更新内容
### [v3.5.1](https://github.com/youzan/vant/compare/v3.5.0...v3.5.1)
`2022-06-12`
**Feature**
- PullRefresh: 新增 change 事件 [#10702](https://github.com/youzan/vant/issues/10702)
**Bug Fixes**
- Calender: 修复动态设置 maxDate 或 minDate 可能导致月份渲染失败的问题 [#10668](https://github.com/youzan/vant/issues/10668)
- Popup: 修复未使用 teleport 时 deactivated 后会自动关闭的问题 [#10706](https://github.com/youzan/vant/issues/10706)
- Toast: 修复 toast.clear 缺少类型定义的问题 [#10699](https://github.com/youzan/vant/issues/10699)
- Uploader: 修复 preview-options 属性中 images 为必填字段的问题 [#10698](https://github.com/youzan/vant/issues/10698)
### [v3.5.0](https://github.com/youzan/vant/compare/v3.4.9...v3.5.0)
`2022-06-05`

View File

@ -1,6 +1,6 @@
{
"name": "vant",
"version": "3.5.0",
"version": "3.5.1",
"description": "Mobile UI Components built on Vue",
"main": "lib/vant.cjs.js",
"module": "es/index.mjs",

View File

@ -185,6 +185,10 @@ export default defineComponent({
const months: Date[] = [];
const cursor = new Date(props.minDate);
if (props.lazyRender && !props.show && props.poppable) {
return months;
}
cursor.setDate(1);
do {

View File

@ -264,7 +264,8 @@ export default defineComponent({
});
onDeactivated(() => {
if (props.show) {
// teleported popup should be closed when deactivated
if (props.show && props.teleport) {
close();
shouldReopen = true;
}