Commit a183bef4 by liushikai

调整

parent adeed262
...@@ -29,12 +29,13 @@ ...@@ -29,12 +29,13 @@
> >
</el-table-column> </el-table-column>
<slot></slot> <slot></slot>
<el-table-column fixed="right" width="100px" v-if="showButtonFlg"> <el-table-column fixed="right" width="48px" v-if="showButtonFlg" class-name="buttonColumn">
<template slot="header"> <template slot="header">
<c-col style="text-align: left" <c-col style="text-align: left"
><c-button ><c-button
icon="el-icon-s-tools" icon="el-icon-s-tools"
@click="clounmSetting" @click="clounmSetting"
style="padding:0 7px"
></c-button ></c-button
></c-col> ></c-col>
</template> </template>
...@@ -49,6 +50,7 @@ ...@@ -49,6 +50,7 @@
<el-form-item label-width="0"> <el-form-item label-width="0">
<el-checkbox-group v-model="columnGroup" @change="handleColumnChange"> <el-checkbox-group v-model="columnGroup" @change="handleColumnChange">
<el-checkbox <el-checkbox
class="selectColumnClass"
v-for="item in tableColumnsOrigin" v-for="item in tableColumnsOrigin"
:key="item.label" :key="item.label"
:label="parseInt(item.index)" :label="parseInt(item.index)"
...@@ -58,7 +60,7 @@ ...@@ -58,7 +60,7 @@
</el-form-item> </el-form-item>
<span slot="footer"> <span slot="footer">
<el-checkbox <el-checkbox
class="cbClass" class="selectAllClass"
:indeterminate="columnGroup.length > 0 && columnGroup.length < tableColumnsOrigin.length" :indeterminate="columnGroup.length > 0 && columnGroup.length < tableColumnsOrigin.length"
v-model="selectAll" v-model="selectAll"
@change="setAll" @change="setAll"
...@@ -294,8 +296,20 @@ export default { ...@@ -294,8 +296,20 @@ export default {
.el-table .success-row { .el-table .success-row {
background: #f0f9eb; background: #f0f9eb;
} }
.selectColumnClass .el-checkbox__label {
width: 60px;
font-size: 13px;
}
.selectAllClass .el-checkbox__label {
width: 30px;
font-size: 13px;
padding-left: 5px;
}
.eContainer-table-block .el-table .cell { .eContainer-table-block .el-table .cell {
white-space: pre-wrap; white-space: pre-wrap;
} }
.el-table.buttonColumn th>.cell {
padding-left: 0;
padding-right: 0;
}
</style> </style>
\ No newline at end of file
...@@ -500,15 +500,6 @@ export default { ...@@ -500,15 +500,6 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.el-checkbox >>> .el-checkbox__label {
width: 60px;
font-size: 13px;
}
.cbClass >>> .el-checkbox__label {
width: 30px;
font-size: 13px;
padding-left: 5px;
}
.showColumnDialog >>> .el-dialog__body { .showColumnDialog >>> .el-dialog__body {
padding-bottom: 10px; padding-bottom: 10px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment