# element-plus-data-table **Repository Path**: yeminglong/element-plus-data-table ## Basic Information - **Project Name**: element-plus-data-table - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-18 - **Last Updated**: 2025-03-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 本组件是在element plus table的基础上封装的DataTable组件集成Table和pagination组件。所以支持Table和pagination所有的属性和事件。并且支持本地分页和格式化和jsx。 ![效果图](./Snipaste_2025-03-13_04-48-31.png '效果图') | 属性 | 描述 | 类型 | 默认值 | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------- | | layout | 分页布局 | String | 'total, sizes, prev, pager, next, jumper' | | total | 数据总数 | Number | 0 | | data | 数据 | Array | | | columns | 列头 | Array | | | pagination | 是否分页 | Boolean | false | | localPagination | 是否启用本地分页 | Boolean | false | | mergeProps | 需要合并的列属性名数组 | String[] | [] | | | | | | | @pageSizeChange | pageSize事件参数 | 当前的pageSize | | | @pageNoChange | pageNo事件参数 | 当前的pageNo | | | | | | | | render | 格式化单元格函数支持返回jsx。可以联合element-plus el-column原生的formatter函数一起使用,
如果有formatter那么会先获取的是formatter的结果当做是cellValue然后再执行render哦。 | render({row,cellValue,prop,index,pageNo,pageSize})=>{} | | | | | | | 下面给是使用实例 国内的同步仓库 https://gitee.com/yeminglong/element-plus-data-table [element-plus-data-table - npm](https://www.npmjs.com/package/element-plus-data-table) ```bash npm i element-plus-data-table ``` ```html ```