Skip to content

锚点

image

介绍

通过锚点可快速找到信息内容在当前页面的位置。

API

Props

参数名描述类型默认值
status默认状态'default' | 'readonly' | 'hide''default'
showLine显示左侧轴线booleanfalse
smooth是否使用平滑滚动booleanfalse
baseStyle自定义样式string-
customClass类名绑定string-
uniqueKey唯一标识 , 组件的唯一标识string-
loop循环数据 , 循环渲染设置Loop-

Props 节点操作

参数名描述类型默认值
title标题。锚点项标题名称string-
level层级string-
href锚点地址。跳转到当前页面组件 IDstring-

Type

javascript
// 循环
type Loop = {
  data: any[],
  paramName: string,
  indexName: string,
  key: string,
};