Skip to content

Commit b905acc

Browse files
author
jinlan.du
committed
表格折行优化
1 parent d8ae9eb commit b905acc

File tree

3 files changed

+3
-32
lines changed

3 files changed

+3
-32
lines changed

web/src/style/main.scss

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,32 +1040,3 @@ li {
10401040
}
10411041
}
10421042
}
1043-
@media screen and (max-width: 1080px) {
1044-
.admin-box{
1045-
tr{
1046-
td{
1047-
.el-button{
1048-
padding: 7px 5px;
1049-
}
1050-
}
1051-
}
1052-
}
1053-
}
1054-
@media screen and (max-width: 885px) {
1055-
.admin-box{
1056-
.el-table__fixed-right{
1057-
tr{
1058-
td{
1059-
.el-button{
1060-
padding: 7px 0px;
1061-
}
1062-
}
1063-
}
1064-
}
1065-
.el-table__row{
1066-
.el-button.el-button--text.el-button--small::after{
1067-
margin-left: 8px;
1068-
}
1069-
}
1070-
}
1071-
}

web/src/view/example/table/table.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
<el-table-column label="姓名" prop="name" width="120"></el-table-column>
1818
<el-table-column label="年龄" prop="age" width="120"></el-table-column>
1919
<el-table-column label="住址" prop="address" min-width="200" show-overflow-tooltip></el-table-column>
20-
<el-table-column label="是否禁用" prop="switch" min-width="180">
20+
<el-table-column label="是否禁用" prop="switch" width="180">
2121
<template slot-scope="scope">
2222
<el-switch active-text="开启" inactive-text="禁用" v-model="scope.row.switch"></el-switch>
2323
</template>
2424
</el-table-column>
25-
<el-table-column label="按钮组" min-width="180">
25+
<el-table-column label="按钮组" width="200">
2626
<template slot-scope="scope" >
2727
<el-button type="text" size="small" @click="toggleSelection([scope.row])">按钮1</el-button>
2828
<el-button type="text" size="small" @click="toggleSelection([scope.row])">按钮2</el-button>

web/src/view/superAdmin/authority/authority.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
<el-table-column label="角色id" min-width="180" prop="authorityId"></el-table-column>
1515
<el-table-column label="角色名称" min-width="180" prop="authorityName"></el-table-column>
16-
<el-table-column fixed="right" label="操作" min-width="350">
16+
<el-table-column fixed="right" label="操作" width="460">
1717
<template slot-scope="scope">
1818
<el-button @click="opdendrawer(scope.row)" size="small" type="text">设置权限</el-button>
1919
<el-button @click="addAuthority(scope.row.authorityId)" size="small" type="text">新增子角色</el-button>

0 commit comments

Comments
 (0)