style(common): (#8064)

Adjust file selection UI
This commit is contained in:
zhengkunwang 2025-03-05 14:20:21 +08:00 committed by GitHub
parent 4b1154209b
commit 8d2ea2f233
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 16 deletions

View file

@ -14,26 +14,20 @@
<el-button class="close" link @click="closePage" icon="Close"></el-button>
<div>
<el-button type="text" icon="HomeFilled" @click="jump(-1)"></el-button>
<el-button v-if="paths.length > 0" type="text">
{{ paths[0] }}
</el-button>
<el-button v-if="paths.length > 0" type="text" @click="jump(0)">/{{ paths[0] }}</el-button>
<el-popover v-if="paths.length > 2" placement="bottom" trigger="hover">
<template #reference>
<el-button type="text">...</el-button>
</template>
<div class="hidden-paths">
<el-button
v-for="(item, index) in paths.slice(1, -1)"
:key="index"
type="text"
@click="jump(index)"
>
{{ item }}
</el-button>
<div v-for="(item, index) in paths.slice(1, -1)" :key="index">
<svg-icon :class="'table-icon'" iconName="p-file-folder"></svg-icon>
<el-link :underline="false" @click="jump(index + 1)">{{ item }}</el-link>
</div>
</div>
</el-popover>
<el-button v-if="paths.length > 1" type="text" @click="jump(paths.length - 1)">
{{ paths[paths.length - 1] }}
/{{ paths[paths.length - 1] }}
</el-button>
</div>
</div>
@ -75,7 +69,7 @@
<el-input
ref="rowRefs"
v-model="newFolder"
style="width: 200px"
class="p-w-200"
placeholder="new folder"
@input="handleChange(newFolder, row)"
></el-input>
@ -323,7 +317,7 @@ onUpdated(() => {
});
</script>
<style lang="scss">
<style lang="scss" scoped>
.file-list {
position: relative;
.close {

View file

@ -72,7 +72,7 @@ const buttons = [
},
},
{
label: i18n.global.t('commons.commons.button.uninstall'),
label: i18n.global.t('commons.button.uninstall'),
click: function (row: Runtime.Runtime) {
operateModule('uninstall', row.name);
},

View file

@ -36,6 +36,7 @@ import i18n from '@/lang';
import { ref } from 'vue';
import { newUUID } from '@/utils/util';
import { MsgSuccess } from '@/utils/message';
import TaskLog from '@/components/log/task/index.vue';
const open = ref(false);
const runtime = ref();
@ -59,7 +60,7 @@ const buttons = [
},
},
{
label: i18n.global.t('commons.commons.button.uninstall'),
label: i18n.global.t('commons.button.uninstall'),
click: function (row: Runtime.SupportExtension) {
unInstallPHPExtension(row);
},