Skip to content

typo: fix docs ant Rect is spelled as React #7082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/input/__tests__/Search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Input.Search', () => {
expect(wrapper.html()).toMatchSnapshot();
});
});
it('should support ReactNode suffix without error', () => {
it('should support VueNode suffix without error', () => {
const fn = () => {
mount({
render() {
Expand Down
2 changes: 1 addition & 1 deletion components/menu/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const groupItem = {
| Param | Description | Type | Default value | Version |
| -------- | ---------------------- | --------------------------------- | ------------- | ------- |
| children | Sub-menu items | [MenuItemType\[\]](#MenuItemType) | - | |
| label | The title of the group | ReactNode | - | |
| label | The title of the group | VueNode | - | |

#### MenuDividerType

Expand Down
2 changes: 1 addition & 1 deletion components/menu/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const groupItem = {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| -------- | ------------ | --------------------------------- | ------ | ---- |
| children | 分组的菜单项 | [MenuItemType\[\]](#MenuItemType) | - | |
| label | 分组标题 | ReactNode | - | |
| label | 分组标题 | VueNode | - | |

#### MenuDividerType

Expand Down
8 changes: 4 additions & 4 deletions components/segmented/src/MotionThumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { onBeforeUnmount, nextTick, Transition, watch, defineComponent, computed
import { anyType } from '../../_util/type';
import type { SegmentedValue } from './segmented';

type ThumbReact = {
type ThumbRect = {
left: number;
right: number;
width: number;
Expand All @@ -20,7 +20,7 @@ export interface MotionThumbInterface {
direction?: 'ltr' | 'rtl';
}

const calcThumbStyle = (targetElement: HTMLElement | null | undefined): ThumbReact =>
const calcThumbStyle = (targetElement: HTMLElement | null | undefined): ThumbRect =>
targetElement
? {
left: targetElement.offsetLeft,
Expand Down Expand Up @@ -58,8 +58,8 @@ const MotionThumb = defineComponent({
return ele?.offsetParent && ele;
};

const prevStyle = ref<ThumbReact>(null);
const nextStyle = ref<ThumbReact>(null);
const prevStyle = ref<ThumbRect>(null);
const nextStyle = ref<ThumbRect>(null);

watch(
() => props.value,
Expand Down