From d499fe031e399f2912f717a4f6927835ce5adeaf Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 15 May 2020 14:09:19 +0800 Subject: [PATCH] release 1.6.0 --- CHANGELOG.en-US.md | 18 +++++++++++++++++- CHANGELOG.zh-CN.md | 15 +++++++++++++++ components/affix/index.jsx | 2 ++ components/carousel/style/index.less | 11 +++++++++++ components/modal/__tests__/confirm.test.js | 1 - components/select/style/index.less | 1 + components/table/filterDropdown.jsx | 2 +- components/table/interface.js | 1 + components/table/style/index.less | 4 ++-- package.json | 2 +- 10 files changed, 51 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 5c9dda89b..333a82c5b 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -10,6 +10,22 @@ --- + +## 1.6.0 + +`2020-05-15` + +- 🌟 Tootip supports custom components [741897](https://github.com/vueComponent/ant-design-vue/commit/741897be6742c752f0b0d29481add702ee7e7fb0) +- 🐞 Refactor Modal's underlying Portal components to solve the problem of delayed content update in Modal [#2244](https://github.com/vueComponent/ant-design-vue/issues/2244) +- 🐞 Fix Select option focus border style in Input.Group [#2224](https://github.com/vueComponent/ant-design-vue/pull/2224) +- 🐞 Fix Cascader option icon color when disabled [#2223](https://github.com/vueComponent/ant-design-vue/pull/2223) +- 🐞 Fix DatePicker color when separator is disabled [#2222](https://github.com/vueComponent/ant-design-vue/pull/2222) +- 🐞 Fix Carousel keyboard switch to Radio / Checkbox on inactive slide. +- 🐞 Fix the problem that Table filter menu is not displayed when less version is `2.x`. [#23272](https://github.com/ant-design/ant-design/pull/23272) +- 🐞 Fix the failure of Table `column.filtered`. +- 🐞 Fix the style problem of Input in Safari browser in Select `multiple` mode. [#22586](https://github.com/ant-design/ant-design/pull/22586) +- 🐞 Fix the problem that Descriptions can not adapt in small size. [#22407](https://github.com/ant-design/ant-design/pull/22407) + ## 1.5.6 `2020-05-09` @@ -205,7 +221,7 @@ `2019-11-27` -- 🌟 `getPopupContainer` of`ConfigProvider` Added popup context as the second parameter for uniform configuration of `getPopupContainer` in`Modal` [7a3c88] (https://github.com/vueComponent/ant-design -vue / commit / 7a3c88107598b4b1cf6842d3254b43dc26103c14) +- 🌟 `getPopupContainer` of`ConfigProvider` Added popup context as the second parameter for uniform configuration of `getPopupContainer` in`Modal` [7a3c88](https://github.com/vueComponent/ant-design -vue / commit / 7a3c88107598b4b1cf6842d3254b43dc26103c14) - 🐞 Fix `ConfigProvider` reporting error in Vue 2.5 [309baa](https://github.com/vueComponent/ant-design-vue/commit/309baa138a9c9a1885c17ef636c9132349024359) - 🐞 Fix `Menu` click event is triggered twice [#1450](https://github.com/vueComponent/ant-design-vue/issues/1427) - 🐞 Fix incorrect width of input box in `Select` [#1458](https://github.com/vueComponent/ant-design-vue/issues/1458) diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 3e2c43617..9a5605404 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -10,6 +10,21 @@ --- +## 1.6.0 + +`2020-05-15` + +- 🌟 Tootip 支持自定义组件 [741897](https://github.com/vueComponent/ant-design-vue/commit/741897be6742c752f0b0d29481add702ee7e7fb0) +- 🐞 重构 Modal、Drawer 底层 Portal 组件,解决 Modal、Drawer 内容更新延迟问题 [#2244](https://github.com/vueComponent/ant-design-vue/issues/2244) +- 🐞 修复 Input.Group 中 Select 选项 focus 边框样式 [#2224](https://github.com/vueComponent/ant-design-vue/pull/2224) +- 🐞 修复 Cascader 选项图标禁用时的颜色 [#2223](https://github.com/vueComponent/ant-design-vue/pull/2223) +- 🐞 修复 DatePicker 分隔符禁用时颜色 [#2222](https://github.com/vueComponent/ant-design-vue/pull/2222) +- 🐞 修复 Carousel 键盘切换到非活跃 slide 上的 Radio/Checkbox 的问题。 +- 🐞 修复 Table 筛选菜单在 less 版本为 `2.x` 时不显示的问题。[#23272](https://github.com/ant-design/ant-design/pull/23272) +- 🐞 修复 Table `column.filtered` 失效的问题。 +- 🐞 修复 Select `multiple` 模式下,Input 在 Safari 浏览器的样式问题。[#22586](https://github.com/ant-design/ant-design/pull/22586) +- 🐞 修复 Descriptions 在小尺寸下无法自适应的问题。[#22407](https://github.com/ant-design/ant-design/pull/22407) + ## 1.5.6 `2020-05-09` diff --git a/components/affix/index.jsx b/components/affix/index.jsx index d82d00716..d7019d017 100644 --- a/components/affix/index.jsx +++ b/components/affix/index.jsx @@ -100,6 +100,8 @@ const Affix = { clearTimeout(this.timeout); removeObserveTarget(this); this.updatePosition.cancel(); + // https://github.com/ant-design/ant-design/issues/22683 + this.lazyUpdatePosition.cancel(); }, methods: { getOffsetTop() { diff --git a/components/carousel/style/index.less b/components/carousel/style/index.less index a8376fd25..7c70287b0 100644 --- a/components/carousel/style/index.less +++ b/components/carousel/style/index.less @@ -31,8 +31,19 @@ .slick-slide { pointer-events: none; + // https://github.com/ant-design/ant-design/issues/23294 + input.@{ant-prefix}-radio-input, + input.@{ant-prefix}-checkbox-input { + visibility: hidden; + } + &.slick-active { pointer-events: auto; + + input.@{ant-prefix}-radio-input, + input.@{ant-prefix}-checkbox-input { + visibility: visible; + } } } } diff --git a/components/modal/__tests__/confirm.test.js b/components/modal/__tests__/confirm.test.js index 2deb81080..b66e1c87a 100644 --- a/components/modal/__tests__/confirm.test.js +++ b/components/modal/__tests__/confirm.test.js @@ -1,5 +1,4 @@ import Modal from '..'; -import { asyncExpect } from '@/tests/utils'; import { sleep } from '../../../tests/utils'; const { confirm } = Modal; diff --git a/components/select/style/index.less b/components/select/style/index.less index c647b7451..1c1aa9fe9 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -310,6 +310,7 @@ .@{select-prefix-cls}-search__field { width: 0.75em; max-width: 100%; + padding: 1px; } } diff --git a/components/table/filterDropdown.jsx b/components/table/filterDropdown.jsx index d3454a9dc..6f2ff8c99 100755 --- a/components/table/filterDropdown.jsx +++ b/components/table/filterDropdown.jsx @@ -216,7 +216,7 @@ export default { filterIcon = filterIcon(filtered, column); } const dropdownIconClass = classNames({ - [`${prefixCls}-selected`]: filtered, + [`${prefixCls}-selected`]: 'filtered' in column ? column.filtered : filtered, [`${prefixCls}-open`]: this.getDropdownVisible(), }); if (!filterIcon) { diff --git a/components/table/interface.js b/components/table/interface.js index dc26d9fb4..eee9338f8 100644 --- a/components/table/interface.js +++ b/components/table/interface.js @@ -36,6 +36,7 @@ export const ColumnProps = { fixed: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['left', 'right'])]), filterIcon: PropTypes.any, filteredValue: PropTypes.array, + filtered: PropTypes.bool, defaultFilteredValue: PropTypes.array, sortOrder: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['ascend', 'descend'])]), sortDirections: PropTypes.array, diff --git a/components/table/style/index.less b/components/table/style/index.less index 4051138ef..00a8d0e06 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -75,7 +75,7 @@ } } - .@{table-prefix-cls}-filter-selected.@{iconfont-css-prefix}-filter { + .@{table-prefix-cls}-filter-selected.@{iconfont-css-prefix} { color: @primary-color; } @@ -447,7 +447,7 @@ .@{ant-prefix}-dropdown-menu { // https://github.com/ant-design/ant-design/issues/4916 // https://github.com/ant-design/ant-design/issues/19542 - max-height: calc(100vh - 130px); + max-height: ~'calc(100vh - 130px)'; overflow-x: hidden; border: 0; border-radius: @border-radius-base @border-radius-base 0 0; diff --git a/package.json b/package.json index a4f10225e..605748557 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ant-design-vue", - "version": "1.5.6", + "version": "1.6.0", "title": "Ant Design Vue", "description": "An enterprise-class UI design language and Vue-based implementation", "keywords": [