diff --git a/nezha-fronted/src/components/common/table/settings/backupsTable.vue b/nezha-fronted/src/components/common/table/settings/backupsTable.vue index b7b684e8f..e9ee1cbb7 100644 --- a/nezha-fronted/src/components/common/table/settings/backupsTable.vue +++ b/nezha-fronted/src/components/common/table/settings/backupsTable.vue @@ -6,6 +6,7 @@ v-for="(item, index) in customTableTitle" :key="`col-${index}`" :width="`${item.width}`" + :min-width="`${item.minWidth}`" :label="item.label" :prop="item.prop" :resizable="true" diff --git a/nezha-fronted/src/components/page/config/backups.vue b/nezha-fronted/src/components/page/config/backups.vue index 505cfc981..591568737 100644 --- a/nezha-fronted/src/components/page/config/backups.vue +++ b/nezha-fronted/src/components/page/config/backups.vue @@ -69,15 +69,15 @@ export default { url: '/sys/backup', customTableTitle: [ - { label: this.$t('backup.schedule'), prop: 'schedule', width: 288 }, - { label: this.$t('backup.backupRetention'), prop: 'retention', width: 303 }, - { label: this.$t('backup.Enable'), prop: 'state', width: 569 } + { label: this.$t('backup.schedule'), prop: 'schedule' }, + { label: this.$t('backup.backupRetention'), prop: 'retention' }, + { label: this.$t('backup.Enable'), prop: 'state' } ], customTableTitle2: [ - { label: this.$t('backup.Date'), prop: 'time', width: 228 }, - { label: this.$t('backup.File'), prop: 'fileName', width: 363 }, - { label: this.$t('backup.size'), prop: 'size', width: 306 }, - { label: this.$t('backup.Description'), prop: 'Description', width: 569 } + { label: this.$t('backup.Date'), prop: 'time', minwidth: 228 }, + { label: this.$t('backup.File'), prop: 'fileName', minwidth: 363 }, + { label: this.$t('backup.size'), prop: 'size', minwidth: 306 }, + { label: this.$t('backup.Description'), prop: 'Description', minwidth: 569 } ], tableData: [ {