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

Form组件setValues 方法建议 #398

Open
ckbabby opened this issue Jan 11, 2024 · 0 comments
Open

Form组件setValues 方法建议 #398

ckbabby opened this issue Jan 11, 2024 · 0 comments

Comments

@ckbabby
Copy link

ckbabby commented Jan 11, 2024

const setValues = (data: Recordable = {}) => { formModel.value = Object.assign(unref(formModel), data) }
你好,这句当存在默认值model时报错,是否应该改成
formModel.value = Object.assign({}, unref(formModel), data) 更合理?

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

1 participant