perf: 滚动条调整,table右侧优化等
1.滚动条加宽、legend限制滚动条滑块最小长度 2.取消table右侧滚动条预留区域 3.调整其他因为布局改变而错乱的样式
This commit is contained in:
@@ -53,15 +53,14 @@
|
||||
<!--dc table start-->
|
||||
<div class="content-right" v-if="tabShow==1">
|
||||
<div class="top-tools">
|
||||
<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 margin-l-20" id="dc-add">
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
<div class="top-tool-search float-right">
|
||||
<div class="top-tool-main-right">
|
||||
<div class="top-tool-search">
|
||||
<search-input ref="searchInput" :searchMsg="searchMsg" @search="search" v-if="tabShow==1"></search-input>
|
||||
</div>
|
||||
<button type="button" @click="toAdd" :title="$t('overall.createDatacenter')"
|
||||
class="nz-btn nz-btn-size-normal nz-btn-style-light margin-l-20" id="dc-add">
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
@@ -496,9 +495,6 @@
|
||||
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 = {};
|
||||
@@ -576,7 +572,6 @@
|
||||
|
||||
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_) {
|
||||
|
||||
Reference in New Issue
Block a user