# el-table-column-pro **Repository Path**: ybfweb/el-table-column-pro ## Basic Information - **Project Name**: el-table-column-pro - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 0 - **Created**: 2018-09-13 - **Last Updated**: 2023-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## element table ##### 二次封装 ##### el-table-column-pro 基于 el-table-column的renderHeader实现定义头部 > 增加了table-header自定义 ##### el-table-pro 基于 el-table > 增加了排 序列 显示 隐藏 > ps: fixed列不参与排序,选择列以及展开列也不参与排序,列的宽度尽量不要能使用固定宽度,隐藏到一列的时候会出现样式问题 ###### demo https://ybfweb.gitee.io/el-table-column-pro/ ### el-table-pro #### 增加功能 * 增加列显示 * 排序 * 支持所有el-table原有的参数(除了renderHeader) 详情:http://element.eleme.io/#/zh-CN/component/table | 参数 | 说明 | 类型 | 可选值 | 默认值 |示例| |:------:|:------:|:------:|:------:|:------:|:------:| |columns-status|默认显示列,以及排序|json|可选|-|[{'label': '地址', 'key': 'address', 'isActive': true}]| |columns-update|排序隐藏列|function|可选|-|function(selArr)| ### el-table-column-pro #### 增加功能 --- * 表头slot增加具名作用域插槽 > 具名作用域插槽header:label下面的一列自定义,如下 ``` ``` > 具名作用域插槽headerLabel:自定义label不不包括排序 ``` ``` #### 参数继承el-table-column原来的所有参数 参见:http://element.eleme.io/#/zh-CN/component/table #### 分页为element原生组件 参见:http://element.eleme.io/#/zh-CN/component/pagination ##### ps: 以上头部功能都可以通过render-type="slots"来开启自定义,或者重新定义 ### 下载本项目运行示例 ``` git clone git@gitee.com:ybfweb/el-table-column-pro.git cnpm install/npm install npm run dev ``` ## 示例代码 ``` ```