feat: 增加column-resizable属性
This commit is contained in:
@ -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,
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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 }">
|
||||||
|
|||||||
@ -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 }">
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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="{
|
||||||
|
|||||||
Reference in New Issue
Block a user