Skip to content

Commit 1d6a580

Browse files
author
黄书伟
committed
VPagination 组件修复当浏览器大小改变,dropdown 错位的问题
1 parent 35218ac commit 1d6a580

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

examples/doc/updateLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
2018-1-29
22
1、Table 组件回到顶部触发时机,由数据改变时触发更改为分页时触发
33
2、Table 组件提供手动回到顶部的方法 `scrollToTop()`
4+
3、VPagination 组件修复当浏览器大小改变,dropdown 错位的问题
45

56
2018-1-26 已发布
67
1、Table 组件修复当表格无数据时,并且有横向滚动条,表头下方也存在滚动条的 bug #96 -- 已完成

libs/src/mixins/layerAdjustment.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ exports.default = {
3939

4040
__autoAdjustment__events__.push(handler);
4141
_utils2.default.bind(window, 'scroll', handler);
42+
_utils2.default.bind(window, 'resize', handler);
4243
}
4344
},
4445
beforeDestroy: function beforeDestroy() {
4546

4647
_utils2.default.unbind(window, 'scroll', __autoAdjustment__events__);
48+
_utils2.default.unbind(window, 'resize', __autoAdjustment__events__);
4749
}
4850
};

packages/src/mixins/layerAdjustment.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ export default {
4646

4747
__autoAdjustment__events__.push(handler);
4848
utils.bind(window,'scroll',handler);
49+
utils.bind(window,'resize',handler);
4950

5051
}
5152
},
5253
beforeDestroy(){
5354

5455
utils.unbind(window, 'scroll', __autoAdjustment__events__);
56+
utils.unbind(window, 'resize', __autoAdjustment__events__);
5557

5658
}
5759
}

umd/js/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)