Skip to content

Commit df3f513

Browse files
committed
fix: 更新单元测试+移除log
1 parent 98fa4a0 commit df3f513

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/packages/drag/__test__/__snapshots__/drag.spec.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports[`Drag > should render default slot correctly 1`] = `
1111

1212
exports[`Drag > touch move 1`] = `
1313
<div
14+
class="nut-drag-inner"
1415
style="transform: none;"
1516
>
1617
<span

src/packages/drag/drag.taro.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ export const Drag: FunctionComponent<
5353
const { screenWidth, windowHeight } = getSystemInfoSync()
5454

5555
const { width, height } = await getRectByTaro(dragRef.current)
56-
dragRef.current && dragRef.current.getBoundingClientRect()
57-
58-
console.log('width', width, 'height', height)
56+
dragRef.current?.getBoundingClientRect()
5957
createSelectorQuery()
6058
.select(`.${className}`)
6159
.boundingClientRect((rec: any) => {

0 commit comments

Comments
 (0)