Skip to content

Commit 00f1047

Browse files
committed
feat: merge master
2 parents 5d8d924 + 00656b5 commit 00f1047

File tree

17 files changed

+43
-27
lines changed

17 files changed

+43
-27
lines changed

components/_util/ContainerRender.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default {
3636
this._component && this._component.$destroy();
3737
this.container.parentNode.removeChild(this.container);
3838
this.container = null;
39+
this._component = null;
3940
}
4041
},
4142

components/dropdown/demo/dropdown-button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A button is on the left, and a related functional menu is on the right.
1111
```html
1212
<template>
1313
<div>
14-
<a-dropdown-button @click="handleMenuClick">
14+
<a-dropdown-button @click="handleButtonClick">
1515
Dropdown
1616
<a-menu slot="overlay" @click="handleMenuClick">
1717
<a-menu-item key="1"><a-icon type="user" />1st menu item</a-menu-item>

components/locale-provider/index.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ const LocaleProvider = {
4949
...this.locale,
5050
exist: true,
5151
};
52-
this.$nextTick(() => {
53-
setMomentLocale(val);
54-
});
52+
setMomentLocale(val);
5553
},
5654
},
5755
created() {

components/modal/ConfirmDialog.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default {
2424
okButtonProps,
2525
cancelButtonProps,
2626
iconType = 'question-circle',
27+
closable = false,
2728
} = props;
2829
warning(
2930
!('iconType' in props),
@@ -73,6 +74,7 @@ export default {
7374
wrapClassName={classNames({ [`${contentPrefixCls}-centered`]: !!centered })}
7475
onCancel={e => close({ triggerCancel: true }, e)}
7576
visible={visible}
77+
closable={closable}
7678
title=""
7779
transitionName={transitionName}
7880
footer=""

components/modal/index.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The properties of the object are follows:
5454
| autoFocusButton | Specify which button to autofocus | null\|string: `ok` `cancel` | `ok` |
5555
| cancelText | Text of the Cancel button | string | `Cancel` |
5656
| centered | Centered Modal | Boolean | `false` |
57+
| closable | Whether a close (x) button is visible on top right of the modal dialog or not | boolean | `false` |
5758
| class | class of container | string | - |
5859
| content | Content | string\|vNode | - |
5960
| icon | custom icon (`Added in 1.40.0`) | string\|slot | `<Icon type="question-circle">` |

components/modal/index.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
| autoFocusButton | 指定自动获得焦点的按钮 | null\|string: `ok` `cancel` | `ok` |
5454
| cancelText | 取消按钮文字 | string | 取消 |
5555
| centered | 垂直居中展示 Modal | Boolean | `false` |
56+
| closable | 是否显示右上角的关闭按钮 | boolean | `false` |
5657
| class | 容器类名 | string | - |
5758
| content | 内容 | string\|vNode ||
5859
| icon | 自定义图标(1.40.0 新增) | string\|slot | `<Icon type="question-circle">` |

components/modal/style/confirm.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
display: none;
88
}
99

10-
.@{ant-prefix}-modal-close {
11-
display: none;
12-
}
13-
1410
.@{ant-prefix}-modal-body {
1511
padding: 32px 32px 24px;
1612
}

components/tooltip/abstractTooltipProps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ export default () => ({
2828
getPopupContainer: PropTypes.func,
2929
arrowPointAtCenter: PropTypes.bool.def(false),
3030
autoAdjustOverflow: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]).def(true),
31+
destroyTooltipOnHide: PropTypes.bool.def(false),
3132
align: PropTypes.object.def({}),
3233
});

components/tooltip/index.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
2121
| placement | The position of the tooltip relative to the target, which can be one of `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` |
2222
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` \| `contextmenu` | `hover` |
2323
| visible(v-model) | Whether the floating tooltip card is visible or not | boolean | `false` |
24+
| destroyTooltipOnHide | Whether to destroy tooltip on hide | boolean | false |
2425
| align | this value will be merged into placement's config, please refer to the settings [dom-align](https://github.com/yiminghe/dom-align) | Object | - |
2526

2627
### events

components/tooltip/index.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | top |
2222
| trigger | 触发行为,可选 `hover/focus/click/contextmenu` | string | hover |
2323
| visible(v-model) | 用于手动控制浮层显隐 | boolean | false |
24+
| destroyTooltipOnHide | 隐藏后是否销毁tooltip | boolean | false |
2425
| align | 该值将合并到 placement 的配置中,设置参考 [dom-align](https://github.com/yiminghe/dom-align) | Object ||
2526

2627
### 事件

0 commit comments

Comments
 (0)