diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index ce2e957e4..52b5c7ee6 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -10,6 +10,14 @@ --- +## 3.0.0-beta.13 + +`2022-03-04` + +- 🌟 Optimize the animation after Menu overflow to avoid flickering +- 🐞 Fix the issue of automatic parse when inputting invalid values when using dateFns [#5302](https://github.com/vueComponent/ant-design-vue/issues/5302) +- 🐞 Fix `Carousel` click error when using image [#5299](https://github.com/vueComponent/ant-design-vue/issues/5299) + ## 3.0.0-beta.12 `2022-03-02` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index edf40fdf2..a8d9edb4b 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -10,6 +10,14 @@ --- +## 3.0.0-beta.13 + +`2022-03-04` + +- 🌟 优化 Menu overflow 后动画,避免闪动 +- 🐞 修复日期组件使用 dateFns 时,输入不合法值时自动 parse 问题 [#5302](https://github.com/vueComponent/ant-design-vue/issues/5302) +- 🐞 修复 `Carousel` 使用图片时点击报错问题 [#5299](https://github.com/vueComponent/ant-design-vue/issues/5299) + ## 3.0.0-beta.12 `2022-03-02` diff --git a/components/vc-picker/generate/dateFns.ts b/components/vc-picker/generate/dateFns.ts index f4fa14b4c..89a8e08a4 100644 --- a/components/vc-picker/generate/dateFns.ts +++ b/components/vc-picker/generate/dateFns.ts @@ -105,7 +105,7 @@ const generateConfig: GenerateConfig = { const date = parseDate(formatText, format, new Date(), { locale: Locale[dealLocal(locale)], }); - if (isValid(date) && isMatch(formatText, format)) { + if (isValid(date) && formatText.length === format.length && isMatch(formatText, format)) { return date; } } diff --git a/components/vc-slick/utils/innerSliderUtils.js b/components/vc-slick/utils/innerSliderUtils.js index ec3658bf0..0d834a71e 100644 --- a/components/vc-slick/utils/innerSliderUtils.js +++ b/components/vc-slick/utils/innerSliderUtils.js @@ -309,7 +309,7 @@ export const keyHandler = (e, accessibility, rtl) => { }; export const swipeStart = (e, swipe, draggable) => { - e.target.tagName === 'IMG' && safePreventDefault.preventDefault(); + e.target.tagName === 'IMG' && safePreventDefault(e); if (!swipe || (!draggable && e.type.indexOf('mouse') !== -1)) return ''; return { dragging: true, diff --git a/components/vc-trigger/Popup/PopupInner.tsx b/components/vc-trigger/Popup/PopupInner.tsx index 7cd42546d..2c57ecff4 100644 --- a/components/vc-trigger/Popup/PopupInner.tsx +++ b/components/vc-trigger/Popup/PopupInner.tsx @@ -108,7 +108,7 @@ export default defineComponent({ }; watch( - [motion.value, status], + [motion, status], () => { if (!motion.value && status.value === 'motion') { goNextStatus(); diff --git a/package.json b/package.json index 3d246cf46..66111a4c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ant-design-vue", - "version": "3.0.0-beta.12", + "version": "3.0.0-beta.13", "title": "Ant Design Vue", "description": "An enterprise-class UI design language and Vue-based implementation", "keywords": [