feat: 增加column-resizable属性

This commit is contained in:
rd
2025-07-07 13:46:24 +08:00
parent f8f1301989
commit 0766c7c1ad
8 changed files with 16 additions and 3 deletions

View File

@ -32,6 +32,7 @@
ref="tableRef" ref="tableRef"
:data="dataSource" :data="dataSource"
row-key="id" row-key="id"
column-resizable
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
showCheckedAll: true, showCheckedAll: true,

View File

@ -49,7 +49,15 @@
<template #default>重置</template> <template #default>重置</template>
</a-button> </a-button>
</div> </div>
<a-table :data="dataSource" row-key="id" :pagination="false" :scroll="{ x: '100%' }" class="w-100%" bordered> <a-table
:data="dataSource"
row-key="id"
:pagination="false"
:scroll="{ x: '100%' }"
class="w-100%"
bordered
column-resizable
>
<template #empty> <template #empty>
<NoData /> <NoData />
</template> </template>

View File

@ -37,7 +37,7 @@
<!-- 分别编辑 --> <!-- 分别编辑 -->
<template v-if="editType === 'each'"> <template v-if="editType === 'each'">
<a-table :data="accountGroupList" :pagination="false" row-key="id" class="w-100%"> <a-table :data="accountGroupList" :pagination="false" row-key="id" class="w-100%" column-resizable>
<template #columns> <template #columns>
<a-table-column title="账号名称" data-index="name" width="200"> <a-table-column title="账号名称" data-index="name" width="200">
<template #cell="{ record }"> <template #cell="{ record }">

View File

@ -47,7 +47,7 @@
<!-- 分别编辑 --> <!-- 分别编辑 -->
<template v-if="editType === 'each'"> <template v-if="editType === 'each'">
<a-table :data="accountTagList" :pagination="false" row-key="id" class="w-100%"> <a-table :data="accountTagList" :pagination="false" row-key="id" class="w-100%" column-resizable>
<template #columns> <template #columns>
<a-table-column title="账号名称" data-index="name" width="200"> <a-table-column title="账号名称" data-index="name" width="200">
<template #cell="{ record }"> <template #cell="{ record }">

View File

@ -32,6 +32,7 @@
</div> </div>
<a-table <a-table
column-resizable
:columns="columns" :columns="columns"
:data="list" :data="list"
row-key="id" row-key="id"

View File

@ -33,6 +33,7 @@
ref="tableRef" ref="tableRef"
:data="dataSource" :data="dataSource"
row-key="id" row-key="id"
column-resizable
:row-selection="{ :row-selection="{
type: 'checkbox', type: 'checkbox',
showCheckedAll: true, showCheckedAll: true,

View File

@ -31,6 +31,7 @@
</a-button> </a-button>
</div> </div>
<a-table <a-table
column-resizable
:columns="columns" :columns="columns"
:data="list" :data="list"
row-key="id" row-key="id"

View File

@ -31,6 +31,7 @@
<a-table <a-table
ref="tableRef" ref="tableRef"
column-resizable
:data="dataSource" :data="dataSource"
row-key="id" row-key="id"
:row-selection="{ :row-selection="{