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

每次change事件,都会触发__createRules方法 #46

Closed
ousinka opened this issue Oct 27, 2021 · 2 comments
Closed

每次change事件,都会触发__createRules方法 #46

ousinka opened this issue Oct 27, 2021 · 2 comments

Comments

@ousinka
Copy link
Contributor

ousinka commented Oct 27, 2021

每次change事件,都会触发__createRules方法,可能会造成性能损失,是否可以优化

@D-xuanmo
Copy link
Owner

说的是这里吗?这个只会在组件创建的时候执行一次的,https://github.com/D-xuanmo/v-form/blob/master/packages/mixins/formItemBase.js#L113-L134

@ousinka
Copy link
Contributor Author

ousinka commented Nov 15, 2021

是这里,不过实际测试发现,每次change都会触发。

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