mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-15 19:41:06 +08:00

* feat(components): anchor component * fix(components): [anchor] marker opacity style * test(components): [anchor] update snapshots * fix(components): [anchor] style change and add version tag * docs(components): [anchor] affix mode demo add affix offset * fix(components): [anchor] change api * fix: slot name change * fix: scrollTo method change * fix: delete getCurrentAnchor api * style: text overflow * docs: change toc to anchor * refactor: useEventListener * fix: update * fix: update
17 lines
596 B
Vue
17 lines
596 B
Vue
<template>
|
|
<el-anchor :offset="70">
|
|
<el-anchor-link href="#basic-usage">Basic Usage</el-anchor-link>
|
|
<el-anchor-link href="#horizontal-mode">Horizontal Mode</el-anchor-link>
|
|
<el-anchor-link href="#scroll-container">Scroll Container</el-anchor-link>
|
|
<el-anchor-link href="#anchor-api">
|
|
Anchor API
|
|
<template #sub-link>
|
|
<el-anchor-link href="#anchor-attributes">
|
|
Anchor Attributes
|
|
</el-anchor-link>
|
|
<el-anchor-link href="#anchor-events">Anchor events</el-anchor-link>
|
|
</template>
|
|
</el-anchor-link>
|
|
</el-anchor>
|
|
</template>
|