更新记录

v1.0(2023-03-21)


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
app-vue × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × ×

lxx-indexed-list

介绍

基于uni-indexed-list封装修改的通讯录列表样式

使用方法

导入插件

import lxxIndexList from '/components/lxx-indexed-list/lxx-indexed-list.vue'

components: {
 lxxIndexList
}

页面使用

/** dataList 数据源 */
/** showSelect 选择模式 */
/** fileUrl 头像图片路径对应的域名地址 */
/** bindClick 点击回调事件 */
<lxx-indexed-list 
    :options="dataList" 
    :showSelect="false"
    :fileUrl="fileUrl"
    @click="bindClick">
</lxx-indexed-list>

bindClick(e) {
    console.log('点击item,返回数据' + JSON.stringify(e))
}

数据格式

let dataList = [{
    "name": "#",
    "list": [{
        "id": 1,
        "realName": "#test",
        "avatar": null
    }]
}, {
    "name": "A",
    "list": [{
        "id": 2,
        "realName": "atest1",
        "avatar": null
    }, {
        "id": 3,
        "realName": "atest2",
        "avatar": null
    }]
}, {
    "name": "C",
    "list": [{
        "id": 4,
        "realName": "ctest",
        "avatar": null
    }]
}]

样式参考

/** 插件默认会沾满全屏,可使用position: relative;控制插件位置 */
<view class="lxx-indexed-list-box">
    <lxx-indexed-list></lxx-indexed-list>
</view>

.lxx-indexed-list-box {
    position: relative;
    width: 100%;
    height: 100vh;
}

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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