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

View File

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

View File

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

View File

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

View File

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