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

通过v-model关闭控件后异常 #248

Open
zdzhang opened this issue Dec 4, 2021 · 1 comment
Open

通过v-model关闭控件后异常 #248

zdzhang opened this issue Dec 4, 2021 · 1 comment

Comments

@zdzhang
Copy link

zdzhang commented Dec 4, 2021

比如上传成功后自动关闭,在@crop-upload-success中设置v-model为false关闭
此时再设置v-model为true打开不会出现drop-area,因为step没有正确置为1
修改watch value函数,在this.reset()后设置this.step=1解决

@Awoodwhale
Copy link

也可以使用ref,调用 this.$refs.ref名.off()来重置状态

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