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

pull/7102/head
lyn 2023-11-11 09:31:38 +08:00 committed by GitHub
parent 49a6b588c1
commit 2bdeed1432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -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() {

View File

@ -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

View File

@ -105,7 +105,7 @@ const groupItem = {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| -------- | ------------ | --------------------------------- | ------ | ---- |
| children | 分组的菜单项 | [MenuItemType\[\]](#MenuItemType) | - | |
| label | 分组标题 | ReactNode | - | |
| label | 分组标题 | VueNode | - | |
#### MenuDividerType

View File

@ -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;
@ -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,
@ -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,