更新记录

1.0.0(2024-04-09) 下载此版本

如需扩展更多功能,自行改源码


平台兼容性

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

使用说明

<template>
    <view class="content">
        <zhqTable
            :list="list"
            :header="thList" 
            :height="height"
            :fixed="true" 
            :firstFixed="true" 
            :border="false" 
            @row-click="clickRow"
            @scrolltolower="scrolltolower">
        </zhqTable>
    </view>
</template>

<script>
    import zhqTable from '@/components/zhq-table/zhq-table.vue'
    export default {
        components: {
            zhqTable
        },
        data() {
            return {
                list:[],
                thList:[
                    {
                        "title": "姓名",
                        "prop": "name",
                        "width": "160rpx",
                        "align": "left"
                    },
                    {
                        "title": "性别",
                        "prop": "sex",
                        "width": "140rpx",
                        "align": "center"
                    },
                    {
                        "title": "年龄",
                        "prop": "age",
                        "width": "140rpx",
                        "align": "center"
                    },
                    {
                        "title": "电话号码",
                        "prop": "phone",
                        "width": "200rpx",
                        "align": "center"
                    },
                    {
                        "title": "住址",
                        "prop": "address",
                        "width": "400rpx",
                        "align": "center"
                    },
                    {
                        "title": "学历",
                        "prop": "educational",
                        "width": "140rpx",
                        "align": "center"
                    },
                    {
                        "title": "毕业学校",
                        "prop": "school",
                        "width": "180rpx",
                        "align": "center"
                    },
                    {
                        "title": "职业",
                        "prop": "job",
                        "width": "160rpx",
                        "align": "center"
                    },
                    {
                        "title": "工作经验",
                        "prop": "experience",
                        "width": "140rpx",
                        "align": "center"
                    },
                    {
                        "title": "面试职位",
                        "prop": "position",
                        "width": "140rpx",
                        "align": "center"
                    },
                ],
                height:500,
            }
        },
        onLoad() {
            this.getdata();
        },
        methods: {
            getdata(){//调用接口
                uni.showLoading({
                    title:'加载中...',
                    mask:true,
                })
                var list = [];
                for(let i=0;i<12;i++){
                    list.push({
                        name:'赵日天',
                        sex:'男',
                        age:'18岁',
                        phone:'18888888888',
                        address:'江西省萍乡市莲花县',
                        educational:'研究生',
                        school:'井冈山大学',
                        job:'前端工程师',
                        experience:'5年',
                        position:'前端开发',
                    })
                }
                this.list = this.list.concat(list);
                setTimeout(()=>{
                    uni.hideLoading();
                },1000)
            },
            clickRow(row) {//点击行
                console.log(row)
            },
            scrolltolower(){//下拉加载
                uni.showLoading({
                    title:'加载中...',
                    mask:true,
                })
                var list = [];
                for(let i=0;i<12;i++){
                    list.push({
                        name:'赵日天',
                        sex:'男',
                        age:'18岁',
                        phone:'18888888888',
                        address:'江西省萍乡市莲花县',
                        educational:'研究生',
                        school:'井冈山大学',
                        job:'前端工程师',
                        experience:'5年',
                        position:'前端开发',
                    })
                }
                this.list = this.list.concat(list);
                setTimeout(()=>{
                    uni.hideLoading();
                },1000)
            },
        }
    }
</script>

<style>
    .content {
        padding:30rpx;
    }
</style>

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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