From e80262b2db0967a52ebd75c1371497c2830f267e Mon Sep 17 00:00:00 2001 From: sea <45450994+warmthsea@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:46:02 +0800 Subject: [PATCH] fix(components): [anchor,tour] the `type` type typo (#16119) chore: fix typo --- docs/en-US/component/anchor.md | 2 +- docs/examples/anchor/scroll.vue | 2 +- packages/components/tour/src/step.ts | 2 +- packages/components/tour/src/tour.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en-US/component/anchor.md b/docs/en-US/component/anchor.md index 99d8580dc8..4753a2571c 100644 --- a/docs/en-US/component/anchor.md +++ b/docs/en-US/component/anchor.md @@ -84,7 +84,7 @@ anchor/affix | bound | the offset of the element starting to trigger the anchor. | `number` | 15 | | duration | set the scroll duration of the container, in milliseconds. | `number` | 300 | | marker | whether to show the marker. | ^[boolean] | true | -| type | set Anchor type. | ^[enum]`'defalut' \| 'underline'` | `default` | +| type | set Anchor type. | ^[enum]`'default' \| 'underline'` | `default` | | direction | Set Anchor direction. | ^[enum]`'vertical' \| 'horizontal'` | `vertical` | ### Anchor Events diff --git a/docs/examples/anchor/scroll.vue b/docs/examples/anchor/scroll.vue index cc00374950..8cb7b88aa1 100644 --- a/docs/examples/anchor/scroll.vue +++ b/docs/examples/anchor/scroll.vue @@ -52,7 +52,7 @@ diff --git a/packages/components/tour/src/step.ts b/packages/components/tour/src/step.ts index dfb062000f..90669462bd 100644 --- a/packages/components/tour/src/step.ts +++ b/packages/components/tour/src/step.ts @@ -80,7 +80,7 @@ export const tourStepProps = buildProps({ * @description type, affects the background color and text color */ type: { - type: definePropType<'defalut' | 'primary'>(String), + type: definePropType<'default' | 'primary'>(String), }, }) diff --git a/packages/components/tour/src/tour.ts b/packages/components/tour/src/tour.ts index 77e94ad6a8..0d1de36cf2 100644 --- a/packages/components/tour/src/tour.ts +++ b/packages/components/tour/src/tour.ts @@ -89,7 +89,7 @@ export const tourProps = buildProps({ * @description type, affects the background color and text color */ type: { - type: definePropType<'defalut' | 'primary'>(String), + type: definePropType<'default' | 'primary'>(String), }, /** * @description which element the TourContent appends to