vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

批量勾选table中数据之后 切换页码之后能否恢复之前的选中状态

Open Mr1Sun opened this issue 2 years ago • 2 comments

Subject of the feature

Describe your issue here.

Problem

If the feature requests relates to a problem, please describe the problem you are trying to solve here.

Expected behaviour

What should happen? Please describe the desired behaviour.

Alternatives

What are the alternative solutions? Please describe what else you have considered?

Mr1Sun avatar Jul 11 '22 03:07 Mr1Sun

组件内部没有提供这个功能,可以自己实现

wjc112233 avatar Jul 11 '22 08:07 wjc112233

  <BasicTable
      @register="registerTable"
      :rowSelection="{
        type: 'checkbox',
        selectedRowKeys: checkedKeys,
        onChange: onSelectChange,
        preserveSelectedRowKeys: true,
      }"
    >
    </BasicTable>

skywolf627 avatar Jul 21 '22 03:07 skywolf627