fix: 优化后台列表与弹窗排版
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
class="table-fill"
|
||||
flex-height
|
||||
remote
|
||||
:scroll-x="1360"
|
||||
:scroll-x="1400"
|
||||
:row-key="(r) => r.id"
|
||||
/>
|
||||
<div class="table-pagination">
|
||||
@@ -82,7 +82,7 @@ const columns: DataTableColumns<any> = [
|
||||
})
|
||||
: h(NAvatar, { size: 44, style: 'border-radius:8px' }, { default: () => '—' }),
|
||||
},
|
||||
{ title: () => t('pages.artwork.archiveNo'), key: 'archiveNo', width: 140, align: 'center', render: (r) => r.archiveNo || '-' },
|
||||
{ title: () => t('pages.artwork.archiveNo'), key: 'archiveNo', width: 170, align: 'center', ellipsis: { tooltip: true }, render: (r) => r.archiveNo || '-' },
|
||||
{ title: () => t('pages.artwork.title'), key: 'title', minWidth: 220, ellipsis: { tooltip: true } },
|
||||
{ title: () => t('pages.artwork.artist'), key: 'artist', minWidth: 130, ellipsis: { tooltip: true }, render: (r) => r.artist || '-' },
|
||||
{ title: () => t('pages.artwork.template'), key: 'template', minWidth: 150, ellipsis: { tooltip: true }, render: (r) => r.template?.name || '-' },
|
||||
@@ -107,7 +107,7 @@ const columns: DataTableColumns<any> = [
|
||||
{ default: () => t(`common.auditStatus.${r.auditStatus || 'PENDING'}`) },
|
||||
),
|
||||
},
|
||||
{ title: () => t('common.label.createdAt'), key: 'createdAt', width: 150, align: 'center', render: (r) => fmt(r.createdAt) },
|
||||
{ title: () => t('common.label.createdAt'), key: 'createdAt', width: 150, align: 'center', ellipsis: { tooltip: true }, render: (r) => fmt(r.createdAt) },
|
||||
{
|
||||
title: () => t('common.label.operation'),
|
||||
key: 'ops',
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
</n-switch>
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('pages.template.fields')">
|
||||
<div style="width: 100%">
|
||||
<div class="field-editor">
|
||||
<div class="field-hint">{{ t('pages.template.sortHint') }}</div>
|
||||
<div v-for="(f, i) in form.fields" :key="i" class="field-row">
|
||||
<span class="field-order">{{ i + 1 }}</span>
|
||||
@@ -293,6 +293,12 @@ onMounted(load);
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
min-width: 560px;
|
||||
}
|
||||
.field-editor {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
.field-order {
|
||||
width: 18px;
|
||||
|
||||
Reference in New Issue
Block a user