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

fix(upload): setValue and defaultValue uncertain && rule about first render #3900

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

electroluxcode
Copy link

@electroluxcode electroluxcode commented Jun 6, 2024

General

✏️ Mark the necessary items without changing the structure of the PR template.

  • Pull request template structure not broken

Type

ℹ️ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

fix #3822

  • 通过是否首次渲染来 分离upload/imageUpload 组件 的 change 和 update:value 。目的是解决首次渲染 upload系列组件的时候,直接调用change导致直接进行校验 从而不符合预期的问题
  • upload/imageUpload 组件 的 defaultValue 和 setFieldValue 默认赋值 更改成默认是 array。目的是避免一开始输入是string,但是在数据的传递中变成array的不确定性问题

@electroluxcode electroluxcode changed the title Fix/trigger upload fix(upload): setValue and defaultValue uncertain && rule about first render Jun 6, 2024
@wangjue666 wangjue666 merged commit cca7f59 into vbenjs:main Jun 6, 2024
2 checks passed
@vbenjs vbenjs locked and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImageUpload设置必填时,还没上传就提示校验信息
2 participants