Merge remote-tracking branch 'origin/main' into feat-4.3
commit
68a3f08a07
|
@ -10,6 +10,13 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 4.2.6
|
||||||
|
|
||||||
|
- 🐞 Fix Modal component aria-hidden error problem under chrome [#7823](https://github.com/vueComponent/ant-design-vue/issues/7823)
|
||||||
|
- 🐞 Fix the problem that the built-in input method of Safari automatically fills in the decimal point when inputting Chinese [#7918](https://github.com/vueComponent/ant-design-vue/issues/7918)
|
||||||
|
- 🐞 Fix InputNumber component disabled style problem [#7776](https://github.com/vueComponent/ant-design-vue/issues/7776)
|
||||||
|
- 🐞 Fix Select cannot lose focus problem [#7819](https://github.com/vueComponent/ant-design-vue/issues/7819)
|
||||||
|
|
||||||
## 4.2.5
|
## 4.2.5
|
||||||
|
|
||||||
- 🐞 Fix Empty component memory leak problem
|
- 🐞 Fix Empty component memory leak problem
|
||||||
|
|
|
@ -10,6 +10,13 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 4.2.6
|
||||||
|
|
||||||
|
- 🐞 修复 Modal 组件在 chrome 下,aria-hidden 报错问题 [#7823](https://github.com/vueComponent/ant-design-vue/issues/7823)
|
||||||
|
- 🐞 修复 Safari 下自带输入法 input 组件输入中文时,自动填写小数点问题 [#7918](https://github.com/vueComponent/ant-design-vue/issues/7918)
|
||||||
|
- 🐞 修复 InputNumber 组件 disabled 样式问题 [#7776](https://github.com/vueComponent/ant-design-vue/issues/7776)
|
||||||
|
- 🐞 修复 Select 无法失焦问题 [#7819](https://github.com/vueComponent/ant-design-vue/issues/7819)
|
||||||
|
|
||||||
## 4.2.5
|
## 4.2.5
|
||||||
|
|
||||||
- 🐞 修复 Empty 组件内存泄漏问题
|
- 🐞 修复 Empty 组件内存泄漏问题
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { getTransitionProps } from '../_util/transition';
|
||||||
import dialogPropTypes from './IDialogPropTypes';
|
import dialogPropTypes from './IDialogPropTypes';
|
||||||
import { offset } from './util';
|
import { offset } from './util';
|
||||||
const sentinelStyle = { width: 0, height: 0, overflow: 'hidden', outline: 'none' };
|
const sentinelStyle = { width: 0, height: 0, overflow: 'hidden', outline: 'none' };
|
||||||
|
const entityStyle = { outline: 'none' };
|
||||||
export type ContentRef = {
|
export type ContentRef = {
|
||||||
focus: () => void;
|
focus: () => void;
|
||||||
changeActive: (next: boolean) => void;
|
changeActive: (next: boolean) => void;
|
||||||
|
@ -28,14 +28,14 @@ export default defineComponent({
|
||||||
const dialogRef = ref<HTMLDivElement>();
|
const dialogRef = ref<HTMLDivElement>();
|
||||||
expose({
|
expose({
|
||||||
focus: () => {
|
focus: () => {
|
||||||
sentinelStartRef.value?.focus();
|
sentinelStartRef.value?.focus({ preventScroll: true });
|
||||||
},
|
},
|
||||||
changeActive: next => {
|
changeActive: next => {
|
||||||
const { activeElement } = document;
|
const { activeElement } = document;
|
||||||
if (next && activeElement === sentinelEndRef.value) {
|
if (next && activeElement === sentinelEndRef.value) {
|
||||||
sentinelStartRef.value.focus();
|
sentinelStartRef.value.focus({ preventScroll: true });
|
||||||
} else if (!next && activeElement === sentinelStartRef.value) {
|
} else if (!next && activeElement === sentinelStartRef.value) {
|
||||||
sentinelEndRef.value.focus();
|
sentinelEndRef.value.focus({ preventScroll: true });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -143,9 +143,10 @@ export default defineComponent({
|
||||||
onMousedown={onMousedown}
|
onMousedown={onMousedown}
|
||||||
onMouseup={onMouseup}
|
onMouseup={onMouseup}
|
||||||
>
|
>
|
||||||
<div tabindex={0} ref={sentinelStartRef} style={sentinelStyle} inert/>
|
<div tabindex={0} ref={sentinelStartRef} style={entityStyle}>
|
||||||
{modalRender ? modalRender({ originVNode: content }) : content}
|
{modalRender ? modalRender({ originVNode: content }) : content}
|
||||||
<div tabindex={0} ref={sentinelEndRef} style={sentinelStyle} inert/>
|
</div>
|
||||||
|
<div tabindex={0} ref={sentinelEndRef} style={sentinelStyle} />
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
|
@ -196,7 +196,7 @@ export default defineComponent({
|
||||||
ref={alignRef}
|
ref={alignRef}
|
||||||
monitorWindowResize
|
monitorWindowResize
|
||||||
disabled={alignDisabled.value}
|
disabled={alignDisabled.value}
|
||||||
align={align}
|
align={align as any}
|
||||||
onAlign={onInternalAlign}
|
onAlign={onInternalAlign}
|
||||||
v-slots={{
|
v-slots={{
|
||||||
default: () => (
|
default: () => (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ant-design-vue",
|
"name": "ant-design-vue",
|
||||||
"version": "4.2.5",
|
"version": "4.2.6",
|
||||||
"title": "Ant Design Vue",
|
"title": "Ant Design Vue",
|
||||||
"description": "An enterprise-class UI design language and Vue-based implementation",
|
"description": "An enterprise-class UI design language and Vue-based implementation",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
Loading…
Reference in New Issue