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();
|
||||
});
|
||||
});
|
||||
it('should support ReactNode suffix without error', () => {
|
||||
it('should support VueNode suffix without error', () => {
|
||||
const fn = () => {
|
||||
mount({
|
||||
render() {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ const groupItem = {
|
|||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| -------- | ------------ | --------------------------------- | ------ | ---- |
|
||||
| children | 分组的菜单项 | [MenuItemType\[\]](#MenuItemType) | - | |
|
||||
| label | 分组标题 | ReactNode | - | |
|
||||
| label | 分组标题 | VueNode | - | |
|
||||
|
||||
#### MenuDividerType
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue