typo: fix docs ant Rect is spelled as React (#7082)
parent
49a6b588c1
commit
2bdeed1432
|
@ -35,7 +35,7 @@ describe('Input.Search', () => {
|
||||||
expect(wrapper.html()).toMatchSnapshot();
|
expect(wrapper.html()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
it('should support ReactNode suffix without error', () => {
|
it('should support VueNode suffix without error', () => {
|
||||||
const fn = () => {
|
const fn = () => {
|
||||||
mount({
|
mount({
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -105,7 +105,7 @@ const groupItem = {
|
||||||
| Param | Description | Type | Default value | Version |
|
| Param | Description | Type | Default value | Version |
|
||||||
| -------- | ---------------------- | --------------------------------- | ------------- | ------- |
|
| -------- | ---------------------- | --------------------------------- | ------------- | ------- |
|
||||||
| children | Sub-menu items | [MenuItemType\[\]](#MenuItemType) | - | |
|
| children | Sub-menu items | [MenuItemType\[\]](#MenuItemType) | - | |
|
||||||
| label | The title of the group | ReactNode | - | |
|
| label | The title of the group | VueNode | - | |
|
||||||
|
|
||||||
#### MenuDividerType
|
#### MenuDividerType
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ const groupItem = {
|
||||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||||
| -------- | ------------ | --------------------------------- | ------ | ---- |
|
| -------- | ------------ | --------------------------------- | ------ | ---- |
|
||||||
| children | 分组的菜单项 | [MenuItemType\[\]](#MenuItemType) | - | |
|
| children | 分组的菜单项 | [MenuItemType\[\]](#MenuItemType) | - | |
|
||||||
| label | 分组标题 | ReactNode | - | |
|
| label | 分组标题 | VueNode | - | |
|
||||||
|
|
||||||
#### MenuDividerType
|
#### MenuDividerType
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { onBeforeUnmount, nextTick, Transition, watch, defineComponent, computed
|
||||||
import { anyType } from '../../_util/type';
|
import { anyType } from '../../_util/type';
|
||||||
import type { SegmentedValue } from './segmented';
|
import type { SegmentedValue } from './segmented';
|
||||||
|
|
||||||
type ThumbReact = {
|
type ThumbRect = {
|
||||||
left: number;
|
left: number;
|
||||||
right: number;
|
right: number;
|
||||||
width: number;
|
width: number;
|
||||||
|
@ -20,7 +20,7 @@ export interface MotionThumbInterface {
|
||||||
direction?: 'ltr' | 'rtl';
|
direction?: 'ltr' | 'rtl';
|
||||||
}
|
}
|
||||||
|
|
||||||
const calcThumbStyle = (targetElement: HTMLElement | null | undefined): ThumbReact =>
|
const calcThumbStyle = (targetElement: HTMLElement | null | undefined): ThumbRect =>
|
||||||
targetElement
|
targetElement
|
||||||
? {
|
? {
|
||||||
left: targetElement.offsetLeft,
|
left: targetElement.offsetLeft,
|
||||||
|
@ -58,8 +58,8 @@ const MotionThumb = defineComponent({
|
||||||
return ele?.offsetParent && ele;
|
return ele?.offsetParent && ele;
|
||||||
};
|
};
|
||||||
|
|
||||||
const prevStyle = ref<ThumbReact>(null);
|
const prevStyle = ref<ThumbRect>(null);
|
||||||
const nextStyle = ref<ThumbReact>(null);
|
const nextStyle = ref<ThumbRect>(null);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.value,
|
() => props.value,
|
||||||
|
|
Loading…
Reference in New Issue