perf: 调整table列表-操作内容居中显示

This commit is contained in:
“huailei000” 2022-04-11 16:12:45 +08:00 committed by 老广
parent 06bd68a874
commit dcb87c6216

View File

@ -1,5 +1,5 @@
<template>
<div :class="grouped ? 'el-button-group' : 'el-button-ungroup'" style="display: flex">
<div :class="grouped ? 'el-button-group' : 'el-button-ungroup'" class="layout">
<template v-for="action in iActions">
<el-dropdown
v-if="action.dropdown"
@ -154,6 +154,11 @@ export default {
</script>
<style scoped>
.layout {
display: flex;
justify-content: center;
}
.dropdown-menu-title {
text-align: left;
font-size: 12px;
@ -170,7 +175,11 @@ export default {
}
.el-button-ungroup .action-item {
margin-left: 4px
margin-left: 4px;
}
.el-dropdown .el-dropdown-selfdefine {
padding: 2px 5px;
}
.el-button-ungroup .action-item:first-child {