fix: 数据库删除检查样式调整 (#2218)

pull/2222/head
ssongliu 2023-09-07 17:18:17 +08:00 committed by GitHub
parent 9a43b52c62
commit a61487de9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 17 deletions

View File

@ -1,11 +1,19 @@
<template>
<el-dialog v-model="open" :title="$t('app.delete')" width="30%" :close-on-click-modal="false">
<div>
<span class="lineClass" style="color: red">{{ msg }}</span>
<ul>
<li class="lineClass" v-for="(row, index) in containers" :key="index">{{ row }}</li>
</ul>
</div>
<el-row>
<el-col :span="20" :offset="2">
<el-alert :title="msg" show-icon type="error" :closable="false"></el-alert>
<div class="resource">
<table>
<tr v-for="(row, index) in containers" :key="index">
<td>
<span>{{ row }}</span>
</td>
</tr>
</table>
</div>
</el-col>
</el-row>
<template #footer>
<span class="dialog-footer">
@ -71,7 +79,9 @@ defineExpose({
</script>
<style scoped>
.lineClass {
line-height: 25px;
.resource {
margin-top: 10px;
max-height: 400px;
overflow: auto;
}
</style>

View File

@ -7,14 +7,14 @@
:destroy-on-close="true"
>
<el-row>
<el-alert
type="warning"
:description="$t('app.deleteHelper', [$t('app.database')])"
center
show-icon
:closable="false"
/>
<el-col :span="12" :offset="6">
<el-col :span="20" :offset="2" v-if="open">
<el-alert
type="error"
:description="$t('app.deleteHelper', [$t('app.database')])"
center
show-icon
:closable="false"
/>
<br />
<el-descriptions border :column="1">
<el-descriptions-item>

View File

@ -2,7 +2,16 @@
<div v-loading="loading">
<LayoutContent>
<template #title>
<back-button name="MySQL" :header="$t('commons.button.set')" />
<back-button
name="MySQL"
:header="
props.database +
' [' +
(props.type === 'mysql' ? 'MySQL' : 'MariaDB') +
'] - ' +
$t('commons.button.set')
"
/>
</template>
<template #toolbar>