perf: 滚动条调整,table右侧优化等
1.滚动条加宽、legend限制滚动条滑块最小长度 2.取消table右侧滚动条预留区域 3.调整其他因为布局改变而错乱的样式
This commit is contained in:
@@ -16,17 +16,14 @@
|
||||
</div>
|
||||
<div class="content-right">
|
||||
<div class="top-tools">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<button id="alert-add" @click="toAdd" :title="$t('overall.createAlertRule')"
|
||||
class="nz-btn nz-btn-size-normal nz-btn-style-light float-right margin-l-20">
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
<div class="top-tool-main-right">
|
||||
<div class="top-tool-search float-right">
|
||||
<search-input :searchMsg="searchMsg" @search="search"></search-input>
|
||||
</div>
|
||||
<button id="alert-add" @click="toAdd" :title="$t('overall.createAlertRule')"
|
||||
class="nz-btn nz-btn-size-normal nz-btn-style-light margin-l-20">
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
@@ -357,9 +354,6 @@
|
||||
this.pageObj.pageSize = val;
|
||||
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
||||
this.getTableData();
|
||||
this.$nextTick(() => {
|
||||
this.gutterHandler(".nz-table");
|
||||
});
|
||||
},
|
||||
search: function (searchObj) {
|
||||
this.searchLabel = {};
|
||||
@@ -420,7 +414,6 @@
|
||||
|
||||
this.getTableData();
|
||||
this.$nextTick(() => {
|
||||
this.gutterHandler(".nz-table");
|
||||
//绑定滚动条事件,控制top按钮
|
||||
let el = this.$refs.alertRuleTable.$el.querySelector(".el-table__body-wrapper");
|
||||
if (el._ps_) {
|
||||
|
||||
Reference in New Issue
Block a user