引入
import h5Table from '@/components/h5-table/components/h5-table.vue'
import { columnItemType } from '@/components/h5-table'
使用(根据自身项目调整,本例子只做参考)
<h5-table
:column="column"
:table-datas="tableDatas"
:headerHeight="120"
:fixedHeader="true"
:minTableHeight="1500"
:rowHeight="120"
>
<template #data="item">
<section class="overflow-box" @click="showAllText(item.data)">
<view class="show-text-1">
{{ item.data }}
</view>
</section>
</template>
<template #createTime="item">
<section
class="overflow-box"
@click="showAllText(formatToDate(item.createTime))"
>
<view class="show-text-1">
{{ formatToDate(item.createTime) }}
</view>
</section>
</template>
</h5-table>