arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

fix(switch): 当beforeChange类型为Promise<void>时 无异常可继续执行

Open czq297297 opened this issue 3 years ago • 0 comments

当beforeChange类型为Promise时 无异常可继续执行  与modal on-before-ok逻辑保持一直

Types of changes

  • [ ] New feature
  • [ ] Bug fix
  • [x] Enhancement
  • [ ] Component style change
  • [ ] Typescript definition change
  • [ ] Documentation change
  • [ ] Coding style change
  • [ ] Refactoring
  • [ ] Test cases
  • [ ] Continuous integration
  • [ ] Breaking change
  • [ ] Others

Background and context

Solution

How is the change tested?

Changelog

Component Changelog(CN) Changelog(EN) Related issues
Switch before-change类型为Promise<void>时 无异常可继续执行 When the before-change type is Promise<void>, the execution can continue without exception

Checklist:

  • [ ] Test suite passes (npm run test)
  • [ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • [ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to main branch)

Other information

czq297297 avatar Sep 27 '22 10:09 czq297297