Skip to content

Commit

Permalink
fix(swipe-cell): right slot event cannot be triggered Tencent#1245
Browse files Browse the repository at this point in the history
  • Loading branch information
XBIsland authored Mar 5, 2024
1 parent 22e6ae4 commit 1f000f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/swipe-cell/useSureConfirm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function useSureConfirm(instance: ComponentInternalInstance | null, initD
height: '100%',
backgroundColor: 'rgba(0,0,0,0)',
transition: closedSure.value ? 'none' : 'background-color .6s cubic-bezier(0.18, 0.89, 0.32, 1)',
transform: `translate3d(${-initData.rightWidth}px, 0, 0)`,
transform: `translate3d(${initData.rightWidth}px, 0, 0)`,
pointerEvents: 'none',
} as CSSProperties;

Expand Down Expand Up @@ -85,10 +85,11 @@ export function useSureConfirm(instance: ComponentInternalInstance | null, initD
} as CSSProperties;

if (showSureRight.value) {
style.transform = `translate3d(${-initData.rightWidth}px, 0, 0)`;
} else {
style.transform = `translate3d(0, 0, 0)`;
} else {
style.transform = `translate3d(${initData.rightWidth}px, 0, 0)`;
}

return style;
});

Expand Down

0 comments on commit 1f000f2

Please sign in to comment.