style: 操作列宽度 300px,按钮 3 个后自动换行

This commit is contained in:
lt
2026-04-27 11:20:57 +08:00
parent 1be6d5e57d
commit 86425eb18f
+2 -2
View File
@@ -117,9 +117,9 @@
<el-table-column prop="generated_at" label="创作时间" width="140"><template #default="scope">{{ scope.row.generated_at ? formatDate(scope.row.generated_at) : '-' }}</template></el-table-column>
<el-table-column prop="published_at" label="发布时间" width="140"><template #default="scope">{{ scope.row.published_at ? formatDate(scope.row.published_at) : '-' }}</template></el-table-column>
<el-table-column prop="updated_at" label="更新时间" width="140"><template #default="scope">{{ formatDate(scope.row.updated_at) }}</template></el-table-column>
<el-table-column label="操作" width="400" fixed="right">
<el-table-column label="操作" width="300" fixed="right">
<template #default="scope">
<div class="flex gap-1 flex-wrap">
<div class="flex gap-1 flex-wrap" style="max-width: 260px;">
<el-button size="small" @click="openPreview(scope.row)" type="primary">预览</el-button>
<el-button size="small" type="success" :disabled="scope.row.status !== '待处理'" @click="createTopic(scope.row)">创作</el-button>
<el-button size="small" type="warning" :disabled="scope.row.status !== '待审查'" @click="optimizeTopic(scope.row)">审查</el-button>