mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 12:48:04 +08:00
25bebce59d
* 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
12 lines
326 B
TypeScript
12 lines
326 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Anchor from './src/anchor.vue'
|
|
import AnchorLink from './src/anchor-link.vue'
|
|
|
|
export const ElAnchor = withInstall(Anchor, {
|
|
AnchorLink,
|
|
})
|
|
export const ElAnchorLink = withNoopInstall(AnchorLink)
|
|
export default ElAnchor
|
|
|
|
export * from './src/anchor'
|