更新记录

1.0.1(2021-04-30)

修改列表名称不显示问题

1.0.0(2021-04-30)

初版


平台兼容性

IndexList 索引列表

索引栏组件,组件名:KIndexList,代码块: KIndexList。

使用方式

script 中引用组件

import KIndexList from '@/components/KIndexList/KIndexList.vue'
export default {
    components: {KIndexList}
}

template 中使用组件

<KIndexList></KIndexList>

属性说明

属性名 类型 默认值 说明
KIndexData Array - 传入索引栏列表数据
KIndexBar Array - 传入索引栏锚点列表
var KIndexData = [
    {
        label: "A",
        children: [
            {
                name: "安徽"
            }
        ]
    },
    {
        label: "B",
        children: [
            {
                name: "北京"
            }
        ]
    },
    {
        label: "C",
        children: [
            {
                name: "长沙"
            },
            {
                name: "郴州"
            }
        ]
    },
    ...
]
var KIndexBar = ["A","B","C"...]

事件说明

事件名 说明 返回值
@itemClick 点击列触发 -

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问