fix #10822 #10955
Merged
fix #10822 #10955
+70
−1
Conversation
Deploy preview for ant-design ready! Built with commit b4467e6 |
Try |
ok. Changed to |
Codecov Report
@@ Coverage Diff @@
## feature-3.7.0 #10955 +/- ##
=================================================
+ Coverage 91.83% 91.85% +0.02%
=================================================
Files 196 196
Lines 4912 4912
Branches 1376 1376
=================================================
+ Hits 4511 4512 +1
+ Misses 397 396 -1
Partials 4 4
Continue to review full report at Codecov.
|
@yutingzhao1991 没问题的 PR 及时合掉吧。 |
a614a52
into
ant-design:feature-3.7.0
6 checks passed
6 checks passed
any idea on when 3.7.0 will be released with this feature? :) |
bors bot
added a commit
to mozilla/delivery-console
that referenced
this pull request
Jul 16, 2018
310: Update dependency antd to v3.7.0 r=rehandalal a=renovate[bot] This Pull Request updates dependency [antd](https://github.com/ant-design/ant-design) from `v3.6.6` to `v3.7.0` <details> <summary>Release Notes</summary> ### [`v3.7.0`](https://github.com/ant-design/ant-design/releases/3.7.0) [Compare Source](ant-design/ant-design@3.6.6...3.7.0) 3.7.0 is a heavy update that brings a lot of exciting changes and new features. Here are some highlights✨ : -🌟 Add drawer component : [Drawer](https://ant.design/components/drawer-cn/). [#​10791](`ant-design/ant-design#10791) -🌟 Horizontal menu automatically collapses when there is no enough space. [#​11234](`ant-design/ant-design#11234)  -🌟 Add `Tree.DirectoryTree` component as the built-in directory tree. [#​7749](`ant-design/ant-design#7749) Component Fixes / Enhancements: - Upgrade `rc-tree-select` to `2.0.5` for TreeSelect, refactored to fix the logic of the check. -🌟 Add `autoClearSearchValue` prop to clear the value of search input when multiple select is selected or deselected. [10996](`ant-design/ant-design#10996) -🌟 Add `searchValue` prop to set the value of search input. [6ff7dd8](ant-design/ant-design@6ff7dd8#diff-1e8e47abbdbe6e12d009aa61619ab22f) -🌟 Add `maxTagCount` prop to set the max count of visible tags. [fb96c9d](ant-design/ant-design@fb96c9d) -🌟 Add `maxTagPlaceholder` prop to set the content when the tag is hidden. [fb96c9d](ant-design/ant-design@fb96c9d) -🌟 Search input now supports case sensitive search. [#​10990](`ant-design/ant-design#10990) -🗑 Remove `label` prop and use `title` prop instead in the `treeData`. - Upgrade `rc-upload` to `2.5.0` for Upload. -🌟 Add `directory` prop to support folder uploading. [#​7315](`ant-design/ant-design#7315) -🌟 `action` prop supports to be the a function which returns a Promise object. [fd96967](ant-design/ant-design@fd96967) - Dropdown -🌟 Provide default margin for icon in the menu item. [8e60a59](ant-design/ant-design@8e60a59) -🌟 Be able to adjust the menu position for the trigger mode of `contextMenu` automatically. [16e4260](ant-design/ant-design@16e4260) - Upgrade `rc-table` to `6.2.2` for Table. [f2fddff](ant-design/ant-design@f2fddff) -🌟 Add `expanded` as the fourth param of `expandedRowRender` prop to get the expanded state of current row. [#​10379](`ant-design/ant-design#10379) -🌟 Add the ability to override the filter menu without the fully controlled component. [59cc3a8](ant-design/ant-design@59cc3a8) [@​chrvadala] -🌟 `filterIcon` prop supports to be a render function which returns ReactNode. [1af4392](ant-design/ant-design@1af4392) -🐞 Fix the row dislocation problem when the column is fixed. [#​10392](`ant-design/ant-design#10392) -🌟 Allow to pass `data-*`, `aria-*` and `role-*` props to the inner for Alert. [f0b684d](ant-design/ant-design@f0b684d) -🌟 Add `alt` prop for Avatar to set the text when the image is unable to display. [#​10798](`ant-design/ant-design#10798) -🌟 Allow to pass `data-*`, `aria-*` and `role-*` props to the inner Input for DatePicker. [e63f9d4](ant-design/ant-design@e63f9d4) -🌟 Add `event` object as the second param of `onSearch` prop for Input.Search. [#​11015](`ant-design/ant-design#11015) -🌟 Add `onBreakPoint` prop for Layout.Sider to be the callback function when breakpoint is triggered. [#​10750](`ant-design/ant-design#10750) [@​nuintun] -🌟 Add `okButtonProps` prop to set the props of ok button and add `cancelButtonProps` prop to set the props of cancal button for Modal. [#​10955](`ant-design/ant-design#10955) [@​djyde] -🌟 Add `strokeColor` prop to set the color of progress bar for Progress. [#​10725](`ant-design/ant-design#10725) -🌟 Add `buttonStyle` prop whose optional value is `outline` or `solid` to set the Radio.Group style. [60e3cfa](ant-design/ant-design@60e3cfa#diff-c2ee8b5a368a121e9d2cc2661212045d) -🌟 Add `setDefaultIndicator` static function to set global indicator for Spin. [#​10787](`ant-design/ant-design#10787) -🌟 Add `visible` prop to set the visibility for `Tag`. [4ac0277](ant-design/ant-design@4ac0277) - Upgrade `rc-tree` to `1.12.0` for Tree -🌟 Add `loadedKeys` prop to set the loaded nodes, which usually works with loadData prop. [#​10666](`ant-design/ant-design#10666) -🌟 Add `onLoad` prop to be the callback function when all the nodes are loaded. [c488aca](ant-design/ant-design@c488aca) -🗑 Deprecate `combobox` value for `Select[mode]` and please replace it with `AutoComplete`. [53046a4](ant-design/ant-design@53046a4) -🐞 Cascader adds `fieldNames` and discards the misspelled `filedNames`. [#​10896](`ant-design/ant-design#10896) -🐞 Fix Timeline dot not working with Tooltip. [0e3b67e](ant-design/ant-design@0e3b67e) -🐞 Fix border radius when avatar has custom size. [e1e6523](ant-design/ant-design@e1e6523) -🌟 Add `okButtonDisabled` and `cancelButtonDisabled` props to disable ok button and cancel button. [#​10955](`ant-design/ant-design#10955) --- 3.7.0是一个重磅更新,带来了很多激动人心的变化和新特性。 以下是一些亮点✨ : -🔥 增加抽屉组件 : [`Drawer`](https://ant.design/components/drawer-cn/) [#​10791](`ant-design/ant-design#10791) -🔥 Menu 增加一个横向菜单在空间不足时溢出部分自动收起的特性。[#​11234](`ant-design/ant-design#11234)  -🔥 新增 `Tree.DirectoryTree` 组件,作为内置的目录树。[#​7749](`ant-design/ant-design#7749) 组件修复/功能增强: - TreeSelect 组件升级 `rc-tree-select` 到 `2.0.5`,进行了重构,修复了 check 的逻辑。 -🌟 新增 `autoClearSearchValue` 属性,当多选模式下值被选择,用于自动清空搜索框。[10996](`ant-design/ant-design#10996) -🌟 新增 `searchValue` 属性,用于设置搜索框的值。[6ff7dd8](ant-design/ant-design@6ff7dd8#diff-1e8e47abbdbe6e12d009aa61619ab22f) -🌟 新增 `maxTagCount` 属性,用于设置显示标签的最大数量。[fb96c9d](ant-design/ant-design@fb96c9d) -🌟 新增 `maxTagPlaceholder` 属性,用于设置标签隐藏时显示的内容。[fb96c9d](ant-design/ant-design@fb96c9d) -🌟 搜索框支持大小写敏感。[#​10990](`ant-design/ant-design#10990) -🗑 `treeData` 数据格式中的 `label` 属性被废弃,使用 `title` 属性代替。 - Upload 组件升级 `rc-upload` 到 `2.5.0` -🌟 新增 `directory` 属性,支持上传一个文件夹。[#​7315](`ant-design/ant-design#7315) -🌟 `action` 属性支持作为一个返回 `Promise` 对象的函数,使用更加灵活。[fd96967](ant-design/ant-design@fd96967) - Dropdown 增加新特性,可以做为右键菜单来使用。 -🌟 给菜单项的 icon 提供默认的外间距样式。[8e60a59](ant-design/ant-design@8e60a59) -🌟 触发方式为 `contextMenu` 时自动调整菜单的位置。[16e4260](ant-design/ant-design@16e4260) - Table 组件升级 `rc-table` 到 `6.2.2`。 [f2fddff](ant-design/ant-design@f2fddff) -🌟 新增 `expanded` 作为 `expandedRowRender` 属性函数的第四个参数,用于获取当前行是否展开。[#​10379](`ant-design/ant-design#10379) -🌟 新增无须使用完全受控组件也能覆盖筛选菜单的能力。[59cc3a8](ant-design/ant-design@59cc3a8) [@​chrvadala] -🌟 `filterIcon` 属性支持作为一个返回 `ReactNode` 的函数。[1af4392](ant-design/ant-design@1af4392) -🐞 修复在固定列时导致的行错位的问题。[#​10392](`ant-design/ant-design#10392) -🐞 修复在组件中使用 `combobox` 模式的 `Select` 导致的重影问题。[#​10828](`ant-design/ant-design#10828) -🐞 修复 components 属性值不能变化的问题。 [c380186](ant-design/ant-design@c380186) -🗑 Select 组件废弃了 `combobox` 模式,请使用 `AutoComplete` 组件代替。[53046a4](ant-design/ant-design@53046a4) -🌟 Alert 组件允许传递 `data-*`、`aria-*` 和 `role-*` 属性到组件内部。[f0b684d](ant-design/ant-design@f0b684d) -🌟 Avatar 组件新增 `alt` 属性,用于设置图像无法显示时的替代文本。[#​10798](`ant-design/ant-design#10798) -🌟 DatePicker 组件允许传递 `data-*`、`aria-*` 和 `role-*` 属性到组件内部的 `Input`。[e63f9d4](ant-design/ant-design@e63f9d4) -🌟 Input.Search 组件新增 `event` 事件对象作为 `onSearch` 属性函数的第二个参数。[#​11015](`ant-design/ant-design#11015) -🌟 Layout.Sider 组件新增 `onBreakPoint` 属性,用作响应式布局的断点触发时的回调函数。[#​10750](`ant-design/ant-design#10750) [@​nuintun] -🌟 Modal 组件新增 `okButtonProps` 和 `cancelButtonProps` 属性,分别用于设置 `取消` 按钮和 `确定` 按钮的属性。[#​10955](`ant-design/ant-design#10955) [@​djyde] -🌟 Progress 组件新增 `strokeColor` 属性,用于设置进度条的颜色。[#​10725](`ant-design/ant-design#10725) -🌟 Radio.Group 组件新增 `buttonStyle` 属性 (可选值 `outline | solid`),用于设置 `RadioButton` 的风格样式。[60e3cfa](ant-design/ant-design@60e3cfa#diff-c2ee8b5a368a121e9d2cc2661212045d) -🌟 Spin 组件新增 `setDefaultIndicator` 静态方法,用于设置全局的加载指示符。[#​10787](`ant-design/ant-design#10787) -🌟 Tag 组件新增 `visible` 属性,用于设置是否显示标签。[4ac0277](ant-design/ant-design@4ac0277) - Tree 组件升级 `rc-tree` 到 `1.12.0` -🌟 新增 `loadedKeys` 属性,用于设置已经加载的节点,需要配合 `loadData` 使用。[#​10666](`ant-design/ant-design#10666) -🌟 新增 `onLoad` 属性,作为节点加载完毕时的回调函数。[c488aca](ant-design/ant-design@c488aca) -🌟 增加 `okButtonDisabled` and `cancelButtonDisabled` 属性用于禁用确定和取消按钮。[#​10955](`ant-design/ant-design#10955) -🌟 Cascader 新增 fieldNames 并废弃拼写错误的 filedNames。 [#​10896](`ant-design/ant-design#10896) -🐞 修复时间轴不能与`Tooltip`一起使用的问题。 [0e3b67e](ant-design/ant-design@0e3b67e) -🐞 修复当 Avata 自定义大小时,圆角不改变的问题。[e1e6523](ant-design/ant-design@e1e6523) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com). Co-authored-by: Renovate Bot <bot@renovateapp.com>
aiham
added a commit
to aiham/ant-design
that referenced
this pull request
May 29, 2019
- Also remove them from the CHANGELOG because they were never actually implemented, the prop was renamed to okButtonProps/cancelButtonProps within PR ant-design#10955 but these prop defs were left behind and ended up incorrectly included in the CHANGELOG.
Kiku-Reise
added a commit
to Kiku-Reise/ant-design
that referenced
this pull request
Jun 14, 2019
* Add fault-tolerant processing for rowSelection.getCheckboxProps * Upload prop onRemove: allow Promise as return type * onDragEnter的函数定义缺少一个expandedKeys:string[]? 官方的示例里有expandedKeys, 可是typescript定义里没有,所以扩展一下 * Fix docs (ant-design#16637) * Format (ant-design#16639) * `==` to `===` close ant-design#16640 * fix close animation * Update drawer.less * fix space missing in button (ant-design#16551) * feat: Add Mentions component (ant-design#16532) * init * first demo * support empty * add loading support * add form sample * update form sample * omit value & defaultValue * add 2 rest demo * placement support * update docs * fix test * update docs * add test case * fix lint * follow textarea style * update docs style *💄 unified Cascader selected style with Select * docs: Add the changelog of 3.18.2 (ant-design#16666) * Bump 3.18.2 * fix form typescript doc * prettier md files * Fix stylelint errors * Add renovate.json * Update renovate.json * Refined translation of St.Exupery quote including link to quote site * fix horizontal divider style *🆙 support ESC to close drawer *✅ update snapshots *💄 improve code style of Drawer * update drawer version * update config-provider test * fix shouldComponentUpdate * Upload prop onRemove: fix action https://github.com/react-component/upload/tree/d0cf0eecee3b31888791f8c57acddb575bd259d4#api * Update dependency logrocket to v1 *💄 chore some documents style *📝 update customize theme *🆙 rc-drawer 1.9.3 *🎬 Add example for Select ``optionLabelProp` prop, ant-design#16709 *✅ update snapshots *💄 fix emoji lint problem https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md * New component Descriptions (ant-design#14645) * add new component: DescriptionList * add warning message * docs: fix doc typo * feat: implement the size attribute * docs: fix doc typo * refactor: use new name Descriptions * test: snapshots updated * feat: support react15 * style: fix code style warring * style: better var name * style: better code style * style: merge css class * feat: add responsive config * fix: fix error title * style: use @border-radius-base * update snapshot * feat: set default column * test: add test script * style: fix property defaultProps is useless error * style: more robust code * style: fix codereview warning * style: fix review warning * use responsiveObserveserve * fix review warning * bug: add childrenArray copy,prevent changes to incoming parameters * fix dom error * fix typo * fix test * don't use this * snapshot updated * prettier md * remove descriptions md text * new rendering method * doc :add dot * style: add right border * Update index.en-US.md add missing prop `showTitle` in documentation of Pagination * adjust Carousel children change goto Logic (ant-design#16756) *📝 Add Programmatic Usage of antd colors * update preview demo *🐛 Fix Cascader displayRender not interactive close ant-design#16738 and ant-design#10433 this bug had been fixed in bc4143f before, but it was broken by ant-design#12407 here we change another method to fix ant-design#12395 * Create FUNDING.yml *📝 Add opencollective link * upload disabled remove * feat: Steps support clickable (ant-design#16773) * support clickable * update snapshot * update desc * Locale (feat ant-design#16752): Added Latvian localization (ant-design#16780) * update getPopupContainer (ant-design#16778) since select/index.d.ts requires getPopupContainer={triggerNode => HTMLElement} but parentNode actually is not HTMLElement. * Remove ancient prop types (ant-design#16705) * Remove ancient Modal.propTypes.align and Progress.propTypes.size * Remove linkRender and nameRender from Breadcrumb *🐛 Fix Input parser type close ant-design#15226 * feat: New calendar apis, headerRender method (ant-design#16535) * added new calendar api, renderHeader now we can customize calendar header * fixed typo for tests * error handling for renderHeader * covering all cases with tests * fixed tests and change console error to warning * fixed feedbacks and code optimization * cleanup callback function arguments * removed unused changes * fixed tests * added extra classes * fixed some comments * tying to fix test for remote * tying to fix test for remote in my local machin it works fine * tying to fix test for remote in my local machin it works fine * tying to fix test for remote in my local machin it works fine * updated test snapshots * fixed comment * fixed linting * fixed some texts * added header for CN and added argument types * removed extra row * Allow users to define where tooltips should appear on slider marks (ant-design#16641) * feat: add disable style to upload component * Fix the problem that the Slider's Tooltip is in the incorrect position when use modal (ant-design#16717) * Fix incorrect position of tooltip when use slider * Remove useless comment * Reduce code * Update * getTooltipPopupContainer default to body * Public Slider's ref * Add docs * Update docs *💄 Correct Statistic font color (ant-design#16801) close ant-design#15514 * docs: 3.19.0 changelog (ant-design#16796) * add changelog * add ant-design#16535 * update * add missing changelog * add ant-design#16801 changelog * adjust description * more desc * more info * change logo * fix: mentions ts definition update (ant-design#16814) * fix mentions ts definition * adjust logic of Mentions * fix: Tooltip not hidden when menu is in control mode (ant-design#16812) * fix: Select ts define (ant-design#16817) * fix: Descriptions warning should work as expect (ant-design#16819) * fix warning * add MockDate * Fix typescript compile error (ant-design#16816) *🐛 Fix typo name icons, add warning and update docs (ant-design#16818) close ant-design#13007 close ant-design#16810 deps: ant-design/ant-design-icons#63 * docs: 3.19.1 change-log (ant-design#16820) * update changelog * add missing one *✅ Add test case for TransButton * fix: Tabs card vertical support scroll (ant-design#16825) * Update util.test.js * fix(Transfer): set state on an unmounted component (ant-design#16822) * chore: Add warning if use `inlineCollapsed` under Sider (ant-design#16826) * typescript: adding forceSubmenuRender as MenuProps *💄 Optimize examples code style * Update index.en-US.md *⚡ export TypographyProps close ant-design#15190 * add onChange prop type definition to Steps * add onChange prop type definition to Steps (ant-design#16845) * add semicolon * fix: add webkitRelativePath (ant-design#16850) * fix: fix type of RcFile * fix: fix type of action in UploadProps * Update xhr2 requirement from ^0.1.4 to ^0.2.0 Updates the requirements on [xhr2](https://github.com/pwnall/node-xhr2) to permit the latest version. - [Release notes](https://github.com/pwnall/node-xhr2/releases) - [Commits](pwnall/node-xhr2@v0.1.4...0.2.0) * Remove okButtonDisabled/cancelButtonDisabled never used prop defs - Also remove them from the CHANGELOG because they were never actually implemented, the prop was renamed to okButtonProps/cancelButtonProps within PR ant-design#10955 but these prop defs were left behind and ended up incorrectly included in the CHANGELOG. * 修复Breadcrumb.tsx 中处理route.children 路径不对 <Menu.Item key={child.breadcrumbName || child.path}> {itemRender(child, params, routes, [...paths, this.getPath(child.path, params)])} </Menu.Item> itemRender(...args) 中路径应该到拼接当前child.path * fix Breadcrumb.tsx getPath() 参数赋默认值 * fix: use @error-color & @warning-color instead of @text-color-danger & @text-color-warning ant-design#16856 * fix Breadcrumb.tsx 对于子路径是否为空进行判断 * add antd pro 4.0 badge (ant-design#16894) * Update ansi-styles requirement from ^3.2.1 to ^4.0.0 Updates the requirements on [ansi-styles](https://github.com/chalk/ansi-styles) to permit the latest version. - [Release notes](https://github.com/chalk/ansi-styles/releases) - [Commits](chalk/ansi-styles@v3.2.1...v4.0.0) * doc: changelog 3.19.2 * doc: changelog * tweak: order changelog * doc: changelog * doc: changelog * doc: changelog * doc: changelog * doc: format * doc: changelog *📝 changelog *📝 changelog * release: 3.19.2 *🐛 fixes ant-design#16871 Cascader - Space during search *🔧 Add packtracker * Remove useless type * fix: Transfer render Empty when customize without data (ant-design#16925) * fix: Hide Spinner of InputNumber when type is number (ant-design#16926) * fix: Hide Spinner of InputNumber when type is number * Firefox not obedient * fix: Breadcrumb validateDOMNesting warning (ant-design#16929) *🐛 Fix Breadcrumb validateDOMNesting warning ``` Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>. in a (created by Context.Consumer) in span (created by Context.Consumer) in a (created by Context.Consumer) in Trigger (created by Dropdown) in Dropdown (created by Context.Consumer) in Dropdown (created by Context.Consumer) in span (created by Context.Consumer) in BreadcrumbItem (created by Context.Consumer) in div (created by Context.Consumer) in Breadcrumb (created by TestBreadcrumb) in TestBreadcrumb ``` *✅ update snapshots * Update Breadcrumb.tsx *🐛 Fix abnormal scrollbar in Chrome when rowSelection and title work together close ant-design#16912 *🐛 Fix Table header extra scrollbar control close ant-design#4637 close ant-design#14211 react-component/table#333 *✅ update snapshots *💄 Fix scrollbar border bottom *✅ update snapshots *📝 fix size toc overflow style *💄 use marginRight remind developer * fix: test ci * rebase * fix: Table miss border-raidus in Firefox (ant-design#16957) * Revert "Merge pull request ant-design#16174 from ant-design/fix-table-chrome" This reverts commit 686c1fc, reversing changes made to 924afc2. * firefox only * add comment *✅ update snapshots *🆙 upgrade all deps to latest version *🆙 fix for typescript@3.5 *🔧 ignore other files for packtracker * Suppress autoprefixer warning * add new less var * less variable should be extended *✅ Fix ci *📝 Add FAQ for DatePicker/RangePicker mode prop usage * fix packtracker exclude_assets *🐛 Fix Divider `orientation="center"` style close ant-design#16987 * Add missing spanish translations * Export TextProps and update english in error *✅ Fix test snapshots * Fix typo * Update colors.zh-CN.md * docs: 3.19.3 change-log (ant-design#16998) * chore: update package.json * fix: Table with sort should reset to first page (ant-design#17020) * sort reset pagination * add test case *🐛 Fix margin issue of PageHeader extra close ant-design#17025 *⬆️ Update majo requirement from ^0.7.1 to ^0.8.0 Updates the requirements on [majo](https://github.com/egoist/majo) to permit the latest version. - [Release notes](https://github.com/egoist/majo/releases) - [Commits](egoist/majo@v0.7.1...v0.8.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> *🐛 Fix margin issue of PageHeader extra continually * update calendar (ant-design#17038) *💄 Keep submenu selected style * Update index.less * Update default.less * Update certain-category.md * Update uncertain-category.md *✅ update snapshots *📝 Fix image in feedback spec documentation *✅ update snapshots * use calc to fix tree line (ant-design#17055) * fix: add link button to basic demo of button docs *💄 adjust bordered table header scrollbar style *💄 optimize bordered table header scrollbar style continue after ant-design#17065 * Fix grammar on message documentation * fix: remove margin for collapse arrow (ant-design#17009) * remove margin for collapse arrow * change translateY to -21px in collapse * remove line-height to center arrow * Fixing date formats for Arabic-Egypt locale * Update index.zh-CN.md add getPopupContainer props *🐛 Fix Input not align with other components in Chrome close ant-design#17082
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Add🎉
okButtonDisabled
andcancelButtonDisabled
props to disable ok button and cancel buttonThey are
false
by default.