Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doOpenRight 方法传参问题 #80

Open
ystarlongzi opened this issue Feb 28, 2019 · 1 comment
Open

doOpenRight 方法传参问题 #80

ystarlongzi opened this issue Feb 28, 2019 · 1 comment

Comments

@ystarlongzi
Copy link

swipeout/src/Swipeout.tsx

Lines 146 to 148 in 8e6d1e7

doOpenRight = () => {
this.open(-this.btnsRightWidth, true, false);
}

上面这段代码中的 this.open 方法的第 2、3 个参数是不是反了,虽然最终未影响到代码逻辑,但正确的是不是应该是下面这样的?

doOpenRight = () => { 
   this.open(-this.btnsRightWidth, false, true); 
 } 
@a298003154
Copy link

@ystarlongzi
我也觉得是传错了 醉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants