Skip to content

Commit a35ed02

Browse files
author
zhuqingan.3
committed
fix: 剔除冗余日志
1 parent b01d4ba commit a35ed02

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/taro-components-react/src/components/picker/picker-group.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@ export function PickerGroupBasic(props: PickerGroupProps) {
119119
if (process.env.TARO_PLATFORM === 'harmony') {
120120
itemHeightRef.current = PICKER_LINE_HEIGHT * lengthScaleRatioRef.current
121121
} else {
122-
console.error('scrollViewRef.current', scrollViewRef.current && scrollViewRef.current?.scrollHeight)
123122
if (scrollViewRef.current && scrollViewRef.current?.scrollHeight) {
124123
itemHeightRef.current = scrollViewRef.current.scrollHeight / scrollViewRef.current.childNodes.length
125-
console.error('itemHeightRef.current', itemHeightRef.current, scrollViewRef.current.scrollHeight, scrollViewRef.current.childNodes.length)
126124
} else {
127125
console.warn('Height measurement anomaly')
128126
}
@@ -137,7 +135,6 @@ export function PickerGroupBasic(props: PickerGroupProps) {
137135
React.useEffect(() => {
138136
if (scrollViewRef.current && range.length > 0 && !isTouching) {
139137
const baseValue = selectedIndex * itemHeightRef.current
140-
console.error('baseValue', baseValue, selectedIndex, itemHeightRef.current)
141138
setTargetScrollTopWithScale(setTargetScrollTop, baseValue, undefined, lengthScaleRatioRef.current)
142139
setCurrentIndex(selectedIndex)
143140
}

0 commit comments

Comments
 (0)