Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
refactor: 删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
dwqs committed Apr 9, 2018
1 parent 90b8d22 commit ade0a57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
6 changes: 1 addition & 5 deletions components/area-cascader/cascader/caspanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
data () {
return {
sublist: [],
scrollbar: null,
// 记录上一次点击的 item
oldItem: {},
val: '',
Expand Down Expand Up @@ -123,10 +123,6 @@
// 根据 value 初始化选择数据
this.$on('update-selected', this.initCaspanel);
this.cascader.eventBus.$on('set-scroll-top', this.scrollToSelectedOption);
},
beforeDestroy () {
this.scrollbar && this.scrollbar.destroy();
}
};
</script>
7 changes: 0 additions & 7 deletions components/area-select/select/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
label: '',
val: '',
scrollbar: null,
areaRect: null,
top: 32
};
Expand All @@ -61,11 +60,6 @@
watch: {
value (val) {
this.setDef();
if (this.scrollbar) {
// this.scrollbar.destroy();
// this.scrollbar = null;
this.scrollbar.update();
}
},
options (val) {
Expand Down Expand Up @@ -152,7 +146,6 @@
window.removeEventListener('resize', this.handleDocResize, false);
window.document.removeEventListener('click', this.handleDocClick, false);
this.scrollbar && this.scrollbar.destroy();
}
};
</script>

0 comments on commit ade0a57

Please sign in to comment.