更新记录

1.2.8(2023-09-05)

新增选中的某行样式 新增统计列

import { reactive } from 'vue' const state = reactive({ columns: [ {name: 'yjbl', title: '佣金比例'}, {name: 'yj', title: '佣金', align: 'right'}, {name: 'amount', title: '消费金额', align: 'right'}, {name: 'user', title: '被邀请用户'}, {name: 'date', title: '消费时间', formate: data => data}, ], rows: [ {id: 0, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: '2023-08-23 10:00:25'}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 10000, date: Date.now()}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, ] }) const tapOper = data => { console.log(data) } const tapRow = data => { console.log(data); } const scroll = e => { // console.log(e); } const loadMore = () => { // state.rows = state.rows.concat([ // {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, // {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()}, // ]) } const refresh = () => { // state.rows = [ // {id: 0, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: '2023-08-23 10:00:25'}, // {id: 1, yjbl: '10%', yj: 10, user: 666666, amount: 100, date: Date.now()} // ] } const check = param => { state.rows[param.index] = param.data } const checkAll = rows => { state.rows = rows } const tapToolbar = btnName => { console.log(btnName); } <style> .content { display: flex; flex-direction: column; align-items: center; justify-content: center; } .logo { height: 200rpx; width: 200rpx; margin-top: 200rpx; margin-left: auto; margin-right: auto; margin-bottom: 50rpx; } .text-area { display: flex; justify-content: center; } .title { font-size: 36rpx; color: #8f8f94; } </style>

1.2.7(2023-09-04)

修复固定列的格式化

1.2.6(2023-09-04)

去掉刷新,高度继承父容器

查看更多

平台兼容性

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

lh-table

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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