新接触到了几个事件,记录一下
分页
<el-pagination
v-model:current-page="currentPage4"
v-model:page-size="pageSize4"
:page-sizes="[10, 20, 30, 40]"
:small="small"
:disabled="disabled"
:background="background"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
@click="yeshu"
/>
handleSizeChange:10条/页,变化触发
handleCurrentChange:转到xx页触发
<el-table
ref="multipleTableRef"
:data="tableData"
style="width: 100%"
@selection-change="handleSelectionChange"
border
>
handleSelectionChange:多选框被选中触发
const handleSelectionChange = (val) => {}
val:多选框被选中的个数