mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
chore: code review
This commit is contained in:
@@ -76,7 +76,6 @@ export default createComponent({
|
||||
highlightStyle() {
|
||||
const { highlightColor } = this;
|
||||
if (highlightColor) {
|
||||
/* istanbul ignore else */
|
||||
return {
|
||||
color: highlightColor,
|
||||
};
|
||||
@@ -135,17 +134,14 @@ export default createComponent({
|
||||
},
|
||||
|
||||
getScrollerRect() {
|
||||
const { scroller } = this;
|
||||
let scrollerRect = {
|
||||
if (this.scroller.getBoundingClientRect) {
|
||||
return this.scroller.getBoundingClientRect();
|
||||
}
|
||||
|
||||
return {
|
||||
top: 0,
|
||||
left: 0,
|
||||
};
|
||||
|
||||
if (scroller.getBoundingClientRect) {
|
||||
scrollerRect = scroller.getBoundingClientRect();
|
||||
}
|
||||
|
||||
return scrollerRect;
|
||||
},
|
||||
|
||||
getElementTop(ele, scrollerRect) {
|
||||
|
Reference in New Issue
Block a user