IndexListAnchor 索引列表锚
索引列表的锚,具有吸顶效果,会生成一个索引列表,点击索引列表,可以快速定位到对应的内容。必须是c-index-list组件的直接子组件。
平台
| App | 小程序 | H5 |
|---|---|---|
| √ | √ | √ |
属性
| 属性名 | 类型 | 默认值 | 说明 | 平台 |
|---|---|---|---|---|
| indexName | String | null | 索引名,必填、唯一 | All |
| isIcon | Boolean | false | 如果为true,索引名indexName将作为icon的配置 | All |
| indexColor | String | null | 索引颜色 支持c-t-开头的颜色类 | All |
| activeIndexColor | String | null | 选中索引的颜色 支持c-t-开头的颜色类 | All |
| activeIndexBgColor | String | null | 选中背景颜色 支持c-bg-开头的颜色类 | All |
| height | String,Number | null | All | |
| cClass | String,Array,Object | null | 组件类 | All |
| cStyle | String,Array,Object | null | 组件样式 | All |
| margin | String,Number,Array | null | 外边距 | All |
| padding | String,Number,Array | null | 内边距 | All |
| bgColor | String | null | 背景色,支持c-bg-开头的背景色类 | All |
事件
| 事件名 | 说明 |
|---|---|
| click |
插槽
| 插槽名 | 说明 |
|---|---|
| default |
