项目信息
- 项目名称: - vue3-xmw-table
- 预览地址: - https://ele-plus-table.baiwumm.com/ 
- Github: - https://github.com/baiwumm/vue3-element-table/ 
使用方法
- 根目录下执行 npm i vue3-xmw-table 命令 
npm i vue3-xmw-table- 全局挂载组件 
import { createApp } from 'vue'
import App from './App.vue'
import Xmwtable from 'vue3-xmw-table'
createApp(App).use(Xmwtable).mount('#app')- 在页面上使用 
<!-- template -->
<vue3-xmw-table
  stripe
  border
  show-summary
  :summary-method="getSummaries"
  :tableData="state.tableData"
  :loading="state.loading"
  :columns="state.tableColumns"
  :tableConfig="tableConfig"
  :showPagination="false"
>
  <template v-slot:handler="{ scope }">
    <el-button
      size="small"
      type="primary"
      >编辑</el-button
    >
    <el-button
      type="danger"
      size="small"
      >删除</el-button
    >
  </template>
</vue3-xmw-table>Table 属性
除此之外支持所有 el-table属性
Column 属性
除此之外支持所有 el-table-column属性
tableConfig 配置项
除此之外支持所有 el-table属性
Page 配置项
除此之外支持所有 el-pagination 配置项
Slot 插槽
Events 事件
除此之外支持所有 el-table事件
注: 因为添加了跨分页多选的功能,selection-change 会在切换分页设置勾选状态时调用多次
此项目不再维护,如需学习或者使用,可以把源码拷贝到本地进行拓展。
 
                
            
            
                