Skip to content

Commit 6d45c57

Browse files
committed
fixed: 修复了translate3d的值有小数导致文字模糊的bug
1 parent 7d40009 commit 6d45c57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/use/useLayout.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function useLayout(props: WaterfallProps, colWidth: Ref<number>, cols: Re
6666
const style = curItem.style as CssStyleObject
6767

6868
// 设置偏移
69-
if (transform) style[transform] = `translate3d(${curX}px,${minY}px, 0)`
69+
if (transform) style[transform] = `translate3d(${Math.floor(curX)}px,${Math.floor(minY)}px, 0)`
7070
style.width = `${colWidth.value}px`
7171

7272
// 隐藏

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-waterfall-plugin-next",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"license": "UNLICENSED",
55
"author": "Yaowen Liu <576079353@qq.com>",
66
"main": "dist/my-lib.umd.js",

0 commit comments

Comments
 (0)