docs(components): [anchor] word error (#16040)

This commit is contained in:
赵添 2024-03-04 14:31:00 +08:00 committed by GitHub
parent bd3593140b
commit f71a112722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 13 deletions

View File

@ -10,5 +10,5 @@
"Scroll Container": "Scroll Container",
"Anchor API": "Anchor API",
"Anchor Attributes": "Anchor Attributes",
"Anchor events": "Anchor events"
"Anchor Events": "Anchor Events"
}

View File

@ -87,21 +87,21 @@ anchor/affix
| type | set Anchor type. | ^[enum]`'defalut' \| 'underline'` | `default` |
| direction | Set Anchor direction. | ^[enum]`'vertical' \| 'horizontal'` | `vertical` |
### Anchor events
### Anchor Events
| Name | Description | Type |
| ------ | ------------------------------ | -------------------------------------- |
| change | callback when the step changes | ^[Function]`(href: string) => void` |
| click | Triggered when the user clicks on the link | ^[Function]`(e: MouseEvent, href?: string) => void` |
### Anchor methods
### Anchor Methods
| Name | Description | Type |
| ---------- | ------------------------------------------------------------- | ------- |
| scrollTo | Manually scroll to the specific position. | ^[Function]`(href: string) => void`|
### Anchor slots
### Anchor Slots
| Name | Description |
| ---------- | ------------------------------------------------------------- |
@ -115,7 +115,7 @@ anchor/affix
| title | the text content of the anchor link. | `string` | — |
| href | The address of the anchor link. | `string` | - |
### AnchorLink slots
### AnchorLink Slots
| Name | Description |
| -------- | ----------- |

View File

@ -14,10 +14,10 @@
{{ locale['Anchor API'] }}
<template #sub-link>
<el-anchor-link :href="`#${locale['anchor-attributes']}`">
{{ locale['Anchor attributes'] }}
{{ locale['Anchor Attributes'] }}
</el-anchor-link>
<el-anchor-link :href="`#${locale['anchor-events']}`">
{{ locale['Anchor events'] }}
{{ locale['Anchor Events'] }}
</el-anchor-link>
</template>
</el-anchor-link>

View File

@ -13,10 +13,10 @@
{{ locale['Anchor API'] }}
<template #sub-link>
<el-anchor-link :href="`#${locale['anchor-attributes']}`">
{{ locale['Anchor attributes'] }}
{{ locale['Anchor Attributes'] }}
</el-anchor-link>
<el-anchor-link :href="`#${locale['anchor-events']}`">
{{ locale['Anchor events'] }}
{{ locale['Anchor Events'] }}
</el-anchor-link>
</template>
</el-anchor-link>

View File

@ -13,10 +13,10 @@
{{ locale['Anchor API'] }}
<template #sub-link>
<el-anchor-link :href="`#${locale['anchor-attributes']}`">
{{ locale['Anchor attributes'] }}
{{ locale['Anchor Attributes'] }}
</el-anchor-link>
<el-anchor-link :href="`#${locale['anchor-events']}`">
{{ locale['Anchor events'] }}
{{ locale['Anchor Events'] }}
</el-anchor-link>
</template>
</el-anchor-link>

View File

@ -13,10 +13,10 @@
{{ locale['Anchor API'] }}
<template #sub-link>
<el-anchor-link :href="`#${locale['anchor-attributes']}`">
{{ locale['Anchor attributes'] }}
{{ locale['Anchor Attributes'] }}
</el-anchor-link>
<el-anchor-link :href="`#${locale['anchor-events']}`">
{{ locale['Anchor events'] }}
{{ locale['Anchor Events'] }}
</el-anchor-link>
</template>
</el-anchor-link>