Skip to content

Commit 2bdeed1

Browse files
authored
typo: fix docs ant Rect is spelled as React (#7082)
1 parent 49a6b58 commit 2bdeed1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

components/input/__tests__/Search.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Input.Search', () => {
3535
expect(wrapper.html()).toMatchSnapshot();
3636
});
3737
});
38-
it('should support ReactNode suffix without error', () => {
38+
it('should support VueNode suffix without error', () => {
3939
const fn = () => {
4040
mount({
4141
render() {

components/menu/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const groupItem = {
105105
| Param | Description | Type | Default value | Version |
106106
| -------- | ---------------------- | --------------------------------- | ------------- | ------- |
107107
| children | Sub-menu items | [MenuItemType\[\]](#MenuItemType) | - | |
108-
| label | The title of the group | ReactNode | - | |
108+
| label | The title of the group | VueNode | - | |
109109

110110
#### MenuDividerType
111111

components/menu/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const groupItem = {
105105
| 参数 | 说明 | 类型 | 默认值 | 版本 |
106106
| -------- | ------------ | --------------------------------- | ------ | ---- |
107107
| children | 分组的菜单项 | [MenuItemType\[\]](#MenuItemType) | - | |
108-
| label | 分组标题 | ReactNode | - | |
108+
| label | 分组标题 | VueNode | - | |
109109

110110
#### MenuDividerType
111111

components/segmented/src/MotionThumb.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { onBeforeUnmount, nextTick, Transition, watch, defineComponent, computed
44
import { anyType } from '../../_util/type';
55
import type { SegmentedValue } from './segmented';
66

7-
type ThumbReact = {
7+
type ThumbRect = {
88
left: number;
99
right: number;
1010
width: number;
@@ -20,7 +20,7 @@ export interface MotionThumbInterface {
2020
direction?: 'ltr' | 'rtl';
2121
}
2222

23-
const calcThumbStyle = (targetElement: HTMLElement | null | undefined): ThumbReact =>
23+
const calcThumbStyle = (targetElement: HTMLElement | null | undefined): ThumbRect =>
2424
targetElement
2525
? {
2626
left: targetElement.offsetLeft,
@@ -58,8 +58,8 @@ const MotionThumb = defineComponent({
5858
return ele?.offsetParent && ele;
5959
};
6060

61-
const prevStyle = ref<ThumbReact>(null);
62-
const nextStyle = ref<ThumbReact>(null);
61+
const prevStyle = ref<ThumbRect>(null);
62+
const nextStyle = ref<ThumbRect>(null);
6363

6464
watch(
6565
() => props.value,

0 commit comments

Comments
 (0)