轮播图修改3

This commit is contained in:
妖姐 2024-02-29 20:29:58 +08:00
parent f27ae1ea4e
commit c443671434

View File

@ -8,7 +8,7 @@
</a-space> </a-space>
</div> </div>
<a-table :row-selection="rowSelection" :columns="columns" :data-source="states.data" :pagination="pagination" :scroll="{ y: 430}" style="width: 85vw;"> <a-table :row-selection="rowSelection" :columns="columns" :data-source="states.data" :pagination="pagination" :scroll="{ x:0,y: 430}" style="width: 85vw;">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
@ -179,7 +179,7 @@ const columns = [
dataIndex: 'photo', dataIndex: 'photo',
resizable: true, resizable: true,
width: 150, width: 150,
// maxWidth: 150, maxWidth: 150,
}, },
{ {
@ -187,20 +187,21 @@ const columns = [
dataIndex: 'title', dataIndex: 'title',
key: 'title', key: 'title',
width:150, width:150,
// maxWidth: 150, maxWidth: 150,
}, },
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createdAt', dataIndex: 'createdAt',
key: 'createdAt', key: 'createdAt',
width:200, width:200,
// maxWidth: 150, maxWidth: 200,
}, },
{ {
title: '图片地址', title: '图片地址',
dataIndex: 'image', dataIndex: 'image',
key: 'image', key: 'image',
width:250, width:250,
maxWidth: 250
}, },
{ {
@ -208,14 +209,14 @@ const columns = [
dataIndex: 'displayOrder', dataIndex: 'displayOrder',
key: 'displayOrder', key: 'displayOrder',
width:80, width:80,
// maxWidth: 80, maxWidth: 80,
}, },
{ {
title: '状态', title: '状态',
key: 'isActive', key: 'isActive',
dataIndex: 'isActive', dataIndex: 'isActive',
width: 80, width: 80,
// maxWidth: 80, maxWidth: 80,
}, },
{ {
title: '操作', title: '操作',