锚点

介绍
通过锚点可快速找到信息内容在当前页面的位置。
API
Props
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
status | 默认状态 | 'default' | 'readonly' | 'hide' | 'default' |
showLine | 显示左侧轴线 | boolean | false |
smooth | 是否使用平滑滚动 | boolean | false |
baseStyle | 自定义样式 | string | - |
customClass | 类名绑定 | string | - |
uniqueKey | 唯一标识 , 组件的唯一标识 | string | - |
loop | 循环数据 , 循环渲染设置 | Loop | - |
Props 节点操作
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
title | 标题。锚点项标题名称 | string | - |
level | 层级 | string | - |
href | 锚点地址。跳转到当前页面组件 ID | string | - |
Type
javascript
// 循环
type Loop = {
data: any[],
paramName: string,
indexName: string,
key: string,
};