给商品列表增加列的宽度拉动

This commit is contained in:
季圣华
2023-05-12 19:06:47 +08:00
parent 4deb815d27
commit d7f4727afc

View File

@@ -129,10 +129,11 @@
rowKey="id" rowKey="id"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:components="handleDrag(columns)"
:pagination="ipagination" :pagination="ipagination"
:scroll="scroll" :scroll="scroll"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, columnWidth:'2%'}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, columnWidth:'40px'}"
@change="handleTableChange"> @change="handleTableChange">
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>