更新记录
1.0.0(2023-10-13)
下载此版本
主要给大家一个固定表头的uni-table demo
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
- |
√ |
√ |
- |
× |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
√ |
- |
- |
- |
- |
- |
- |
- |
- |
× |
× |
<!-- 下面展示的是Vue.js模板代码 -->
<div>
<custom-table class="customTable" :columns="tableColum" :datas="tableList" >
<template v-slot:pnum="{ bodyItem }">
{{bodyItem.planNum}}
</template>
</custom-table>
</div>
<!-- 以下是表头数据和表格数据的代码块 -->
// 表头数据
let tableColum = [
{
key: 'index',
align: 'center',
width: 40
},
{
text: '任务编号',
key: 'planNum',
align: 'center',
width: 100
}
]
// 表格数据
let tableList = [
{
planNum: '12345'
},
{
planNum: '67890'
}
]