Browse Source

表格折行优化

main
jinlan.du 5 years ago
parent
commit
d8ae9ebb3e
  1. 29
      web/src/style/main.scss
  2. 2
      web/src/view/example/customer/customer.vue
  3. 8
      web/src/view/example/table/table.vue
  4. 4
      web/src/view/example/upload/upload.vue
  5. 2
      web/src/view/superAdmin/authority/authority.vue

29
web/src/style/main.scss

@ -1039,4 +1039,33 @@ li {
width: 10px;
}
}
}
@media screen and (max-width: 1080px) {
.admin-box{
tr{
td{
.el-button{
padding: 7px 5px;
}
}
}
}
}
@media screen and (max-width: 885px) {
.admin-box{
.el-table__fixed-right{
tr{
td{
.el-button{
padding: 7px 0px;
}
}
}
}
.el-table__row{
.el-button.el-button--text.el-button--small::after{
margin-left: 8px;
}
}
}
}

2
web/src/view/example/customer/customer.vue

@ -22,7 +22,7 @@
<el-table-column label="姓名" prop="customerName" width="120"></el-table-column>
<el-table-column label="电话" prop="customerPhoneData" width="120"></el-table-column>
<el-table-column label="接入人ID" prop="sysUserId" width="120"></el-table-column>
<el-table-column label="按钮组">
<el-table-column label="按钮组" min-width="160">
<template slot-scope="scope">
<el-button @click="updateCustomer(scope.row)" size="small" type="text">变更</el-button>
<el-popover placement="top" width="160" v-model="scope.row.visible">

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

@ -16,14 +16,14 @@
</el-table-column>
<el-table-column label="姓名" prop="name" width="120"></el-table-column>
<el-table-column label="年龄" prop="age" width="120"></el-table-column>
<el-table-column label="住址" prop="address" show-overflow-tooltip></el-table-column>
<el-table-column label="是否禁用" prop="switch">
<el-table-column label="住址" prop="address" min-width="200" show-overflow-tooltip></el-table-column>
<el-table-column label="是否禁用" prop="switch" min-width="180">
<template slot-scope="scope">
<el-switch active-text="开启" inactive-text="禁用" v-model="scope.row.switch"></el-switch>
</template>
</el-table-column>
<el-table-column label="按钮组">
<template slot-scope="scope">
<el-table-column label="按钮组" min-width="180">
<template slot-scope="scope" >
<el-button type="text" size="small" @click="toggleSelection([scope.row])">按钮1</el-button>
<el-button type="text" size="small" @click="toggleSelection([scope.row])">按钮2</el-button>
<el-button type="text" size="small" @click="toggleSelection([scope.row])">按钮3</el-button>

4
web/src/view/example/upload/upload.vue

@ -35,7 +35,7 @@
prop="name"
width="180"
></el-table-column>
<el-table-column label="链接" prop="url"></el-table-column>
<el-table-column label="链接" prop="url" min-width="300"></el-table-column>
<el-table-column label="标签" prop="tag" width="100">
<template slot-scope="scope">
<el-tag
@ -45,7 +45,7 @@
>
</template>
</el-table-column>
<el-table-column label="操作" width="100">
<el-table-column label="操作" width="160">
<template slot-scope="scope">
<el-button @click="downloadFile(scope.row)" size="small" type="text"
>下载</el-button

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

@ -13,7 +13,7 @@
>
<el-table-column label="角色id" min-width="180" prop="authorityId"></el-table-column>
<el-table-column label="角色名称" min-width="180" prop="authorityName"></el-table-column>
<el-table-column fixed="right" label="操作" min-width="300">
<el-table-column fixed="right" label="操作" min-width="350">
<template slot-scope="scope">
<el-button @click="opdendrawer(scope.row)" size="small" type="text">设置权限</el-button>
<el-button @click="addAuthority(scope.row.authorityId)" size="small" type="text">新增子角色</el-button>

Loading…
Cancel
Save