style: 修改部分页面样式 (#3692)

This commit is contained in:
zhengkunwang 2024-01-25 15:18:03 +08:00 committed by GitHub
parent 61078a24fd
commit d917008f47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 44 additions and 51 deletions

View File

@ -157,8 +157,8 @@
placement="top" placement="top"
> >
<el-button <el-button
link
type="primary" type="primary"
link
@click="openLog(installed)" @click="openLog(installed)"
:disabled="installed.status === 'DownloadErr'" :disabled="installed.status === 'DownloadErr'"
> >
@ -169,7 +169,6 @@
<el-button <el-button
class="h-button" class="h-button"
type="primary"
plain plain
round round
size="small" size="small"
@ -184,7 +183,6 @@
</el-button> </el-button>
<el-button <el-button
class="h-button" class="h-button"
type="primary"
plain plain
round round
size="small" size="small"
@ -199,7 +197,6 @@
</el-button> </el-button>
<el-button <el-button
class="h-button" class="h-button"
type="primary"
plain plain
round round
size="small" size="small"
@ -210,7 +207,6 @@
</el-button> </el-button>
<el-button <el-button
class="h-button" class="h-button"
type="primary"
plain plain
round round
size="small" size="small"
@ -259,9 +255,7 @@
<el-button <el-button
v-for="(button, key) in buttons" v-for="(button, key) in buttons"
:key="key" :key="key"
:type=" :type="button.disabled && button.disabled(installed) ? 'info' : ''"
button.disabled && button.disabled(installed) ? 'info' : 'primary'
"
plain plain
round round
size="small" size="small"

View File

@ -206,6 +206,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('container.related')" min-width="200"> <el-table-column :label="$t('container.related')" min-width="200">
<template #default="{ row }"> <template #default="{ row }">
<div>
<el-tooltip <el-tooltip
v-if="row.appName != ''" v-if="row.appName != ''"
:hide-after="20" :hide-after="20"
@ -214,7 +215,6 @@
> >
<el-button <el-button
icon="Position" icon="Position"
type="primary"
plain plain
size="small" size="small"
@click="router.push({ name: 'AppInstalled' })" @click="router.push({ name: 'AppInstalled' })"
@ -222,7 +222,8 @@
{{ $t('app.app') }}: {{ row.appName }} [{{ row.appInstallName }}] {{ $t('app.app') }}: {{ row.appName }} [{{ row.appInstallName }}]
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</div>
<div>
<el-tooltip <el-tooltip
v-if="row.websites != null" v-if="row.websites != null"
:hide-after="20" :hide-after="20"
@ -232,7 +233,6 @@
> >
<el-button <el-button
icon="Position" icon="Position"
type="primary"
plain plain
size="small" size="small"
@click="router.push({ name: 'Website' })" @click="router.push({ name: 'Website' })"
@ -241,6 +241,7 @@
{{ row.websites.join(',') }} {{ row.websites.join(',') }}
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -259,13 +260,12 @@
@click="goDashboard(item)" @click="goDashboard(item)"
class="tagMargin" class="tagMargin"
icon="Position" icon="Position"
type="primary"
plain plain
size="small" size="small"
> >
{{ item.length > 25 ? item.substring(0, 25) + '...' : item }} {{ item.length > 25 ? item.substring(0, 25) + '...' : item }}
</el-button> </el-button>
<el-button v-else class="tagMargin" type="primary" plain size="small"> <el-button v-else class="tagMargin" plain size="small">
{{ item }} {{ item }}
</el-button> </el-button>
</el-tooltip> </el-tooltip>

View File

@ -72,6 +72,7 @@
v-for="(item, index) of row.tags" v-for="(item, index) of row.tags"
:key="index" :key="index"
:title="item" :title="item"
type="info"
> >
{{ item }} {{ item }}
</el-tag> </el-tag>

View File

@ -51,9 +51,7 @@
</el-table-column> </el-table-column>
<el-table-column width="90"> <el-table-column width="90">
<template #default="{ row }"> <template #default="{ row }">
<el-tag effect="dark" round v-if="row.isSystem || row.name === '1panel-network'"> <el-tag round v-if="row.isSystem || row.name === '1panel-network'">system</el-tag>
system
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -68,11 +66,11 @@
<template #default="{ row }"> <template #default="{ row }">
<div v-for="(item, index) in row.labels" :key="index"> <div v-for="(item, index) in row.labels" :key="index">
<div v-if="row.expand || (!row.expand && index < 3)"> <div v-if="row.expand || (!row.expand && index < 3)">
<el-tag>{{ item }}</el-tag> <el-tag type="info">{{ item }}</el-tag>
</div> </div>
</div> </div>
<div v-if="!row.expand && row.labels.length > 3"> <div v-if="!row.expand && row.labels.length > 3">
<el-button type="primary" link @click="row.expand = true"> <el-button link @click="row.expand = true">
{{ $t('commons.button.expand') }}... {{ $t('commons.button.expand') }}...
</el-button> </el-button>
</div> </div>

View File

@ -224,19 +224,19 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('file.mode')" prop="mode" max-width="50"> <el-table-column :label="$t('file.mode')" prop="mode" max-width="50">
<template #default="{ row }"> <template #default="{ row }">
<el-link :underline="false" @click="openMode(row)" type="primary">{{ row.mode }}</el-link> <el-link :underline="false" @click="openMode(row)">{{ row.mode }}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('commons.table.user')" prop="user" show-overflow-tooltip> <el-table-column :label="$t('commons.table.user')" prop="user" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
<el-link :underline="false" @click="openChown(row)" type="primary"> <el-link :underline="false" @click="openChown(row)">
{{ row.user ? row.user : '-' }} ({{ row.uid }}) {{ row.user ? row.user : '-' }} ({{ row.uid }})
</el-link> </el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('file.group')" prop="group"> <el-table-column :label="$t('file.group')" prop="group">
<template #default="{ row }"> <template #default="{ row }">
<el-link :underline="false" @click="openChown(row)" type="primary"> <el-link :underline="false" @click="openChown(row)">
{{ row.group ? row.group : '-' }} ({{ row.gid }}) {{ row.group ? row.group : '-' }} ({{ row.gid }})
</el-link> </el-link>
</template> </template>