perf: 右侧内容边距减小

1.content-right右padding减小为5px
2.top按钮、顶部工具栏相应调整位置
3.asset列表还未调整
This commit is contained in:
陈劲松
2020-03-13 17:55:56 +08:00
parent b89a5d14ef
commit bc9da07d2c
10 changed files with 40 additions and 24 deletions

View File

@@ -56,7 +56,7 @@
<div></div>
<div>
<button type="button" @click="toAdd" :title="$t('overall.createDatacenter')"
class="nz-btn nz-btn-size-normal nz-btn-style-light float-right " id="dc-add">
class="nz-btn nz-btn-size-normal nz-btn-style-light float-right margin-l-20" id="dc-add">
<i class="nz-icon-create-square nz-icon"></i>
</button>
<div class="top-tool-search float-right">
@@ -152,7 +152,7 @@
</div>
<div>
<button type="button" @click="toAddCabinet" :title="$t('overall.createCabinet')"
class="nz-btn nz-btn-size-normal nz-btn-style-light float-right " id="cab-add">
class="nz-btn nz-btn-size-normal nz-btn-style-light float-right margin-l-20" id="cab-add">
<i class="nz-icon-create-square nz-icon"></i>
</button>
<div class="top-tool-search float-right">
@@ -496,6 +496,9 @@
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
this.pageObj.pageSize = val;
this.getTableData();
this.$nextTick(() => {
this.gutterHandler(".nz-table");
});
},
search: function (searchObj) {
this.searchLabel = {};
@@ -573,6 +576,7 @@
this.getTableData();
this.$nextTick(function(){
this.gutterHandler(".nz-table");
this.getUserData();//绑定滚动条事件控制top按钮
let el = this.$refs.dcTable.$el.querySelector(".el-table__body-wrapper");
if (el._ps_) {